From 80b96cc6fbfa354866920bd45862579f91e43a9c Mon Sep 17 00:00:00 2001 From: tomaszszopinski Date: Thu, 26 Oct 2023 11:40:15 +0200 Subject: [PATCH] [behat] updated assertion --- src/lib/Behat/Page/ContentUpdateItemPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Behat/Page/ContentUpdateItemPage.php b/src/lib/Behat/Page/ContentUpdateItemPage.php index 77821fae6a..fe0027b439 100644 --- a/src/lib/Behat/Page/ContentUpdateItemPage.php +++ b/src/lib/Behat/Page/ContentUpdateItemPage.php @@ -277,7 +277,7 @@ public function isAutosaveDraftSavedNotificationVisible(): bool return $this->getHTMLPage() ->setTimeout(0) ->findAll($this->getLocator('autosaveSavedInfo')) - ->filterBy(new ElementTextFragmentCriterion('Draft saved'))->any(); + ->filterBy(new ElementTextFragmentCriterion('Autosave is on, draft created'))->any(); } public function verifyAutosaveIsOffNotificationIsDisplayed(): void