]> BookStack Code Mirror - bookstack/blobdiff - tests/TestCase.php
Guest create page: name field autofocus
[bookstack] / tests / TestCase.php
index cc8e57453ea224834a0dbd1223dfc2e7a2111ba2..d0dd7d772084f9a6042e2902022854dfd0a7b21b 100644 (file)
@@ -27,6 +27,7 @@ use Monolog\Logger;
 use Psr\Http\Client\ClientInterface;
 use Ssddanbrown\AssertHtml\TestsHtml;
 use Tests\Helpers\EntityProvider;
+use Tests\Helpers\TestServiceProvider;
 
 abstract class TestCase extends BaseTestCase
 {
@@ -329,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);
     }
 
     /**