test: Fixed automation

This commit is contained in:
tidusjar 2022-06-05 21:07:47 +01:00
commit 2078b3bf08
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ export class DiscoverCard {
}
get requestType(): Cypress.Chainable<any> {
return cy.get(`#type${this.id}`);
return cy.get(`#type${this.id}-${this.movie ? 'movie': 'tvShow'}`);
}
get statusClass(): Cypress.Chainable<any> {

View file

@ -3,7 +3,7 @@ import { searchPage as Page } from "@/integration/page-objects";
describe("Search Tests", () => {
beforeEach(() => {
cy.login();
cy.intercept("POST", "v2/search/multi/").as("searchResponse");
cy.intercept("POST", "api/v2/search/multi/*").as("searchResponse");
});
it("Single result when TV Search Only", () => {