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.');