From 45a38d63e5c810c40ba4bcd3c55b06bca703ec77 Mon Sep 17 00:00:00 2001 From: Veljko Date: Wed, 27 Mar 2024 10:13:17 +0100 Subject: [PATCH] Include closing modal --- .../performance/tests/newsletters-post-notification.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mailpoet/tests/performance/tests/newsletters-post-notification.js b/mailpoet/tests/performance/tests/newsletters-post-notification.js index 64a7aac8fa..95a21e4d65 100644 --- a/mailpoet/tests/performance/tests/newsletters-post-notification.js +++ b/mailpoet/tests/performance/tests/newsletters-post-notification.js @@ -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(),