Increase timeout for segments and subscribers tests

[MAILPOET-3019]
This commit is contained in:
Rostislav Wolny
2020-06-30 11:15:43 +02:00
committed by Pavel Dohnal
parent fbb0fb749e
commit 6f5778c0fe
2 changed files with 8 additions and 8 deletions

View File

@@ -29,12 +29,12 @@ class DeleteTrashedSegmentCest {
$i->click('[data-automation-id="dynamic-segments-tab"]');
$i->waitForElement('[data-automation-id="filters_trash"]');
$i->click('[data-automation-id="filters_trash"]');
$i->waitForText($segmentTitle, 10, $listingAutomationSelector);
$i->waitForText($segmentTitle, 20, $listingAutomationSelector);
$i->clickItemRowActionByItemName($segmentTitle, 'Delete permanently');
$i->waitForText('1 segment was permanently deleted.');
$i->dontSeeElement($listingAutomationSelector);
$i->seeNoJSErrors();
$i->waitForText($segmentTitle . '2');
$i->waitForText($segmentTitle . '2', 20);
}
public function emptyTrash(\AcceptanceTester $i) {
@@ -61,7 +61,7 @@ class DeleteTrashedSegmentCest {
$i->click('[data-automation-id="dynamic-segments-tab"]');
$i->waitForElement('[data-automation-id="filters_trash"]');
$i->click('[data-automation-id="filters_trash"]');
$i->waitForText($segmentTitle, 10, $listingAutomationSelector);
$i->waitForText($segmentTitle, 20, $listingAutomationSelector);
$i->click('[data-automation-id="empty_trash"]');
$i->waitForText('1 segment was permanently deleted.');
@@ -69,6 +69,6 @@ class DeleteTrashedSegmentCest {
$i->seeNoJSErrors();
$i->click('[data-automation-id="filters_all"]');
$i->waitForText($segmentTitle . '2');
$i->waitForText($segmentTitle . '2', 20);
}
}

View File

@@ -90,7 +90,7 @@ class SubscriberManagementCest {
$i->waitForText($newSubscriberEmail);
$i->clickItemRowActionByItemName($newSubscriberEmail, 'Restore');
$i->amOnMailpoetPage('Subscribers');
$i->waitForText($newSubscriberEmail);
$i->waitForText($newSubscriberEmail, 20);
$i->seeNoJSErrors();
}
@@ -113,7 +113,7 @@ class SubscriberManagementCest {
$i->waitForText('1 subscriber was permanently deleted.');
$i->dontSee($newSubscriberEmail);
$i->waitForText($newSubscriberEmail2);
$i->waitForText($newSubscriberEmail2, 20);
$i->seeNoJSErrors();
}
@@ -130,7 +130,7 @@ class SubscriberManagementCest {
$i->waitForElement('[data-automation-id="filters_trash"]');
$i->click('[data-automation-id="filters_trash"]');
$i->waitForText($newSubscriberEmail);
$i->waitForText($newSubscriberEmail, 20);
$i->click('[data-automation-id="empty_trash"]');
@@ -138,7 +138,7 @@ class SubscriberManagementCest {
$i->dontSee($newSubscriberEmail);
$i->click('[data-automation-id="filters_all"]');
$i->waitForText($newSubscriberEmail2);
$i->waitForText($newSubscriberEmail2, 20);
$i->seeNoJSErrors();
}