Merge branch 'BookStackApp-master' of git://github.com/OsmosysSoftware/BookStack into OsmosysSoftware-BookStackApp-master

This commit is contained in:
Dan Brown
2017-12-06 15:52:54 +00:00
31 changed files with 301 additions and 31 deletions

View File

@ -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');
}
}