First round of authentication tests
This commit is contained in:
parent
b50f314eda
commit
f8fa62e3d6
5 changed files with 136 additions and 6 deletions
24
tests/Browser/Pages/LoginPage.php
Normal file
24
tests/Browser/Pages/LoginPage.php
Normal 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"]',
|
||||
];
|
||||
}
|
||||
}
|
Reference in a new issue