From 4aa48a1995b1fa6e1ba878718434d68887dea887 Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Tue, 8 Apr 2025 14:41:45 -0400 Subject: [PATCH] Closes the modal popup Adds a wait time to ensure the modal popup opens before attempting to close it. --- playwright-tests/pages/HomePage.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playwright-tests/pages/HomePage.ts b/playwright-tests/pages/HomePage.ts index 1b681f0e3..9afb0a2e1 100644 --- a/playwright-tests/pages/HomePage.ts +++ b/playwright-tests/pages/HomePage.ts @@ -68,6 +68,8 @@ export class HomePage extends BasePage { }, zip); } + // Wait until modal pop up opens and close pop up + await this.page.waitForTimeout(5000); if (await this.cusmodalPopup.isVisible()) { await this.closePopupButton.click(); }