Don't need this anymore
This commit is contained in:
parent
7db6665817
commit
cdf365ad8c
1 changed files with 1 additions and 2 deletions
|
@ -28,10 +28,9 @@ class Login extends Page
|
|||
$browser->assertPathIs($this->url());
|
||||
}
|
||||
|
||||
public function loginToPanel(Browser $browser, $username, $password)
|
||||
public function loginToPanel(Browser $browser, string $username, string $password)
|
||||
{
|
||||
$browser->type('username', $username);
|
||||
$browser->script("document.querySelector('input[name=username]').value = '$username'");
|
||||
$browser->type('password', $password);
|
||||
|
||||
$browser->clickAndWaitForReload('button[type=submit]', 2);
|
||||
|
|
Loading…
Reference in a new issue