e2e-tests: Fix check_compose_state arguments.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-05-23 16:27:16 -07:00 committed by Anders Kaseorg
parent 931f515207
commit 8f0dda3d4b
2 changed files with 2 additions and 2 deletions

View File

@ -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. ",
});

View File

@ -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) {