mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
cleanup
This commit is contained in:
parent
c6c45b3342
commit
2710d7349f
9 changed files with 128 additions and 71 deletions
|
@ -0,0 +1,42 @@
|
|||
import { BasePage } from "../base.page";
|
||||
|
||||
class UserPreferencesPage extends BasePage {
|
||||
|
||||
get languageSelectBox(): Cypress.Chainable<any> {
|
||||
return cy.get('#langSelect');
|
||||
}
|
||||
|
||||
languageSelectBoxOption(lang: string): Cypress.Chainable<any> {
|
||||
return cy.get('#langSelect'+lang);
|
||||
}
|
||||
|
||||
get streamingSelectBox(): Cypress.Chainable<any> {
|
||||
return cy.get('#streamingSelect');
|
||||
}
|
||||
|
||||
streamingSelectBoxOption(country: string): Cypress.Chainable<any> {
|
||||
return cy.get('#streamingSelect'+country);
|
||||
}
|
||||
|
||||
get qrCode(): Cypress.Chainable<any> {
|
||||
return cy.get('#qrCode');
|
||||
}
|
||||
|
||||
get noQrCode(): Cypress.Chainable<any> {
|
||||
return cy.get('#noQrCode');
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
visit(options: Cypress.VisitOptions): Cypress.Chainable<Cypress.AUTWindow>;
|
||||
visit(): Cypress.Chainable<Cypress.AUTWindow>;
|
||||
visit(id: string): Cypress.Chainable<Cypress.AUTWindow>;
|
||||
visit(id: string, options: Cypress.VisitOptions): Cypress.Chainable<Cypress.AUTWindow>;
|
||||
visit(id?: any, options?: any) {
|
||||
return cy.visit(`/user-preferences`, options);
|
||||
}
|
||||
}
|
||||
|
||||
export const userPreferencesPage = new UserPreferencesPage();
|
Loading…
Add table
Add a link
Reference in a new issue