diff --git a/src/Ombi/ClientApp/src/app/discover/components/card/discover-card.component.html b/src/Ombi/ClientApp/src/app/discover/components/card/discover-card.component.html index 703c01652..61ffb0d3a 100644 --- a/src/Ombi/ClientApp/src/app/discover/components/card/discover-card.component.html +++ b/src/Ombi/ClientApp/src/app/discover/components/card/discover-card.component.html @@ -21,7 +21,7 @@
- diff --git a/tests/cypress/integration/page-objects/discover/discover.page.ts b/tests/cypress/integration/page-objects/discover/discover.page.ts index 7f05eaae2..02e80c5d1 100644 --- a/tests/cypress/integration/page-objects/discover/discover.page.ts +++ b/tests/cypress/integration/page-objects/discover/discover.page.ts @@ -33,7 +33,7 @@ class DiscoverCard { } get requestButton(): Cypress.Chainable { - return cy.get(`button > [data-test=requestButton${this.id}${this.movie ? '1' : '0'}]`); + return cy.get(`#requestButton${this.id}${this.movie ? '1' : '0'}`); } verifyTitle(expected: string): Cypress.Chainable { diff --git a/tests/cypress/support/commands.ts b/tests/cypress/support/commands.ts index b0fab757c..db28e01d0 100644 --- a/tests/cypress/support/commands.ts +++ b/tests/cypress/support/commands.ts @@ -105,17 +105,17 @@ Cypress.Commands.add("getByData", (selector) => { fireEvent(elements, 'mouseover'); - + function fireEvent(element, event) { if (element.fireEvent) { element.fireEvent('on' + event); } else { var evObj = document.createEvent('Events'); - + evObj.initEvent(event, true, false); - + element.dispatchEvent(evObj); } } - + }); \ No newline at end of file diff --git a/tests/cypress/tests/discover/discover-cards.spec.ts b/tests/cypress/tests/discover/discover-cards.spec.ts index 3ac556e46..813be5673 100644 --- a/tests/cypress/tests/discover/discover-cards.spec.ts +++ b/tests/cypress/tests/discover/discover-cards.spec.ts @@ -65,7 +65,7 @@ describe("Discover Cards Tests", () => { cy.wait("@tvPopular"); }); - it.skip("Not requested movie allows us to request", () => { + it("Not requested movie allows us to request", () => { window.localStorage.setItem("DiscoverOptions2", "2"); cy.intercept("GET", "**/search/Movie/Popular/**", (req) => { req.reply((res) => { @@ -106,7 +106,7 @@ describe("Discover Cards Tests", () => { }); }); - it.skip("Available movie does not allow us to request", () => { + it("Available movie does not allow us to request", () => { window.localStorage.setItem("DiscoverOptions2", "2"); cy.intercept("GET", "**/search/Movie/Popular/**", (req) => { req.reply((res) => { @@ -138,7 +138,7 @@ describe("Discover Cards Tests", () => { }); }); - it.skip("Requested movie does not allow us to request", () => { + it("Requested movie does not allow us to request", () => { window.localStorage.setItem("DiscoverOptions2", "2"); cy.intercept("GET", "**/search/Movie/Popular/**", (req) => { req.reply((res) => { @@ -170,7 +170,7 @@ describe("Discover Cards Tests", () => { card.statusClass.should('have.class','requested'); }); - it.skip("Approved movie does not allow us to request", () => { + it("Approved movie does not allow us to request", () => { window.localStorage.setItem("DiscoverOptions2", "2"); cy.intercept("GET", "**/search/Movie/Popular/**", (req) => { req.reply((res) => {