mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Fixed test failing due to redirect changes
- Also set APP_THEME param during testing to avoid local conflicts
This commit is contained in:
@ -637,14 +637,14 @@ class RolesTest extends BrowserKitTest
|
||||
$ownPage->getUrl() => 'Delete'
|
||||
]);
|
||||
|
||||
$bookUrl = $ownPage->book->getUrl();
|
||||
$parent = $ownPage->chapter ?? $ownPage->book;
|
||||
$this->visit($otherPage->getUrl())
|
||||
->dontSeeInElement('.action-buttons', 'Delete')
|
||||
->visit($otherPage->getUrl() . '/delete')
|
||||
->seePageIs('/');
|
||||
$this->visit($ownPage->getUrl())->visit($ownPage->getUrl() . '/delete')
|
||||
->press('Confirm')
|
||||
->seePageIs($bookUrl)
|
||||
->seePageIs($parent->getUrl())
|
||||
->dontSeeInElement('.book-content', $ownPage->name);
|
||||
}
|
||||
|
||||
@ -658,10 +658,10 @@ class RolesTest extends BrowserKitTest
|
||||
$otherPage->getUrl() => 'Delete'
|
||||
]);
|
||||
|
||||
$bookUrl = $otherPage->book->getUrl();
|
||||
$parent = $otherPage->chapter ?? $otherPage->book;
|
||||
$this->visit($otherPage->getUrl())->visit($otherPage->getUrl() . '/delete')
|
||||
->press('Confirm')
|
||||
->seePageIs($bookUrl)
|
||||
->seePageIs($parent->getUrl())
|
||||
->dontSeeInElement('.book-content', $otherPage->name);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user