mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
Started adding the ability for them to self manage their accounts
This commit is contained in:
parent
612fbb213f
commit
27f0d6e225
15 changed files with 385 additions and 181 deletions
|
@ -73,7 +73,7 @@ class NavBar {
|
|||
}
|
||||
|
||||
get userPreferences(): Cypress.Chainable<any> {
|
||||
return cy.get('#nav-userPreferences');
|
||||
return cy.get('#profile-image');
|
||||
}
|
||||
|
||||
get logout(): Cypress.Chainable<any> {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import { BasePage } from "../base.page";
|
||||
|
||||
class UserPreferencesPage extends BasePage {
|
||||
|
||||
class ProfileTab {
|
||||
get languageSelectBox(): Cypress.Chainable<any> {
|
||||
return cy.get('#langSelect');
|
||||
}
|
||||
|
@ -17,6 +16,9 @@ class UserPreferencesPage extends BasePage {
|
|||
streamingSelectBoxOption(country: string): Cypress.Chainable<any> {
|
||||
return cy.get('#streamingSelect'+country);
|
||||
}
|
||||
}
|
||||
|
||||
class MobileTab {
|
||||
|
||||
get qrCode(): Cypress.Chainable<any> {
|
||||
return cy.get('#qrCode');
|
||||
|
@ -25,6 +27,59 @@ class UserPreferencesPage extends BasePage {
|
|||
get noQrCode(): Cypress.Chainable<any> {
|
||||
return cy.get('#noQrCode');
|
||||
}
|
||||
}
|
||||
|
||||
class SecurityTab {
|
||||
get currentPassword(): Cypress.Chainable<any> {
|
||||
return cy.get('#currentPassword');
|
||||
}
|
||||
|
||||
get email(): Cypress.Chainable<any> {
|
||||
return cy.get('#email');
|
||||
}
|
||||
|
||||
get newPassword(): Cypress.Chainable<any> {
|
||||
return cy.get('#newPassword');
|
||||
}
|
||||
|
||||
get confirmPassword(): Cypress.Chainable<any> {
|
||||
return cy.get('#confirmPassword');
|
||||
}
|
||||
|
||||
get submitButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#submitSecurity');
|
||||
}
|
||||
}
|
||||
|
||||
class UserPreferencesPage extends BasePage {
|
||||
|
||||
|
||||
get username(): Cypress.Chainable<any> {
|
||||
return cy.get('#usernameTitle');
|
||||
}
|
||||
get email(): Cypress.Chainable<any> {
|
||||
return cy.get('#emailTitle');
|
||||
}
|
||||
|
||||
get profileTab(): Cypress.Chainable<any> {
|
||||
return cy.get('[role="tab"]').eq(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);
|
||||
}
|
||||
|
||||
profile = new ProfileTab();
|
||||
mobile = new MobileTab();
|
||||
security = new SecurityTab();
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue