Include closing modal

This commit is contained in:
Veljko
2024-03-27 10:13:17 +01:00
committed by alex-mpoet
parent 2bcda7998a
commit 45a38d63e5

View File

@@ -70,6 +70,13 @@ export async function newsletterPostNotification() {
fullPage: fullPageSet,
});
// Try to close the tutorial video popup
try {
await page.locator('#mailpoet_modal_close').click({ timeout: 5000 });
} catch (error) {
console.log("Tutorial video wasn't present, skipping action.");
}
// Click to proceed to the next step (the last one)
await Promise.all([
page.waitForNavigation(),