mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-27 10:33:44 +02:00
First round of authentication tests
This commit is contained in:
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 New Issue
Block a user