mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-28 01:01:27 +08:00
Merge branch 'BookStackApp-master' of git://github.com/OsmosysSoftware/BookStack into OsmosysSoftware-BookStackApp-master
This commit is contained in:
@ -94,5 +94,27 @@ class UserProfileTest extends BrowserKitTest
|
||||
->seePageIs('/settings/users/' . $guestUser->id)
|
||||
->see('cannot delete the guest user');
|
||||
}
|
||||
|
||||
|
||||
public function test_books_view_is_list()
|
||||
{
|
||||
$editor = $this->getEditor([
|
||||
'books_view_type' => 'list'
|
||||
]);
|
||||
|
||||
$this->actingAs($editor)
|
||||
->visit('/books')
|
||||
->pageNotHasElement('.featured-image-container')
|
||||
->pageHasElement('.entity-list-item');
|
||||
}
|
||||
|
||||
public function test_books_view_is_grid()
|
||||
{
|
||||
$editor = $this->getEditor([
|
||||
'books_view_type' => 'grid'
|
||||
]);
|
||||
|
||||
$this->actingAs($editor)
|
||||
->visit('/books')
|
||||
->pageHasElement('.featured-image-container');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user