Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_create: Fix puppeteer test flake from modal reopening.
evykassirercb6c60ef7ab2
diff --git a/web/e2e-tests/stream_create.test.ts b/web/e2e-tests/stream_create.test.tsindex 1f2ffec7a6d..20a9fd04d83 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<void> {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,