mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
Fixed the bugs that the automation tests found
This commit is contained in:
parent
600c88dd20
commit
130efd8216
3 changed files with 8 additions and 4 deletions
|
@ -44,7 +44,11 @@ export class DiscoverCard {
|
|||
}
|
||||
|
||||
get requestButton(): Cypress.Chainable<any> {
|
||||
return cy.get(`#requestButton${this.id}${this.movie ? '1' : '0'}${this.type}`);
|
||||
if (this.type) {
|
||||
return cy.get(`#requestButton${this.id}${this.movie ? '1' : '0'}${this.type}`);
|
||||
}
|
||||
|
||||
return cy.get(`#requestButton${this.id}${this.movie ? '1' : '0'}`);
|
||||
}
|
||||
|
||||
verifyTitle(expected: string): Cypress.Chainable<any> {
|
||||
|
|
|
@ -79,7 +79,7 @@ describe("Search Tests", () => {
|
|||
card.requestButton.should('exist');
|
||||
});
|
||||
|
||||
it("No TV results, enabling movies filter we get results", () => {
|
||||
it.only("No TV results, enabling movies filter we get results", () => {
|
||||
Page.navbar.searchFilter.applyFilter(true, false, false);
|
||||
Page.visit("half blood prince");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue