Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Pages/Home.php
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | public function elements() | ||||
'@second-factor-input' => '#secondfactor', | '@second-factor-input' => '#secondfactor', | ||||
'@logon-button' => '#logon-form button.btn-primary' | '@logon-button' => '#logon-form button.btn-primary' | ||||
]; | ]; | ||||
} | } | ||||
/** | /** | ||||
* Submit logon form. | * Submit logon form. | ||||
* | * | ||||
* @param \Laravel\Dusk\Browser $browser The browser object | * @param \Tests\Browser $browser The browser object | ||||
* @param string $username User name | * @param string $username User name | ||||
* @param string $password User password | * @param string $password User password | ||||
* @param bool $wait_for_dashboard | * @param bool $wait_for_dashboard | ||||
* @param array $config Client-site config | * @param array $config Client-site config | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function submitLogon( | public function submitLogon( | ||||
$browser, | $browser, | ||||
$username, | $username, | ||||
$password, | $password, | ||||
$wait_for_dashboard = false, | $wait_for_dashboard = false, | ||||
Show All 24 Lines |