From 1a0f9975bb48a5daf4ad76a26a6f2d9ddcb0a847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ja=CC=81n=20Mikla=CC=81s=CC=8C?= Date: Thu, 15 Aug 2019 14:50:42 +0200 Subject: [PATCH] Fix flaky tests Now, that we are hiding WooCommerce Users list, there is no easy way to tell if that list is shown or not. The list is tested in different WooCommerce related tests, so it's not necessary to test it in these places. [MAILPOET-2188] --- tests/acceptance/ListsListingCest.php | 2 -- tests/acceptance/ReinstallFromScratchCest.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/tests/acceptance/ListsListingCest.php b/tests/acceptance/ListsListingCest.php index 619564e9bc..8ba39c7de2 100644 --- a/tests/acceptance/ListsListingCest.php +++ b/tests/acceptance/ListsListingCest.php @@ -6,13 +6,11 @@ class ListsListingCest { function listsListing(\AcceptanceTester $I) { $I->wantTo('Open lists listings page'); - $I->deactivateWooCommerce(); $I->login(); $I->amOnMailpoetPage('Lists'); $I->waitForText('WordPress Users', 5, '[data-automation-id="listing_item_1"]'); - $I->dontSee('WooCommerce Customers', '[data-automation-id="listing_item_2"]'); $I->see('My First List', '[data-automation-id="listing_item_3"]'); $I->seeNoJSErrors(); } diff --git a/tests/acceptance/ReinstallFromScratchCest.php b/tests/acceptance/ReinstallFromScratchCest.php index f52d0cc975..c21388ae87 100644 --- a/tests/acceptance/ReinstallFromScratchCest.php +++ b/tests/acceptance/ReinstallFromScratchCest.php @@ -13,7 +13,6 @@ class ReinstallFromScratchCest { function reinstallFromScratch(\AcceptanceTester $I) { $I->wantTo('Reinstall from scratch'); - $I->deactivateWooCommerce(); $I->login(); // Step 1 - create email, form, list and subscribers @@ -54,7 +53,6 @@ class ReinstallFromScratchCest { // Check lists $I->amOnMailpoetPage('Lists'); $I->waitForText('WordPress Users', 30, '[data-automation-id="listing_item_1"]'); - $I->dontSee('WooCommerce Customers', '[data-automation-id="listing_item_2"]'); $I->see('My First List', '[data-automation-id="listing_item_3"]'); $I->seeNumberOfElements('[data-automation-id^=listing_item_]', 2); // Check subscribers