Fix ManageSubscriptionsLinkCest
Clicking on Send button triggers ActionScheduler and it may take longer then 2 seconds. In such case the test ends up reloading on send page instead of newsletter listing page. This commit fixes the issue by adding wait for newsletter listing. [MAILPOET-4724]
This commit is contained in:
committed by
Veljko V
parent
cacb44444c
commit
f178ea5f7a
@@ -142,6 +142,8 @@ class ManageSubscriptionLinkCest {
|
|||||||
$i->selectOptionInSelect2($segmentName);
|
$i->selectOptionInSelect2($segmentName);
|
||||||
$i->click('Send');
|
$i->click('Send');
|
||||||
|
|
||||||
|
$i->waitForElement('[data-automation-id="newsletters_listing_tabs"]');
|
||||||
|
|
||||||
// Reloading page is faster than waiting for regular AJAX request to refresh it
|
// Reloading page is faster than waiting for regular AJAX request to refresh it
|
||||||
for ($index = 0; $index < 15; $index++) {
|
for ($index = 0; $index < 15; $index++) {
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user