mirror of https://github.com/Ombi-app/Ombi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
43 lines
1.2 KiB
4 years ago
|
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();
|