From e035c5131dc21a38b1799c031eaf6bbdbb080684 Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Thu, 7 Mar 2019 06:24:51 +0100 Subject: [PATCH] Adjust acceptance test timeouts [MAILPOET-1875] --- .../ConfirmTitleAlignmentSettingsInALCBlockCest.php | 8 ++++---- tests/acceptance/ReceivePostNotificationCest.php | 2 +- tests/acceptance/ReceiveStandardEmailCest.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/acceptance/ConfirmTitleAlignmentSettingsInALCBlockCest.php b/tests/acceptance/ConfirmTitleAlignmentSettingsInALCBlockCest.php index 2022f311fa..ce1326af57 100644 --- a/tests/acceptance/ConfirmTitleAlignmentSettingsInALCBlockCest.php +++ b/tests/acceptance/ConfirmTitleAlignmentSettingsInALCBlockCest.php @@ -43,8 +43,8 @@ class ConfirmTitleAlignmentSettingsInALCBlockCest { $I->checkOption('[data-automation-id="title_above_excerpt"]'); // wait for xhr to finish loading - $I->waitForJS("return $.active > 0;", 30); - $I->waitForJS("return $.active == 0;", 30); + $I->waitForJS("return $.active > 0;", 60); + $I->waitForJS("return $.active == 0;", 60); $I->waitForText($post_title); // assert we have heading and text as a next sibling in a vertical block @@ -54,8 +54,8 @@ class ConfirmTitleAlignmentSettingsInALCBlockCest { $I->checkOption('[data-automation-id="title_above_post"]'); // wait for xhr to finish loading - $I->waitForJS("return $.active > 0;", 30); - $I->waitForJS("return $.active == 0;", 30); + $I->waitForJS("return $.active > 0;", 60); + $I->waitForJS("return $.active == 0;", 60); $I->waitForText($post_title); // assert no vertical element with two text block is present diff --git a/tests/acceptance/ReceivePostNotificationCest.php b/tests/acceptance/ReceivePostNotificationCest.php index dadca7c992..0b02f9fe41 100644 --- a/tests/acceptance/ReceivePostNotificationCest.php +++ b/tests/acceptance/ReceivePostNotificationCest.php @@ -64,7 +64,7 @@ class ReceivePostNotificationCest { $I->waitForText('View history', 90); $selector = sprintf('[data-automation-id="history-%d"]', $newsletter->id()); $I->click($selector); - $I->waitForText('Sent to 1 of 1', 190); + $I->waitForText('Sent to 1 of 1', 90); // confirm newsletter is received $I->amOnMailboxAppPage(); diff --git a/tests/acceptance/ReceiveStandardEmailCest.php b/tests/acceptance/ReceiveStandardEmailCest.php index 56cc5e1020..3780780d3f 100644 --- a/tests/acceptance/ReceiveStandardEmailCest.php +++ b/tests/acceptance/ReceiveStandardEmailCest.php @@ -33,7 +33,7 @@ class ReceiveStandardEmailCest { $I->waitForElement('.mailpoet_progress_label', 90); //confirm newsletter is received $I->amOnMailboxAppPage(); - $I->waitForText($newsletter_title, 190); + $I->waitForText($newsletter_title, 90); $I->click(Locator::contains('span.subject', $newsletter_title)); } }