]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/EntityTest.php
Merge branch 'master' into translations
[bookstack] / tests / Entity / EntityTest.php
index 296aa72edc1491ae703e3fab90a92b15db85cf7e..79e574cbd48d444670ccbd1dda90f84e71e44ee6 100644 (file)
@@ -136,7 +136,7 @@ class EntityTest extends TestCase
         $this->asAdmin()
             ->visit('/books')
             // Choose to create a book
-            ->click('Add new book')
+            ->click('Create New Book')
             ->seePageIs('/books/create')
             // Fill out form & save
             ->type($book->name, '#name')
@@ -236,8 +236,9 @@ class EntityTest extends TestCase
             ->type('super test page', '#name')
             ->press('Save Page')
             // Check redirect
-            ->seePageIs($newPageUrl)
-            ->visit($pageUrl)
+            ->seePageIs($newPageUrl);
+
+        $this->visit($pageUrl)
             ->seePageIs($newPageUrl);
     }