X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/33a2999a57854495fcea8c1acf1b75b04a28a0bf..dd4d2f4696edb68ace506abf18aa7a8e19dba164:/tests/UserProfileTest.php diff --git a/tests/UserProfileTest.php b/tests/UserProfileTest.php index 12f88483f..09870e138 100644 --- a/tests/UserProfileTest.php +++ b/tests/UserProfileTest.php @@ -94,5 +94,24 @@ 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('grid', '#books_display') + ->press('Save') + ->visit('/books') + ->pageHasElement('.entity-list-item'); + } + + public function test_books_display_is_grid() + { + $this->asAdmin() + ->visit('/settings/users/' . $this->user->id) + ->select('list', '#books_display') + ->press('Save') + ->visit('/books') + ->pageHasElement('.gallery-item'); + } }