Fix flakiness in test SettingsArchivePage

[MAILPOET-5008]
This commit is contained in:
Veljko
2023-08-23 13:13:22 +02:00
committed by alex-mpoet
parent 3c142e6da9
commit 91c128e950

View File

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