Skip to content

Commit

Permalink
Add fixtures for 'getManifestationViaMaterialByFaust' in reservation-…
Browse files Browse the repository at this point in the history
…details.test
  • Loading branch information
kasperbirch1 committed Oct 10, 2023
1 parent 89f92f9 commit 9db99ff
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
33 changes: 33 additions & 0 deletions cypress/fixtures/reservation-details/fbi-api.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"data": {
"manifestation": {
"languages": {
"main": [
{
"display": "engelsk",
"isoCode": "eng"
}
]
},
"pid": "870970-basis:46985591",
"titles": {
"full": ["Harry Potter"]
},
"abstract": [
"How has Harry Potter aged and what does it still have to teach us? This book offers Potter fans a taste of the best the fandom has to offer. Enthusiasts and scholars explore the culture of the fandom, its evolution, and how it managed to turn a boy wizard into an international icon."
],
"materialTypes": [
{
"specific": "bog"
}
],
"creators": [],
"edition": {
"publicationYear": {
"display": "2019"
}
},
"series": []
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ describe("Reservation details modal test", () => {
}
}
}).as("user");

cy.interceptGraphql({
operationName: "getManifestationViaMaterialByFaust",
fixtureFilePath: "reservation-details/fbi-api.json"
});
});

it("It shows digital reservation details modal", () => {
Expand Down

0 comments on commit 9db99ff

Please sign in to comment.