Test for layout selection.
This commit is contained in:
parent
6a6516ddd5
commit
1278a0b818
1 changed files with 4 additions and 4 deletions
|
@ -95,21 +95,21 @@ class UserProfileTest extends BrowserKitTest
|
||||||
->see('cannot delete the guest user');
|
->see('cannot delete the guest user');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_book_display_is_list()
|
public function test_books_display_is_list()
|
||||||
{
|
{
|
||||||
$this->asAdmin()
|
$this->asAdmin()
|
||||||
->visit('/settings/user/' . $this->user->id)
|
->visit('/settings/user/' . $this->user->id)
|
||||||
->select('book_display', 'List')
|
->select('books_display', 'List')
|
||||||
->press('Save')
|
->press('Save')
|
||||||
->visit('/books')
|
->visit('/books')
|
||||||
->pageHasElement('.entity-list-item');
|
->pageHasElement('.entity-list-item');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_book_display_is_grid()
|
public function test_books_display_is_grid()
|
||||||
{
|
{
|
||||||
$this->asAdmin()
|
$this->asAdmin()
|
||||||
->visit('/settings/user/' . $this->user->id)
|
->visit('/settings/user/' . $this->user->id)
|
||||||
->select('book_display', 'Grid')
|
->select('books_display', 'Grid')
|
||||||
->press('Save')
|
->press('Save')
|
||||||
->visit('/books')
|
->visit('/books')
|
||||||
->pageHasElement('.gallery-item');
|
->pageHasElement('.gallery-item');
|
||||||
|
|
Loading…
Reference in a new issue