From b34b02b0dbf5648fcb01d4287f659bc35c7dbe2e Mon Sep 17 00:00:00 2001 From: Veljko Date: Wed, 20 Jan 2021 11:31:59 +0100 Subject: [PATCH] Fix flaky test for managing lists --- tests/acceptance/ManageListsCest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/acceptance/ManageListsCest.php b/tests/acceptance/ManageListsCest.php index f2a6a91c5d..47409406da 100644 --- a/tests/acceptance/ManageListsCest.php +++ b/tests/acceptance/ManageListsCest.php @@ -94,6 +94,8 @@ class ManageListsCest { $i->waitForElementVisible('[data-automation-id="filters_trash"]'); $i->click('[data-automation-id="filters_trash"]'); $i->waitForElementVisible('[data-automation-id="filters_trash"]'); + $i->reloadPage(); // just to clear all notifications from the above + $i->waitForText($editedListTitle); $i->clickItemRowActionByItemName($editedListTitle, 'Delete permanently'); $i->waitForText('1 list was permanently deleted. Note that deleting a list does not delete its subscribers.'); $i->seeNoJSErrors();