Skip to content

NOW MANAGED ON CODEBERG

Test for layout selection.

Nilesh Deepak6a6516ddd516
diff --git a/tests/UserProfileTest.php b/tests/UserProfileTest.php
index 12f88483f..7b500eebb 100644
--- a/tests/UserProfileTest.php
+++ b/tests/UserProfileTest.php
@@ -95,4 +95,23 @@ class UserProfileTest extends BrowserKitTest
->see('cannot delete the guest user');
}
+ public function test_book_display_is_list()
+ {
+ $this->asAdmin()
+ ->visit('/settings/user/' . $this->user->id)
+ ->select('book_display', 'List')
+ ->press('Save')
+ ->visit('/books')
+ ->pageHasElement('.entity-list-item');
+ }
+
+ public function test_book_display_is_grid()
+ {
+ $this->asAdmin()
+ ->visit('/settings/user/' . $this->user->id)
+ ->select('book_display', 'Grid')
+ ->press('Save')
+ ->visit('/books')
+ ->pageHasElement('.gallery-item');
+ }
}