public function test_books_view_is_list()
{
- $editor = $this->getEditor([
- 'books_view_type' => 'list'
- ]);
+ $editor = $this->getEditor();
+ setting()->putUser($editor, 'books_view_type', 'list');
$this->actingAs($editor)
->visit('/books')
->pageNotHasElement('.featured-image-container')
- ->pageHasElement('.entity-list-item');
+ ->pageHasElement('.content .entity-list-item');
}
public function test_books_view_is_grid()
{
- $editor = $this->getEditor([
- 'books_view_type' => 'grid'
- ]);
+ $editor = $this->getEditor();
+ setting()->putUser($editor, 'books_view_type', 'grid');
$this->actingAs($editor)
->visit('/books')
->pageHasElement('.featured-image-container');
}
+
}