mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Get book placeholder image from fixture rather than from server
This commit is contained in:
parent
129da51f76
commit
0498d8cb83
@ -39,7 +39,7 @@ describe("LazySeriesCard", () => {
|
|||||||
"user/getUserCanUpdate": true,
|
"user/getUserCanUpdate": true,
|
||||||
"user/getUserMediaProgress": (id) => null,
|
"user/getUserMediaProgress": (id) => null,
|
||||||
"libraries/getLibraryProvider": () => "audible.us",
|
"libraries/getLibraryProvider": () => "audible.us",
|
||||||
"globals/getLibraryItemCoverSrc": () => "http://localhost:3333//book_placeholder.jpg"
|
"globals/getLibraryItemCoverSrc": () => "/book_placeholder.jpg"
|
||||||
},
|
},
|
||||||
state: {
|
state: {
|
||||||
libraries: {
|
libraries: {
|
||||||
@ -52,6 +52,10 @@ describe("LazySeriesCard", () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
before(() => {
|
||||||
|
cy.intercept("GET", "/book_placeholder.jpg", { fixture: "images/book_placeholder.jpg" })
|
||||||
|
})
|
||||||
|
|
||||||
it("renders the component", () => {
|
it("renders the component", () => {
|
||||||
cy.mount(LazySeriesCard, { propsData, stubs, mocks })
|
cy.mount(LazySeriesCard, { propsData, stubs, mocks })
|
||||||
|
|
||||||
|
BIN
client/cypress/fixtures/images/book_placeholder.jpg
Normal file
BIN
client/cypress/fixtures/images/book_placeholder.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 105 KiB |
Loading…
Reference in New Issue
Block a user