Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppeteer_tests: Wait until the settings modal is completely open.

Riken Shah6cab6b31fba0
diff --git a/frontend_tests/puppeteer_tests/navigation.ts b/frontend_tests/puppeteer_tests/navigation.ts
index a05c5156440..ee06028d327 100644
--- a/frontend_tests/puppeteer_tests/navigation.ts
+++ b/frontend_tests/puppeteer_tests/navigation.ts
@@ -36,6 +36,7 @@ async function navigate_to_settings(page: Page): Promise<void> {
await page.click(settings_selector);
await page.waitForSelector("#settings_page", {visible: true});
+ await page.waitForFunction(() => location.href.includes("/#settings/")); // eslint-disable-line no-undef
await page.click("#settings_page .content-wrapper .exit");
// Wait until the overlay is completely closed.