First round of authentication tests

This commit is contained in:
Dane Everitt 2018-05-31 22:42:52 -07:00
parent b50f314eda
commit f8fa62e3d6
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 136 additions and 6 deletions

View file

@ -0,0 +1,24 @@
<?php
namespace Pterodactyl\Tests\Browser\Pages;
class LoginPage extends BasePage
{
/**
* @return string
*/
public function url(): string
{
return '/auth/login';
}
public function elements()
{
return [
'@username' => '#grid-username',
'@password' => '#grid-password',
'@loginButton' => '#grid-login-button',
'@forgotPassword' => 'a[aria-label="Forgot password"]',
];
}
}