Skip to content

Commit

Permalink
Fix cypress (useGetWorkUrlFromPublizonIdentifier)
Browse files Browse the repository at this point in the history
Because I now use `useGetWorkUrlFromPublizonIdentifier` instead of `useComplexSearchWithPaginationWorkAccessQuery` inside `src/apps/reservation-list/modal/reservation-details/reservation-details.tsx`.
  • Loading branch information
kasperbirch1 committed Jan 27, 2025
1 parent 21a2d74 commit 6fe442f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 35 deletions.
Original file line number Diff line number Diff line change
@@ -1,118 +1,131 @@
{
"data": {
"complexSearch": {
"hitcount": 1,
"works": [
{
"workId": "work-of:870970-basis:22677780",
"workId": "work-of:870970-basis:25197887",
"manifestations": {
"all": [
{
"pid": "870970-basis:22677780",
"pid": "710100-katalog:22677780",
"identifiers": [
{
"type": "ISBN",
"value": "9788702319361"
"value": "9788700459946"
},
{
"type": "ISBN",
"value": "87-00-45994-1"
}
],
"access": [
"materialTypes": [
{
"materialTypeSpecific": {
"display": "bog"
}
}
]
},
{
"pid": "870970-basis:25254031",
"identifiers": [
{
"value": "87-02-02780-1"
}
],
"materialTypes": [
{
"__typename": "Ereol",
"url": "https://ereolen.dk/ting/object/870970-basis:51412656"
"materialTypeSpecific": {
"display": "lydbog (cd)"
}
}
]
},
{
"pid": "870970-basis:27639097",
"identifiers": [
{
"type": "ISBN",
"value": "9788702075397"
}
],
"access": [
"materialTypes": [
{
"__typename": "InterLibraryLoan",
"loanIsPossible": true
"materialTypeSpecific": {
"display": "lydbog (cd-mp3)"
}
}
]
},
{
"pid": "870970-basis:29316945",
"identifiers": [
{
"type": "ISBN",
"value": "9788702114331"
}
],
"access": [
"materialTypes": [
{
"__typename": "InterLibraryLoan",
"loanIsPossible": true
"materialTypeSpecific": {
"display": "bog"
}
}
]
},
{
"pid": "870970-basis:51980239",
"identifiers": [
{
"type": "ISBN",
"value": "9788702173239"
}
],
"access": [
"materialTypes": [
{
"__typename": "InterLibraryLoan",
"loanIsPossible": true
"materialTypeSpecific": {
"display": "bog"
}
}
]
},
{
"pid": "870970-basis:52652219",
"identifiers": [
{
"type": "ISBN",
"value": "9788702204681"
}
],
"access": [
"materialTypes": [
{
"__typename": "InterLibraryLoan",
"loanIsPossible": true
"materialTypeSpecific": {
"display": "bog"
}
}
]
},
{
"pid": "870970-basis:54871929",
"identifiers": [
{
"type": "ISBN",
"value": "9788702272444"
}
],
"access": [
"materialTypes": [
{
"__typename": "InterLibraryLoan",
"loanIsPossible": true
"materialTypeSpecific": {
"display": "bog"
}
}
]
},
{
"pid": "870970-basis:61636935",
"identifiers": [
{
"type": "ISBN",
"value": "9788702319361"
}
],
"access": [
"materialTypes": [
{
"__typename": "InterLibraryLoan",
"loanIsPossible": true
"materialTypeSpecific": {
"display": "bog"
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ describe("Reservation details modal", () => {

// Intercept graphql advanced search query.
cy.interceptGraphql({
operationName: "complexSearchWithPaginationWorkAccess",
fixtureFilePath: "reservation-details/advanced-search-fbi-api.json"
operationName: "complexSearchWithPagination",
fixtureFilePath: "reservation-details/complex-search-with-pagination.json"
});
});

Expand Down

0 comments on commit 6fe442f

Please sign in to comment.