From ddd88cd0bd43c63938e919d4fe15ab997cc6b52c Mon Sep 17 00:00:00 2001 From: Veljko Date: Mon, 8 Apr 2024 12:12:42 +0200 Subject: [PATCH] Improve another test to avoid false positives --- .../performance/tests/newsletters-post-notification.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mailpoet/tests/performance/tests/newsletters-post-notification.js b/mailpoet/tests/performance/tests/newsletters-post-notification.js index b950cf94ae..1b1df25465 100644 --- a/mailpoet/tests/performance/tests/newsletters-post-notification.js +++ b/mailpoet/tests/performance/tests/newsletters-post-notification.js @@ -46,6 +46,12 @@ export async function newsletterPostNotification() { }); // Click to add a new post notification email and set frequency + await page + .locator('[data-automation-id="newsletter_interval_type"]') + .waitFor({ state: 'visible' }); + await page + .locator('[data-automation-id="newsletter_interval_type"]') + .click(); await page.selectOption( '[data-automation-id="newsletter_interval_type"]', 'immediately',