assertPathIs($this->url()); } public function loginToPanel(Browser $browser, string $username, string $password) { $browser->type('username', $username); $browser->type('password', $password); $browser->clickAndWaitForReload('button[type=submit]', 2); } }