Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Pages/Dashboard.php
Show All 32 Lines | class Dashboard extends Page | ||||
/** | /** | ||||
* Assert logged-in user | * Assert logged-in user | ||||
* | * | ||||
* @param \Laravel\Dusk\Browser $browser The browser object | * @param \Laravel\Dusk\Browser $browser The browser object | ||||
* @param string $user User email | * @param string $user User email | ||||
*/ | */ | ||||
public function assertUser($browser, $user) | public function assertUser($browser, $user) | ||||
{ | { | ||||
$browser->assertVue('$store.state.authInfo.email', $user, '@dashboard-component'); | $browser->assertVue('$root.authInfo.email', $user, '@dashboard-component'); | ||||
} | } | ||||
/** | /** | ||||
* Get the element shortcuts for the page. | * Get the element shortcuts for the page. | ||||
* | * | ||||
* @return array | * @return array | ||||
*/ | */ | ||||
public function elements() | public function elements() | ||||
Show All 9 Lines |