mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 03:42:32 +01:00
Test for layout selection.
This commit is contained in:
parent
1fe8f13503
commit
6a6516ddd5
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user