File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -261,6 +261,21 @@ public function test_recently_updated_pages_view()
261
261
->assertElementContains ('.entity-list .page:nth-child(1) ' , $ content ['page ' ]->name );
262
262
}
263
263
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
+
264
279
public function test_recently_updated_pages_on_home ()
265
280
{
266
281
/** @var Page $page */
You can’t perform that action at this time.
0 commit comments