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.
69 lines
1.7 KiB
69 lines
1.7 KiB
4 years ago
|
import { BasePage } from "../base.page";
|
||
|
|
||
|
class LocalUserTab {
|
||
|
get username(): Cypress.Chainable<any> {
|
||
|
return cy.get('#adminUsername');
|
||
|
}
|
||
|
|
||
|
get password(): Cypress.Chainable<any> {
|
||
|
return cy.get('#adminPassword');
|
||
|
}
|
||
|
|
||
|
get next(): Cypress.Chainable<any> {
|
||
|
return cy.getByData('nextLocalUser');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class WelcomeTab {
|
||
|
get next(): Cypress.Chainable<any> {
|
||
|
return cy.getByData('nextWelcome');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class MediaServerTab {
|
||
|
get next(): Cypress.Chainable<any> {
|
||
|
return cy.getByData('nextMediaServer');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class OmbiConfigTab {
|
||
|
get next(): Cypress.Chainable<any> {
|
||
|
return cy.getByData('nextOmbiConfig');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
class WizardPage extends BasePage {
|
||
|
|
||
|
localUserTab: LocalUserTab;
|
||
|
welcomeTab: WelcomeTab;
|
||
|
mediaServerTab: MediaServerTab;
|
||
|
ombiConfigTab: OmbiConfigTab;
|
||
|
|
||
|
get finishButton(): Cypress.Chainable<any> {
|
||
|
return cy.get('#finishWizard');
|
||
|
}
|
||
|
|
||
|
get matStepsHeader(): Cypress.Chainable<any> {
|
||
|
return cy.get('mat-step-header');
|
||
|
}
|
||
|
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.localUserTab = new LocalUserTab();
|
||
|
this.welcomeTab = new WelcomeTab();
|
||
|
this.mediaServerTab = new MediaServerTab();
|
||
|
this.ombiConfigTab = new OmbiConfigTab();
|
||
|
}
|
||
|
|
||
4 years ago
|
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) {
|
||
4 years ago
|
return cy.visit(`/`, options);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export const wizardPage = new WizardPage();
|