From b3a2fbdb0d4ad6f56721ccd4eac91c42275c242c Mon Sep 17 00:00:00 2001 From: tidusjar Date: Mon, 29 Mar 2021 08:56:58 +0100 Subject: [PATCH] Fixed last test --- .../tests/discover/discover-cards-requests.spec.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/cypress/tests/discover/discover-cards-requests.spec.ts b/tests/cypress/tests/discover/discover-cards-requests.spec.ts index 1d5f60aa6..6d22f6bde 100644 --- a/tests/cypress/tests/discover/discover-cards-requests.spec.ts +++ b/tests/cypress/tests/discover/discover-cards-requests.spec.ts @@ -197,7 +197,7 @@ describe("Discover Cards Requests Tests", () => { }); }); - it("Available TV does not allow us to request", () => { + it.only("Available TV does not allow us to request", () => { cy.intercept("GET", "**/search/Tv/popular/**", (req) => { req.reply((res) => { const body = res.body; @@ -208,6 +208,13 @@ describe("Discover Cards Requests Tests", () => { res.send(body); }); }).as("cardsResponse"); + cy.intercept("GET", "**/search/Tv/moviedb/**", (req) => { + req.reply((res2) => { + const body = res2.body; + body.fullyAvailable = true; + res2.send(body); + }); + }).as("movieDbResponse"); window.localStorage.setItem("DiscoverOptions2", "3"); Page.visit();