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/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 })
|
||||
|
||||
|
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