Skip to content

Commit

Permalink
Updating all cypress fixtures to use new materialTypeSpecific fields
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceo committed Jan 13, 2024
1 parent 5a8baa6 commit bbeac69
Show file tree
Hide file tree
Showing 22 changed files with 3,942 additions and 1,400 deletions.
84 changes: 63 additions & 21 deletions cypress/fixtures/advanced-search/fbi-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
"display": "faglitteratur",
"code": "NONFICTION"
},
"materialTypes": [{ "specific": "e-bog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "e-bog" } }
],
"creators": [
{ "display": "Angela Levin", "__typename": "Person" }
],
Expand Down Expand Up @@ -80,7 +82,9 @@
"display": "faglitteratur",
"code": "NONFICTION"
},
"materialTypes": [{ "specific": "bog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "bog" } }
],
"creators": [
{ "display": "Angela Levin", "__typename": "Person" }
],
Expand Down Expand Up @@ -118,7 +122,9 @@
"display": "faglitteratur",
"code": "NONFICTION"
},
"materialTypes": [{ "specific": "lydbog (online)" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "lydbog (online)" } }
],
"creators": [
{ "display": "Angela Levin", "__typename": "Person" }
],
Expand Down Expand Up @@ -167,7 +173,9 @@
"display": "faglitteratur",
"code": "NONFICTION"
},
"materialTypes": [{ "specific": "lydbog (cd-mp3)" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "lydbog (cd-mp3)" } }
],
"creators": [
{ "display": "Angela Levin", "__typename": "Person" }
],
Expand Down Expand Up @@ -209,7 +217,9 @@
"display": "faglitteratur",
"code": "NONFICTION"
},
"materialTypes": [{ "specific": "lydbog (cd-mp3)" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "lydbog (cd-mp3)" } }
],
"creators": [
{ "display": "Angela Levin", "__typename": "Person" }
],
Expand Down Expand Up @@ -247,7 +257,9 @@
"display": "faglitteratur",
"code": "NONFICTION"
},
"materialTypes": [{ "specific": "bog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "bog" } }
],
"creators": [
{ "display": "Angela Levin", "__typename": "Person" }
],
Expand Down Expand Up @@ -383,7 +395,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "bog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "bog" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" }
],
Expand Down Expand Up @@ -430,7 +444,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "bog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "bog" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" }
],
Expand Down Expand Up @@ -468,7 +484,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "lydbog (bånd)" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "lydbog (bånd)" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" },
{ "display": "Mikkel Schou", "__typename": "Person" }
Expand Down Expand Up @@ -507,7 +525,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "diskette" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "diskette" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" }
],
Expand Down Expand Up @@ -548,7 +568,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "bog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "bog" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" }
],
Expand Down Expand Up @@ -586,7 +608,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "punktskrift" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "punktskrift" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" }
],
Expand Down Expand Up @@ -630,7 +654,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "bog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "bog" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" }
],
Expand Down Expand Up @@ -671,7 +697,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "lydbog (cd)" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "lydbog (cd)" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" },
{
Expand Down Expand Up @@ -713,7 +741,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "bog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "bog" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" }
],
Expand Down Expand Up @@ -754,7 +784,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "lydbog (cd-mp3)" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "lydbog (cd-mp3)" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" }
],
Expand Down Expand Up @@ -792,7 +824,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "bog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "bog" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" }
],
Expand Down Expand Up @@ -830,7 +864,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "bog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "bog" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" }
],
Expand Down Expand Up @@ -868,7 +904,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "bog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "bog" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" }
],
Expand Down Expand Up @@ -907,7 +945,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "bog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "bog" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" }
],
Expand Down Expand Up @@ -954,7 +994,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "bog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "bog" } }
],
"creators": [
{ "display": "Joanne K. Rowling", "__typename": "Person" }
],
Expand Down
36 changes: 25 additions & 11 deletions cypress/fixtures/favorites-list/work.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "billedbog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "billedbog" } }
],
"creators": [
{ "display": "Jakob Martin Strid", "__typename": "Person" }
],
Expand Down Expand Up @@ -62,7 +64,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "lydbog (online)" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "lydbog (online)" } }
],
"creators": [
{ "display": "Jakob Martin Strid", "__typename": "Person" }
],
Expand Down Expand Up @@ -112,7 +116,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "lydbog (cd)" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "lydbog (cd)" } }
],
"creators": [
{ "display": "Jakob Martin Strid", "__typename": "Person" }
],
Expand Down Expand Up @@ -148,7 +154,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "billedbog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "billedbog" } }
],
"creators": [
{ "display": "Jakob Martin Strid", "__typename": "Person" }
],
Expand Down Expand Up @@ -184,7 +192,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "billedbog (online)" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "billedbog (online)" } }
],
"creators": [
{ "display": "Jakob Martin Strid", "__typename": "Person" }
],
Expand Down Expand Up @@ -235,7 +245,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "billedbog (online)" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "billedbog (online)" } }
],
"creators": [
{ "display": "Jakob Martin Strid", "__typename": "Person" }
],
Expand Down Expand Up @@ -285,7 +297,9 @@
"display": "skønlitteratur",
"code": "FICTION"
},
"materialTypes": [{ "specific": "billedbog" }],
"materialTypes": [
{ "materialTypeSpecific": { "display": "billedbog" } }
],
"creators": [
{ "display": "Jakob Martin Strid", "__typename": "Person" }
],
Expand All @@ -310,10 +324,10 @@
}
},
"materialTypes": [
{ "specific": "lydbog (cd)" },
{ "specific": "billedbog" },
{ "specific": "billedbog (online)" },
{ "specific": "lydbog (online)" }
{ "materialTypeSpecific": { "display": "lydbog (cd)" } },
{ "materialTypeSpecific": { "display": "billedbog" } },
{ "materialTypeSpecific": { "display": "billedbog (online)" } },
{ "materialTypeSpecific": { "display": "lydbog (online)" } }
],
"mainLanguages": [{ "display": "dansk", "isoCode": "dan" }],
"subjects": {
Expand Down
Loading

0 comments on commit bbeac69

Please sign in to comment.