mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-27 04:32:14 +00:00
Attempted to fix failing time-based test
This commit is contained in:
parent
0306253c45
commit
eb5069ca66
@ -5,6 +5,7 @@ use BookStack\Chapter;
|
|||||||
use BookStack\Page;
|
use BookStack\Page;
|
||||||
use BookStack\Repos\EntityRepo;
|
use BookStack\Repos\EntityRepo;
|
||||||
use BookStack\Repos\UserRepo;
|
use BookStack\Repos\UserRepo;
|
||||||
|
use Carbon\Carbon;
|
||||||
|
|
||||||
class EntityTest extends BrowserKitTest
|
class EntityTest extends BrowserKitTest
|
||||||
{
|
{
|
||||||
@ -269,6 +270,9 @@ class EntityTest extends BrowserKitTest
|
|||||||
public function test_recently_updated_pages_on_home()
|
public function test_recently_updated_pages_on_home()
|
||||||
{
|
{
|
||||||
$page = Page::orderBy('updated_at', 'asc')->first();
|
$page = Page::orderBy('updated_at', 'asc')->first();
|
||||||
|
Page::where('id', '!=', $page->id)->update([
|
||||||
|
'updated_at' => Carbon::now()->subSecond(1)
|
||||||
|
]);
|
||||||
$this->asAdmin()->visit('/')
|
$this->asAdmin()->visit('/')
|
||||||
->dontSeeInElement('#recently-updated-pages', $page->name);
|
->dontSeeInElement('#recently-updated-pages', $page->name);
|
||||||
$this->visit($page->getUrl() . '/edit')
|
$this->visit($page->getUrl() . '/edit')
|
||||||
|
Loading…
Reference in New Issue
Block a user