]> BookStack Code Mirror - bookstack/blobdiff - tests/TestCase.php
Guest create page: name field autofocus
[bookstack] / tests / TestCase.php
index 356fdaa37a24b14db956faab2ca0b09b262de25e..d0dd7d772084f9a6042e2902022854dfd0a7b21b 100644 (file)
@@ -330,7 +330,7 @@ abstract class TestCase extends BaseTestCase
 
     protected function assertNotificationContains(\Illuminate\Testing\TestResponse $resp, string $text)
     {
-        return $this->withHtml($resp)->assertElementContains('[notification]', $text);
+        return $this->withHtml($resp)->assertElementContains('.notification[role="alert"]', $text);
     }
 
     /**