Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
puppeteer: Fix flake in`navigation.ts`.
Riken Shah6f2f3504b5dc
diff --git a/frontend_tests/puppeteer_tests/navigation.ts b/frontend_tests/puppeteer_tests/navigation.tsindex 403f9bb696b..9d68af85df7 100644--- a/frontend_tests/puppeteer_tests/navigation.ts+++ b/frontend_tests/puppeteer_tests/navigation.ts@@ -35,8 +35,12 @@ async function navigate_to_settings(page: Page): Promise<void> {await page.waitForSelector(settings_selector, {visible: true});await page.click(settings_selector);- await page.waitForSelector("#settings_page", {visible: true});- await page.waitForFunction(() => location.href.includes("/#settings/")); // eslint-disable-line no-undef+ const profile_section_tab_selector = "li[data-section='profile']";+ await page.waitForSelector(profile_section_tab_selector, {visible: true});+ await page.click(profile_section_tab_selector);+ await page.waitForFunction(+ () => document.activeElement?.getAttribute("data-section") === "profile",+ );await page.click("#settings_page .content-wrapper .exit");// Wait until the overlay is completely closed.