diff --git a/client/components/cards/LazySeriesCard.cy.js b/client/components/cards/LazySeriesCard.cy.js index 6398c35868..da9bbbe37b 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 0000000000..a7e6d34825 Binary files /dev/null and b/client/cypress/fixtures/images/book_placeholder.jpg differ