Skip to content

Commit aae3cd6

Browse files
committed
Added test to cover PR #3177
1 parent 6db6476 commit aae3cd6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/Entity/PageTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,21 @@ public function test_recently_updated_pages_view()
261261
->assertElementContains('.entity-list .page:nth-child(1)', $content['page']->name);
262262
}
263263

264+
public function test_recently_updated_pages_view_shows_updated_by_details()
265+
{
266+
$user = $this->getEditor();
267+
/** @var Page $page */
268+
$page = Page::query()->first();
269+
270+
$this->actingAs($user)->put($page->getUrl(), [
271+
'name' => 'Updated title',
272+
'html' => '<p>Updated content</p>',
273+
]);
274+
275+
$resp = $this->asAdmin()->get('/pages/recently-updated');
276+
$resp->assertElementContains('.entity-list .page:nth-child(1)', 'Updated 1 second ago by ' . $user->name);
277+
}
278+
264279
public function test_recently_updated_pages_on_home()
265280
{
266281
/** @var Page $page */

0 commit comments

Comments
 (0)