]> BookStack Code Mirror - bookstack/commitdiff
Test for grid and list layout selection.
authorNilesh Deepak <redacted>
Sat, 15 Jul 2017 07:49:49 +0000 (13:19 +0530)
committerNilesh Deepak <redacted>
Sat, 15 Jul 2017 07:49:49 +0000 (13:19 +0530)
tests/UserProfileTest.php

index 5f402273dadf9d28f6430f3f288badafba5a657c..25edfbf5e58ed08800590d198ff568f100c0644c 100644 (file)
@@ -99,7 +99,7 @@ class UserProfileTest extends BrowserKitTest
     {
         $this->asAdmin()
             ->visit('/settings/users/' . $this->user->id)
-            ->select('books_display', 'List')
+            ->select('#books_display', 'List')
             ->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('#books_display', 'Grid')
             ->press('Save')
             ->visit('/books')
             ->pageHasElement('.gallery-item');
Morty Proxy This is a proxified and sanitized view of the page, visit original site.