Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F8199333
UserList.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
906 B
Referenced Files
None
Subscribers
None
UserList.php
View Options
<?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'
,
'@search'
=>
'#search-form'
,
'@table'
=>
'#user-list table'
,
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jul 8, 10:46 PM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1051980
Default Alt Text
UserList.php (906 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment