diff --git a/client/components/cards/LazySeriesCard.cy.js b/client/components/cards/LazySeriesCard.cy.js index 6398c358..da9bbbe3 100644 --- a/client/components/cards/LazySeriesCard.cy.js +++ b/client/components/cards/LazySeriesCard.cy.js @@ -39,7 +39,7 @@ describe("LazySeriesCard", () => { "user/getUserCanUpdate": true, "user/getUserMediaProgress": (id) => null, "libraries/getLibraryProvider": () => "audible.us", - "globals/getLibraryItemCoverSrc": () => "http://localhost:3333//book_placeholder.jpg" + "globals/getLibraryItemCoverSrc": () => "/book_placeholder.jpg" }, state: { libraries: { @@ -52,6 +52,10 @@ describe("LazySeriesCard", () => { } } + before(() => { + cy.intercept("GET", "/book_placeholder.jpg", { fixture: "images/book_placeholder.jpg" }) + }) + it("renders the component", () => { cy.mount(LazySeriesCard, { propsData, stubs, mocks }) diff --git a/client/cypress/fixtures/images/book_placeholder.jpg b/client/cypress/fixtures/images/book_placeholder.jpg new file mode 100644 index 00000000..a7e6d348 Binary files /dev/null and b/client/cypress/fixtures/images/book_placeholder.jpg differ