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.
Ombi/tests/cypress/integration/page-objects/discover/discover.page.ts

38 lines
796 B

import { BasePage } from "../base.page";
class CarouselComponent {
private id: string;
get combinedButton(): Cypress.Chainable<any> {
return cy.get(`#${this.id}Combined-button`);
}
get movieButton(): Cypress.Chainable<any> {
return cy.get(`#${this.id}Movie-button`);
}
get tvButton(): Cypress.Chainable<any> {
return cy.get(`#${this.id}Tv-button`);
}
constructor(id: string) {
this.id = id;
}
}
class DiscoverPage extends BasePage {
popularCarousel = new CarouselComponent('popular');
constructor() {
super();
}
visit(options?: Cypress.VisitOptions): Cypress.Chainable<Cypress.AUTWindow> {
return cy.visit(`/discover`, options);
}
}
export const discoverPage = new DiscoverPage();