mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 18:47:15 -07:00
more automation
This commit is contained in:
parent
77ac5e77cc
commit
3c37a21ab3
10 changed files with 274 additions and 31 deletions
|
@ -0,0 +1,91 @@
|
|||
import { BasePage } from "../../base.page";
|
||||
|
||||
class MovieInformationPanel {
|
||||
|
||||
get denyReason(): Cypress.Chainable<any> {
|
||||
return cy.get('#deniedReasonInfo');
|
||||
}
|
||||
}
|
||||
|
||||
class DenyModal {
|
||||
|
||||
get denyReason(): Cypress.Chainable<any> {
|
||||
return cy.get('#denyInput');
|
||||
}
|
||||
|
||||
get denyButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#denyButton');
|
||||
}
|
||||
}
|
||||
|
||||
class MovieDetailsPage extends BasePage {
|
||||
|
||||
get title(): Cypress.Chainable<any> {
|
||||
return cy.get('#mediaTitle');
|
||||
}
|
||||
|
||||
get availableButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#availableBtn');
|
||||
}
|
||||
|
||||
get requestButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#requestBtn');
|
||||
}
|
||||
|
||||
get requestedButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#requestedBtn');
|
||||
}
|
||||
|
||||
get approveButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#approveBtn');
|
||||
}
|
||||
|
||||
get markAvailableButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#markAvailableBtn');
|
||||
}
|
||||
|
||||
get denyButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#denyBtn');
|
||||
}
|
||||
|
||||
get deniedButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#deniedButton');
|
||||
}
|
||||
|
||||
get reportIssueButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#reportIssueBtn');
|
||||
}
|
||||
|
||||
get viewCollectionButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#viewCollectionBtn');
|
||||
}
|
||||
|
||||
get viewOnPlexButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#viewOnPlexButton');
|
||||
}
|
||||
|
||||
get viewOnEmbyButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#viewOnEmbyButton');
|
||||
}
|
||||
|
||||
get viewOnJellyfinButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#viewOnJellyfinButton');
|
||||
}
|
||||
|
||||
denyModal = new DenyModal();
|
||||
informationPanel = new MovieInformationPanel();
|
||||
|
||||
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(`/details/movie/` + id, options);
|
||||
}
|
||||
}
|
||||
|
||||
export const movieDetailsPage = new MovieDetailsPage();
|
|
@ -1,10 +1,5 @@
|
|||
import { BasePage } from "../../base.page";
|
||||
|
||||
class BaseMediaPage extends BasePage {
|
||||
get title(): Cypress.Chainable<any> {
|
||||
return cy.get('#mediaTitle');
|
||||
}
|
||||
}
|
||||
class TvRequestPanel {
|
||||
|
||||
seasonTab(seasonNumber: number): Cypress.Chainable<any> {
|
||||
|
@ -61,8 +56,11 @@ class TvDetailsInformationPanel {
|
|||
}
|
||||
}
|
||||
|
||||
class TvDetailsPage extends BaseMediaPage {
|
||||
class TvDetailsPage extends BasePage {
|
||||
|
||||
get title(): Cypress.Chainable<any> {
|
||||
return cy.get('#mediaTitle');
|
||||
}
|
||||
|
||||
get availableButton(): Cypress.Chainable<any> {
|
||||
return cy.get('#availableBtn');
|
||||
|
|
|
@ -5,3 +5,4 @@ export * from './details/tv/tvdetails.page';
|
|||
export * from './search/search.page';
|
||||
export * from './user-preferences/user-preferences.page';
|
||||
export * from './requests/requests.page';
|
||||
export * from './details/movies/moviedetails.page';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue