From: abijeetp Date: Sat, 15 Jul 2017 10:20:42 +0000 (+0530) Subject: Fixes the test case related to UserProfileTest. X-Git-Tag: v0.19.0~1^2~15^2~19^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/832f8eaa9492c27aec2d2e058d36c3fc4f9122fa Fixes the test case related to UserProfileTest. --- diff --git a/tests/UserProfileTest.php b/tests/UserProfileTest.php index 25edfbf5e..09870e138 100644 --- a/tests/UserProfileTest.php +++ b/tests/UserProfileTest.php @@ -94,12 +94,12 @@ 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('grid', '#books_display') ->press('Save') ->visit('/books') ->pageHasElement('.entity-list-item'); @@ -109,7 +109,7 @@ class UserProfileTest extends BrowserKitTest { $this->asAdmin() ->visit('/settings/users/' . $this->user->id) - ->select('#books_display', 'Grid') + ->select('list', '#books_display') ->press('Save') ->visit('/books') ->pageHasElement('.gallery-item');