mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
settings: Wait for settings overlay to close.
Since pressing `escape` key closes flatpickr and settings overlay at the same time, we need to wait for the settings to be not visible. If we don't wait for the settings overlay to close, the next test could think the settings overlay is already open and continue with its tests which can easily become flaky.
This commit is contained in:
@@ -42,6 +42,7 @@ async function close_settings_and_date_picker(page: Page): Promise<void> {
|
||||
|
||||
await page.keyboard.press("Escape");
|
||||
await page.waitForSelector(".flatpickr-calendar", {hidden: true});
|
||||
await page.waitForSelector("#settings_overlay_container", {hidden: true});
|
||||
}
|
||||
|
||||
async function test_change_full_name(page: Page): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user