mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
test(automation): ✅ Fixed the user security automation tests
This commit is contained in:
parent
3160f0345f
commit
3056788d5a
1 changed files with 5 additions and 22 deletions
|
@ -18,17 +18,6 @@ class ProfileTab {
|
|||
}
|
||||
}
|
||||
|
||||
class MobileTab {
|
||||
|
||||
get qrCode(): Cypress.Chainable<any> {
|
||||
return cy.get('#qrCode');
|
||||
}
|
||||
|
||||
get noQrCode(): Cypress.Chainable<any> {
|
||||
return cy.get('#noQrCode');
|
||||
}
|
||||
}
|
||||
|
||||
class SecurityTab {
|
||||
get currentPassword(): Cypress.Chainable<any> {
|
||||
return cy.get('#currentPassword');
|
||||
|
@ -62,23 +51,17 @@ class UserPreferencesPage extends BasePage {
|
|||
}
|
||||
|
||||
get profileTab(): Cypress.Chainable<any> {
|
||||
return cy.get('[role="tab"]').eq(0);
|
||||
return cy.get('#mat-tab-label-0-0');
|
||||
}
|
||||
|
||||
get securityTab(): Cypress.Chainable<any> {
|
||||
return cy.get('[role="tab"]').eq(1);
|
||||
}
|
||||
|
||||
get preferencesTab(): Cypress.Chainable<any> {
|
||||
return cy.get('[role="tab"]').eq(2);
|
||||
}
|
||||
|
||||
get mobileTab(): Cypress.Chainable<any> {
|
||||
return cy.get('[role="tab"]').eq(3);
|
||||
cy.waitUntil(() => {
|
||||
return cy.get('#mat-tab-label-0-1').should('be.visible');
|
||||
});
|
||||
return cy.get('#mat-tab-label-0-1');
|
||||
}
|
||||
|
||||
profile = new ProfileTab();
|
||||
mobile = new MobileTab();
|
||||
security = new SecurityTab();
|
||||
|
||||
constructor() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue