Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Pages/PasswordReset.php
Show All 19 Lines | class PasswordReset 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->assertPathIs('/password-reset'); | $browser->assertPathBeginsWith('/password-reset'); | ||||
$browser->assertPresent('@step1'); | |||||
} | } | ||||
/** | /** | ||||
* 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 | ||||
Show All 9 Lines |