Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Pages/DistlistInfo.php
Show All 19 Lines | class DistlistInfo extends Page | ||||
* Assert that the browser is on the page. | * Assert that the browser is on the page. | ||||
* | * | ||||
* @param \Laravel\Dusk\Browser $browser The browser object | * @param \Laravel\Dusk\Browser $browser The browser object | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function assert($browser) | public function assert($browser) | ||||
{ | { | ||||
$browser->waitFor('@form') | $browser->waitFor('@general') | ||||
->waitUntilMissing('.app-loader'); | ->waitUntilMissing('.app-loader'); | ||||
} | } | ||||
/** | /** | ||||
* Get the element shortcuts for the page. | * Get the element shortcuts for the page. | ||||
* | * | ||||
* @return array | * @return array | ||||
*/ | */ | ||||
public function elements(): array | public function elements(): array | ||||
{ | { | ||||
return [ | return [ | ||||
'@app' => '#app', | '@app' => '#app', | ||||
'@form' => '#distlist-info form', | '@general' => '#general', | ||||
'@nav' => 'ul.nav-tabs', | |||||
'@settings' => '#settings', | |||||
'@status' => '#status-box', | '@status' => '#status-box', | ||||
]; | ]; | ||||
} | } | ||||
} | } |