mirror of https://github.com/zulip/zulip.git
e2e-tests: Fix check_compose_state arguments.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
931f515207
commit
8f0dda3d4b
|
@ -56,7 +56,7 @@ async function test_restore_stream_message_draft_by_opening_compose_box(page: Pa
|
|||
await page.waitForSelector("#send_message_form", {visible: true});
|
||||
|
||||
await common.check_compose_state(page, {
|
||||
stream: "Denmark",
|
||||
stream_name: "Denmark",
|
||||
topic: "tests",
|
||||
content: "Test stream message. ",
|
||||
});
|
||||
|
|
|
@ -207,7 +207,7 @@ export async function get_text_from_selector(page: Page, selector: string): Prom
|
|||
|
||||
export async function check_compose_state(
|
||||
page: Page,
|
||||
params: Record<string, string>,
|
||||
params: {stream_name?: string; topic?: string; content: string},
|
||||
): Promise<void> {
|
||||
const form_params: Record<string, string> = {content: params.content};
|
||||
if (params.stream_name) {
|
||||
|
|
Loading…
Reference in New Issue