Page MenuHomePhorge

UserList.php
No OneTemporary

Authored By
Unknown
Size
865 B
Referenced Files
None
Subscribers
None

UserList.php

<?php
namespace Tests\Browser\Pages;
use Laravel\Dusk\Page;
class UserList extends Page
{
/**
* Get the URL for the page.
*
* @return string
*/
public function url(): string
{
return '/users';
}
/**
* Assert that the browser is on the page.
*
* @param \Laravel\Dusk\Browser $browser The browser object
*
* @return void
*/
public function assert($browser)
{
$browser->assertPathIs($this->url())
->waitUntilMissing('@app .app-loader')
->assertSeeIn('#user-list .card-title', 'User accounts');
}
/**
* Get the element shortcuts for the page.
*
* @return array
*/
public function elements(): array
{
return [
'@app' => '#app',
'@table' => '#user-list table',
];
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 12:57 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18792408
Default Alt Text
UserList.php (865 B)

Event Timeline