diff --git a/web/e2e-tests/stream_create.test.ts b/web/e2e-tests/stream_create.test.ts index 1f2ffec7a6..20a9fd04d8 100644 --- a/web/e2e-tests/stream_create.test.ts +++ b/web/e2e-tests/stream_create.test.ts @@ -96,11 +96,19 @@ async function create_stream(page: Page): Promise { await common.wait_for_micromodal_to_open(page); await page.click(".dialog_submit_button"); await common.wait_for_micromodal_to_close(page); + + // We redirect to the channel message view. + await page.waitForSelector("#subscription_overlay", {hidden: true}); + await page.waitForSelector( + `xpath///*[${common.has_class_x("message-header-navbar-title")} and text()="Puppeteer"]`, + ); + await page.waitForSelector(".message-header-stream-settings-button"); await page.click(".message-header-stream-settings-button"); await page.waitForSelector(".stream_section"); await page.waitForSelector( - `xpath///*[${common.has_class_x("stream-name")} and text()="Puppeteer"]`, + `xpath///*[${common.has_class_x("stream-name-title")} and text()="Puppeteer"]`, + {visible: true}, ); const stream_name = await common.get_text_from_selector( page,