diff --git a/web/e2e-tests/drafts.test.ts b/web/e2e-tests/drafts.test.ts index a639cfc2cb..15817d5759 100644 --- a/web/e2e-tests/drafts.test.ts +++ b/web/e2e-tests/drafts.test.ts @@ -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. ", }); diff --git a/web/e2e-tests/lib/common.ts b/web/e2e-tests/lib/common.ts index 79fff78a48..a60ff4d024 100644 --- a/web/e2e-tests/lib/common.ts +++ b/web/e2e-tests/lib/common.ts @@ -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, + params: {stream_name?: string; topic?: string; content: string}, ): Promise { const form_params: Record = {content: params.content}; if (params.stream_name) {