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]
This commit is contained in:
@@ -6,13 +6,11 @@ class ListsListingCest {
|
|||||||
|
|
||||||
function listsListing(\AcceptanceTester $I) {
|
function listsListing(\AcceptanceTester $I) {
|
||||||
$I->wantTo('Open lists listings page');
|
$I->wantTo('Open lists listings page');
|
||||||
$I->deactivateWooCommerce();
|
|
||||||
|
|
||||||
$I->login();
|
$I->login();
|
||||||
$I->amOnMailpoetPage('Lists');
|
$I->amOnMailpoetPage('Lists');
|
||||||
|
|
||||||
$I->waitForText('WordPress Users', 5, '[data-automation-id="listing_item_1"]');
|
$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->see('My First List', '[data-automation-id="listing_item_3"]');
|
||||||
$I->seeNoJSErrors();
|
$I->seeNoJSErrors();
|
||||||
}
|
}
|
||||||
|
@@ -13,7 +13,6 @@ class ReinstallFromScratchCest {
|
|||||||
|
|
||||||
function reinstallFromScratch(\AcceptanceTester $I) {
|
function reinstallFromScratch(\AcceptanceTester $I) {
|
||||||
$I->wantTo('Reinstall from scratch');
|
$I->wantTo('Reinstall from scratch');
|
||||||
$I->deactivateWooCommerce();
|
|
||||||
$I->login();
|
$I->login();
|
||||||
|
|
||||||
// Step 1 - create email, form, list and subscribers
|
// Step 1 - create email, form, list and subscribers
|
||||||
@@ -54,7 +53,6 @@ class ReinstallFromScratchCest {
|
|||||||
// Check lists
|
// Check lists
|
||||||
$I->amOnMailpoetPage('Lists');
|
$I->amOnMailpoetPage('Lists');
|
||||||
$I->waitForText('WordPress Users', 30, '[data-automation-id="listing_item_1"]');
|
$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->see('My First List', '[data-automation-id="listing_item_3"]');
|
||||||
$I->seeNumberOfElements('[data-automation-id^=listing_item_]', 2);
|
$I->seeNumberOfElements('[data-automation-id^=listing_item_]', 2);
|
||||||
// Check subscribers
|
// Check subscribers
|
||||||
|
Reference in New Issue
Block a user