]> BookStack Code Mirror - bookstack/commitdiff
Fixes the test case related to UserProfileTest.
authorabijeetp <redacted>
Sat, 15 Jul 2017 10:20:42 +0000 (15:50 +0530)
committerabijeetp <redacted>
Sat, 15 Jul 2017 10:20:42 +0000 (15:50 +0530)
tests/UserProfileTest.php

index 25edfbf5e58ed08800590d198ff568f100c0644c..09870e13850437c03087e0bce65de56bca366d51 100644 (file)
@@ -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');
Morty Proxy This is a proxified and sanitized view of the page, visit original site.