mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-14 15:56:38 +08:00
Test for grid and list layout selection.
This commit is contained in:
@ -99,7 +99,7 @@ class UserProfileTest extends BrowserKitTest
|
|||||||
{
|
{
|
||||||
$this->asAdmin()
|
$this->asAdmin()
|
||||||
->visit('/settings/users/' . $this->user->id)
|
->visit('/settings/users/' . $this->user->id)
|
||||||
->select('books_display', 'List')
|
->select('#books_display', 'List')
|
||||||
->press('Save')
|
->press('Save')
|
||||||
->visit('/books')
|
->visit('/books')
|
||||||
->pageHasElement('.entity-list-item');
|
->pageHasElement('.entity-list-item');
|
||||||
@ -109,7 +109,7 @@ class UserProfileTest extends BrowserKitTest
|
|||||||
{
|
{
|
||||||
$this->asAdmin()
|
$this->asAdmin()
|
||||||
->visit('/settings/users/' . $this->user->id)
|
->visit('/settings/users/' . $this->user->id)
|
||||||
->select('books_display', 'Grid')
|
->select('#books_display', 'Grid')
|
||||||
->press('Save')
|
->press('Save')
|
||||||
->visit('/books')
|
->visit('/books')
|
||||||
->pageHasElement('.gallery-item');
|
->pageHasElement('.gallery-item');
|
||||||
|
Reference in New Issue
Block a user