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.

eslint: Fix unicorn/prefer-dom-node-dataset.

Anders Kaseorg9372b47d0495
diff --git a/web/e2e-tests/navigation.test.ts b/web/e2e-tests/navigation.test.ts
index 75a4d9eb7dc..34e05f51ad3 100644
--- a/web/e2e-tests/navigation.test.ts
+++ b/web/e2e-tests/navigation.test.ts
@@ -29,9 +29,7 @@ async function navigate_to_settings(page: Page): Promise<void> {
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.waitForSelector(`${profile_section_tab_selector}:focus`, {visible: true});
await page.click("#settings_page .content-wrapper .exit");
// Wait until the overlay is completely closed.