]> BookStack Code Mirror - bookstack/blobdiff - tests/UserProfileTest.php
Test books display options.
[bookstack] / tests / UserProfileTest.php
index 25edfbf5e58ed08800590d198ff568f100c0644c..ebec814c4e549746ca8edaeb2e0b6df69c2c8bb9 100644 (file)
@@ -94,14 +94,15 @@ class UserProfileTest extends BrowserKitTest
             ->seePageIs('/settings/users/' . $guestUser->id)
             ->see('cannot delete the guest user');
     }
-    
+
     public function test_books_display_is_list()
     {
         $this->asAdmin()
             ->visit('/settings/users/' . $this->user->id)
-            ->select('#books_display', 'List')
+            ->select('list', '#books_display')
             ->press('Save')
             ->visit('/books')
+            ->pageNotHasElement('.gallery-item')
             ->pageHasElement('.entity-list-item');
     }
 
@@ -109,9 +110,10 @@ class UserProfileTest extends BrowserKitTest
     {
         $this->asAdmin()
             ->visit('/settings/users/' . $this->user->id)
-            ->select('#books_display', 'Grid')
+            ->select('grid', '#books_display')
             ->press('Save')
             ->visit('/books')
+            ->pageNotHasElement('.entity-list-item')
             ->pageHasElement('.gallery-item');
     }
 }