]> BookStack Code Mirror - bookstack/blobdiff - tests/UserProfileTest.php
Test for cover image upload
[bookstack] / tests / UserProfileTest.php
index 09870e13850437c03087e0bce65de56bca366d51..c87a7b88ace91baad0bc7c631cd165bae4b2adda 100644 (file)
@@ -99,9 +99,10 @@ class UserProfileTest extends BrowserKitTest
     {
         $this->asAdmin()
             ->visit('/settings/users/' . $this->user->id)
-            ->select('grid', '#books_display')
+            ->select('#books_display', 'List')
             ->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('list', '#books_display')
+            ->select('#books_display', 'Grid')
             ->press('Save')
             ->visit('/books')
+            ->pageNotHasElement('.entity-list-item')
             ->pageHasElement('.gallery-item');
     }
 }