mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Merge branch 'develop' into feature/tvmaze-replacement
This commit is contained in:
commit
8368877c74
135 changed files with 10704 additions and 320 deletions
35
tests/cypress/integration/page-objects/search/search.page.ts
Normal file
35
tests/cypress/integration/page-objects/search/search.page.ts
Normal file
|
@ -0,0 +1,35 @@
|
|||
import { BasePage } from "../base.page";
|
||||
import { DiscoverCard } from "../shared/DiscoverCard";
|
||||
|
||||
class SearchPage extends BasePage {
|
||||
|
||||
get noSearchResultMessage(): Cypress.Chainable<any> {
|
||||
return cy.get('#noSearchResult');
|
||||
}
|
||||
|
||||
get searchResultsContainer(): Cypress.Chainable<any> {
|
||||
return cy.get('#searchResults');
|
||||
}
|
||||
|
||||
get searchResultCount(): Cypress.Chainable<any> {
|
||||
return cy.get('[search-count*=]');
|
||||
}
|
||||
|
||||
getCard(id: string, movie: boolean): DiscoverCard {
|
||||
return new DiscoverCard(id, movie);
|
||||
}
|
||||
|
||||
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(`/discover/` + encodeURI(id), options);
|
||||
}
|
||||
}
|
||||
|
||||
export const searchPage = new SearchPage();
|
Loading…
Add table
Add a link
Reference in a new issue