diff --git a/tests/Browser/Pages/ClientPortal/Login.php b/tests/Browser/Pages/ClientPortal/Login.php new file mode 100644 index 000000000000..11125eba444a --- /dev/null +++ b/tests/Browser/Pages/ClientPortal/Login.php @@ -0,0 +1,51 @@ +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'); + } +}