assertPathIs($this->url()); } /** * Get the element shortcuts for the page. * * @return array */ public function elements() { return [ '@element' => '#selector', ]; } public function auth(Browser $browser) { $browser ->visitRoute('client.login') ->type('email', 'user@example.com') ->type('password', 'password') ->press('Login'); } }