2018-05-31 22:42:52 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Tests\Browser\Pages;
|
|
|
|
|
|
|
|
class LoginPage extends BasePage
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function url(): string
|
|
|
|
{
|
|
|
|
return '/auth/login';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function elements()
|
|
|
|
{
|
|
|
|
return [
|
2018-06-02 16:39:49 -07:00
|
|
|
'@email' => '#grid-email',
|
2018-05-31 22:42:52 -07:00
|
|
|
'@username' => '#grid-username',
|
|
|
|
'@password' => '#grid-password',
|
|
|
|
'@loginButton' => '#grid-login-button',
|
2018-06-02 16:39:49 -07:00
|
|
|
'@submitButton' => 'button.btn.btn-jumbo[type="submit"]',
|
|
|
|
'@forgotPassword' => 'a[href="/auth/password"][aria-label="Forgot password"]',
|
|
|
|
'@goToLogin' => 'a[href="/auth/login"][aria-label="Go to login"]',
|
|
|
|
'@alertSuccess' => 'div[role="alert"].success > span.message',
|
|
|
|
'@alertDanger' => 'div[role="alert"].danger > span.message',
|
2018-05-31 22:42:52 -07:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|