Fix flaky create segment test

This commit is contained in:
Veljko
2024-07-19 14:14:19 +02:00
committed by Veljko V.
parent 9b3967e31e
commit 36735e71f7

View File

@@ -116,11 +116,13 @@ class CreateSegmentEmailAbsoluteCountCest {
$i->click('Save');
$i->waitForNoticeAndClose('Segment successfully updated!');
$i->waitForListingItemsToLoad();
$i->wantTo('Check subscribers of the segment');
$i->waitForText($segmentTitle);
$i->clickWooTableActionByItemName($segmentTitle, 'View subscribers');
$i->seeInCurrentUrl('mailpoet-subscribers#');
$i->waitForText($segmentTitle);
$i->waitForElementVisible('[data-automation-id="listing-column-header-created_at"]');
$i->see($segmentTitle, ['css' => 'select[name=segment]']);
$i->see('stats_test1@example.com');
$i->see('stats_test2@example.com');