import { BasePage } from "../base.page"; class LocalUserTab { get username(): Cypress.Chainable { return cy.get('#adminUsername'); } get password(): Cypress.Chainable { return cy.get('#adminPassword'); } get next(): Cypress.Chainable { return cy.getByData('nextLocalUser'); } } class WelcomeTab { get next(): Cypress.Chainable { return cy.getByData('nextWelcome'); } } class MediaServerTab { get next(): Cypress.Chainable { return cy.getByData('nextMediaServer'); } } class OmbiConfigTab { get next(): Cypress.Chainable { return cy.getByData('nextOmbiConfig'); } } class WizardPage extends BasePage { localUserTab: LocalUserTab; welcomeTab: WelcomeTab; mediaServerTab: MediaServerTab; ombiConfigTab: OmbiConfigTab; get finishButton(): Cypress.Chainable { return cy.get('#finishWizard'); } get matStepsHeader(): Cypress.Chainable { return cy.get('mat-step-header'); } constructor() { super(); this.localUserTab = new LocalUserTab(); this.welcomeTab = new WelcomeTab(); this.mediaServerTab = new MediaServerTab(); this.ombiConfigTab = new OmbiConfigTab(); } visit(options: Cypress.VisitOptions): Cypress.Chainable; visit(): Cypress.Chainable; visit(id: string): Cypress.Chainable; visit(id: string, options: Cypress.VisitOptions): Cypress.Chainable; visit(id?: any, options?: any) { return cy.visit(`/`, options); } } export const wizardPage = new WizardPage();