assertPathIs($this->url()) ->assertSee('Login') ->assertPresent((new LoginForm)->selector()); } /** * Get the element shortcuts for the page. * * @return array */ public function elements(): array { return [ '@register-link' => 'a[href*="register"]', ]; } /** * Navigate to the registration page. */ public function goToRegistration(Browser $browser): void { $browser->click('@register-link'); } }