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: Remove unused wait_for_modal_to_close.

Anders Kaseorgc0b86bc6b48a
diff --git a/web/e2e-tests/lib/common.ts b/web/e2e-tests/lib/common.ts
index f593f20927e..199b43b4927 100644
--- a/web/e2e-tests/lib/common.ts
+++ b/web/e2e-tests/lib/common.ts
@@ -595,13 +595,6 @@ export async function select_item_via_typeahead(
await entry.click();
}
-export async function wait_for_modal_to_close(page: Page): Promise<void> {
- // This function will ensure that the mouse events are enabled for the background for further tests.
- await page.waitForFunction(
- () => document.querySelector(".overlay.show")?.getAttribute("style") === null,
- );
-}
-
export async function wait_for_micromodal_to_open(page: Page): Promise<void> {
// We manually add the `modal--open` class to the modal after the modal animation completes.
await page.waitForFunction(() => document.querySelector(".modal--open") !== null);