From 91c128e9502f76b9d8840e02f549f1cfebde6a9c Mon Sep 17 00:00:00 2001 From: Veljko Date: Wed, 23 Aug 2023 13:13:22 +0200 Subject: [PATCH] Fix flakiness in test SettingsArchivePage [MAILPOET-5008] --- mailpoet/tests/acceptance/Settings/SettingsArchivePageCest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mailpoet/tests/acceptance/Settings/SettingsArchivePageCest.php b/mailpoet/tests/acceptance/Settings/SettingsArchivePageCest.php index 55b6a22c61..29e69d8228 100644 --- a/mailpoet/tests/acceptance/Settings/SettingsArchivePageCest.php +++ b/mailpoet/tests/acceptance/Settings/SettingsArchivePageCest.php @@ -78,10 +78,13 @@ class SettingsArchivePageCest { $i->waitForText('SentNewsletter2'); $i->clickItemRowActionByItemName('SentNewsletter2', 'Move to trash'); $i->waitForNoticeAndClose('1 email was moved to the trash.'); + $i->waitForListingItemsToLoad(); + $i->waitForText('SentNewsletter3'); $i->clickItemRowActionByItemName('SentNewsletter3', 'Move to trash'); $i->waitForNoticeAndClose('1 email was moved to the trash.'); $i->click('[data-automation-id="filters_trash"]'); $i->waitForElement('[data-automation-id="empty_trash"]'); + $i->waitForListingItemsToLoad(); $i->waitForText('SentNewsletter3'); $i->clickItemRowActionByItemName('SentNewsletter3', 'Delete permanently'); $i->waitForText('1 email was permanently deleted.');