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