mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
Fixed failing home test after changes in last commit
Also made a restriction test more reliable. Also renamed restrictionstest to entitypermissionstest to be more consistent with newer app wording.
This commit is contained in:
@ -98,16 +98,16 @@ class HomepageTest extends TestCase
|
||||
{
|
||||
$editor = $this->getEditor();
|
||||
setting()->putUser($editor, 'bookshelves_view_type', 'grid');
|
||||
$shelf = Bookshelf::query()->firstOrFail();
|
||||
|
||||
$this->setSettings(['app-homepage-type' => 'bookshelves']);
|
||||
|
||||
$this->asEditor();
|
||||
$homeVisit = $this->get('/');
|
||||
$homeVisit->assertSee('Shelves');
|
||||
$homeVisit->assertSee('bookshelf-grid-item grid-card');
|
||||
$homeVisit->assertSee('grid-card-content');
|
||||
$homeVisit->assertSee('grid-card-footer');
|
||||
$homeVisit->assertSee('featured-image-container');
|
||||
$homeVisit->assertElementContains('.grid-card', $shelf->name);
|
||||
|
||||
$this->setSettings(['app-homepage-type' => false]);
|
||||
$this->test_default_homepage_visible();
|
||||
|
Reference in New Issue
Block a user