mirror of
https://github.com/zulip/zulip.git
synced 2025-10-22 20:42:14 +00:00
eslint: Fix unicorn/prefer-dom-node-dataset.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
910718ccd3
commit
9372b47d04
@@ -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.
|
||||
|
Reference in New Issue
Block a user