import { BasePage } from "../../base.page"; import { AdminRequestDialog } from "../../shared/AdminRequestDialog"; class MovieInformationPanel { get denyReason(): Cypress.Chainable { return cy.get('#deniedReasonInfo'); } get requestedBy(): Cypress.Chainable { return cy.get('#requestedByInfo'); } } class DenyModal { get denyReason(): Cypress.Chainable { return cy.get('#denyInput'); } get denyButton(): Cypress.Chainable { return cy.get('#denyButton'); } } class MovieDetailsPage extends BasePage { get title(): Cypress.Chainable { return cy.get('#mediaTitle'); } get availableButton(): Cypress.Chainable { return cy.get('#availableBtn'); } get requestButton(): Cypress.Chainable { return cy.get('#requestBtn'); } get requestedButton(): Cypress.Chainable { return cy.get('#requestedBtn'); } get approveButton(): Cypress.Chainable { return cy.get('#approveBtn'); } get markAvailableButton(): Cypress.Chainable { return cy.get('#markAvailableBtn'); } get denyButton(): Cypress.Chainable { return cy.get('#denyBtn'); } get deniedButton(): Cypress.Chainable { return cy.get('#deniedButton'); } get reportIssueButton(): Cypress.Chainable { return cy.get('#reportIssueBtn'); } get viewCollectionButton(): Cypress.Chainable { return cy.get('#viewCollectionBtn'); } get viewOnPlexButton(): Cypress.Chainable { return cy.get('#viewOnPlexButton'); } get viewOnEmbyButton(): Cypress.Chainable { return cy.get('#viewOnEmbyButton'); } get viewOnJellyfinButton(): Cypress.Chainable { return cy.get('#viewOnJellyfinButton'); } denyModal = new DenyModal(); informationPanel = new MovieInformationPanel(); adminOptionsDialog = new AdminRequestDialog(); constructor() { super(); } 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(`/details/movie/` + id, options); } } export const movieDetailsPage = new MovieDetailsPage();