Closes the modal popup

Adds a wait time to ensure the modal popup opens before attempting to close it.
This commit is contained in:
maguire-arman 2025-04-08 14:41:45 -04:00
parent 817f81734d
commit 4aa48a1995

View file

@ -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();
}