Remove dusk tests, they're not used
This commit is contained in:
parent
66da520e11
commit
ab37ee8633
19 changed files with 2 additions and 845 deletions
|
@ -1,19 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Pterodactyl\Tests\Browser\Pages;
|
||||
|
||||
use Laravel\Dusk\Page;
|
||||
|
||||
abstract class BasePage extends Page
|
||||
{
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public static function siteElements()
|
||||
{
|
||||
return [
|
||||
'@@success' => '.alert.success[role="alert"]',
|
||||
'@@error' => '.alert.error[role="alert"]',
|
||||
];
|
||||
}
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Pterodactyl\Tests\Browser\Pages\Dashboard;
|
||||
|
||||
use Pterodactyl\Tests\Browser\Pages\BasePage;
|
||||
|
||||
class AccountPage extends BasePage
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function url()
|
||||
{
|
||||
return '/account';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function elements()
|
||||
{
|
||||
return array_merge(parent::elements(), [
|
||||
'@email' => '#update-email-container #grid-email',
|
||||
'@password' => '#update-email-container #grid-password[type="password"]',
|
||||
'@submit' => '#update-email-container button[type="submit"]',
|
||||
|
||||
'@current_password' => '#change-password-container #grid-password-current[type="password"]',
|
||||
'@new_password' => '#change-password-container #grid-password-new[type="password"]',
|
||||
'@confirm_password' => '#change-password-container #grid-password-new-confirm[type="password"]',
|
||||
'@submit_password' => '#change-password-container button[type="submit"]',
|
||||
|
||||
'@2fa_button' => '#grid-open-two-factor-modal',
|
||||
'@2fa_modal' => '.modal-mask #configure-two-factor',
|
||||
'@2fa_token' => '#configure-two-factor #container-enable-two-factor #grid-two-factor-token[type="number"]',
|
||||
'@2fa_token_disable' => '#configure-two-factor #container-disable-two-factor #grid-two-factor-token-disable',
|
||||
'@2fa_enable' => '#configure-two-factor #container-enable-two-factor button[type="submit"]',
|
||||
'@2fa_disable' => '#configure-two-factor #container-disable-two-factor button.btn-red[type="submit"]',
|
||||
'@2fa_cancel' => '#configure-two-factor #container-disable-two-factor button.btn-secondary',
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Pterodactyl\Tests\Browser\Pages;
|
||||
|
||||
class LoginPage extends BasePage
|
||||
{
|
||||
public function url(): string
|
||||
{
|
||||
return '/auth/login';
|
||||
}
|
||||
|
||||
public function elements()
|
||||
{
|
||||
return [
|
||||
'@email' => '#grid-email',
|
||||
'@username' => '#grid-username',
|
||||
'@password' => '#grid-password',
|
||||
'@loginButton' => '#grid-login-button',
|
||||
'@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',
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue