Skip to content

Commit 5a1bb2b

Browse files
committed
💚 [#234] Attempt to fix storybook tests
1 parent 856cecc commit 5a1bb2b

File tree

3 files changed

+224
-1
lines changed

3 files changed

+224
-1
lines changed

frontend/src/fixtures/zaak.ts

+210
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,27 @@ const FIXTURE_ZAAK: Zaak = {
5555
vertrouwelijkheidaanduiding: "geheim",
5656
uiterlijkeEinddatumAfdoening: null,
5757
verantwoordelijkeOrganisatie: "104567387",
58+
_expand: {
59+
zaaktype: {
60+
url: "http://localhost:8000/catalogi/api/v1/zaaktypen/64c98539-076e-4fbf-8fec-fa86c560fb24",
61+
selectielijst_procestype: {
62+
nummer: 1,
63+
url: "https://selectielijst.nl/api/v1/procestypen/7ff2b005-4d84-47fe-983a-732bfa958ff5",
64+
},
65+
omschrijving: "Aangifte behandelen",
66+
identificatie: "ZAAKTYPE-01",
67+
},
68+
resultaat: {
69+
resultaattype:
70+
"http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
71+
_expand: {
72+
resultaattype: {
73+
url: "http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
74+
archiefactietermijn: "P1D",
75+
},
76+
},
77+
},
78+
},
5879
} as Zaak;
5980

6081
const FIXTURE_ZAKEN: Zaak[] = [
@@ -112,6 +133,27 @@ const FIXTURE_ZAKEN: Zaak[] = [
112133
vertrouwelijkheidaanduiding: "openbaar",
113134
uiterlijkeEinddatumAfdoening: null,
114135
verantwoordelijkeOrganisatie: "104567387",
136+
_expand: {
137+
zaaktype: {
138+
url: "http://localhost:8000/catalogi/api/v1/zaaktypen/64c98539-076e-4fbf-8fec-fa86c560fb24",
139+
selectielijst_procestype: {
140+
nummer: 1,
141+
url: "https://selectielijst.nl/api/v1/procestypen/7ff2b005-4d84-47fe-983a-732bfa958ff5",
142+
},
143+
omschrijving: "Aangifte behandelen",
144+
identificatie: "ZAAKTYPE-01",
145+
},
146+
resultaat: {
147+
resultaattype:
148+
"http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
149+
_expand: {
150+
resultaattype: {
151+
url: "http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
152+
archiefactietermijn: "P1D",
153+
},
154+
},
155+
},
156+
},
115157
},
116158
{
117159
uuid: "78b6dd10-261b-4a40-99e2-1eea3e38bc99",
@@ -166,6 +208,27 @@ const FIXTURE_ZAKEN: Zaak[] = [
166208
vertrouwelijkheidaanduiding: "geheim",
167209
uiterlijkeEinddatumAfdoening: null,
168210
verantwoordelijkeOrganisatie: "104567387",
211+
_expand: {
212+
zaaktype: {
213+
url: "http://localhost:8000/catalogi/api/v1/zaaktypen/927eb71c-d99b-4c5d-b3e2-94a07ce85923",
214+
selectielijst_procestype: {
215+
nummer: 1,
216+
url: "https://selectielijst.nl/api/v1/procestypen/7ff2b005-4d84-47fe-983a-732bfa958ff5",
217+
},
218+
omschrijving: "Aangifte behandelen",
219+
identificatie: "ZAAKTYPE-02",
220+
},
221+
resultaat: {
222+
resultaattype:
223+
"http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
224+
_expand: {
225+
resultaattype: {
226+
url: "http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
227+
archiefactietermijn: "P1D",
228+
},
229+
},
230+
},
231+
},
169232
},
170233
{
171234
uuid: "64bec25d-5752-48a9-b2f9-6c27085a469f",
@@ -220,6 +283,27 @@ const FIXTURE_ZAKEN: Zaak[] = [
220283
vertrouwelijkheidaanduiding: "openbaar",
221284
uiterlijkeEinddatumAfdoening: null,
222285
verantwoordelijkeOrganisatie: "104567387",
286+
_expand: {
287+
zaaktype: {
288+
url: "http://localhost:8000/catalogi/api/v1/zaaktypen/927eb71c-d99b-4c5d-b3e2-94a07ce85923",
289+
selectielijst_procestype: {
290+
nummer: 1,
291+
url: "https://selectielijst.nl/api/v1/procestypen/7ff2b005-4d84-47fe-983a-732bfa958ff5",
292+
},
293+
omschrijving: "Aangifte behandelen",
294+
identificatie: "ZAAKTYPE-02",
295+
},
296+
resultaat: {
297+
resultaattype:
298+
"http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
299+
_expand: {
300+
resultaattype: {
301+
url: "http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
302+
archiefactietermijn: "P1D",
303+
},
304+
},
305+
},
306+
},
223307
},
224308
{
225309
uuid: "409a291a-9cf0-4c40-9f31-25e9452a8e79",
@@ -272,6 +356,27 @@ const FIXTURE_ZAKEN: Zaak[] = [
272356
vertrouwelijkheidaanduiding: "openbaar",
273357
uiterlijkeEinddatumAfdoening: null,
274358
verantwoordelijkeOrganisatie: "104567387",
359+
_expand: {
360+
zaaktype: {
361+
url: "http://localhost:8000/catalogi/api/v1/zaaktypen/684b9c68-a36f-4c72-b044-fa9cdcb17ec9",
362+
selectielijst_procestype: {
363+
nummer: 1,
364+
url: "https://selectielijst.nl/api/v1/procestypen/7ff2b005-4d84-47fe-983a-732bfa958ff5",
365+
},
366+
omschrijving: "Aangifte behandelen",
367+
identificatie: "ZAAKTYPE-03",
368+
},
369+
resultaat: {
370+
resultaattype:
371+
"http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
372+
_expand: {
373+
resultaattype: {
374+
url: "http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
375+
archiefactietermijn: "P1D",
376+
},
377+
},
378+
},
379+
},
275380
},
276381
{
277382
uuid: "1188687c-392b-439e-9d5f-4d17bac822bf",
@@ -326,6 +431,27 @@ const FIXTURE_ZAKEN: Zaak[] = [
326431
vertrouwelijkheidaanduiding: "geheim",
327432
uiterlijkeEinddatumAfdoening: null,
328433
verantwoordelijkeOrganisatie: "104567387",
434+
_expand: {
435+
zaaktype: {
436+
url: "http://localhost:8000/catalogi/api/v1/zaaktypen/e4f2a6b0-9377-400a-b0ce-ed66c0a315da",
437+
selectielijst_procestype: {
438+
nummer: 1,
439+
url: "https://selectielijst.nl/api/v1/procestypen/7ff2b005-4d84-47fe-983a-732bfa958ff5",
440+
},
441+
omschrijving: "Aangifte behandelen",
442+
identificatie: "ZAAKTYPE-04",
443+
},
444+
resultaat: {
445+
resultaattype:
446+
"http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
447+
_expand: {
448+
resultaattype: {
449+
url: "http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
450+
archiefactietermijn: "P1D",
451+
},
452+
},
453+
},
454+
},
329455
},
330456
{
331457
uuid: "5d816422-7f1c-42b4-9a4c-715d2e07aca3",
@@ -380,6 +506,27 @@ const FIXTURE_ZAKEN: Zaak[] = [
380506
vertrouwelijkheidaanduiding: "openbaar",
381507
uiterlijkeEinddatumAfdoening: null,
382508
verantwoordelijkeOrganisatie: "104567387",
509+
_expand: {
510+
zaaktype: {
511+
url: "http://localhost:8000/catalogi/api/v1/zaaktypen/e4f2a6b0-9377-400a-b0ce-ed66c0a315da",
512+
selectielijst_procestype: {
513+
nummer: 1,
514+
url: "https://selectielijst.nl/api/v1/procestypen/7ff2b005-4d84-47fe-983a-732bfa958ff5",
515+
},
516+
omschrijving: "Aangifte behandelen",
517+
identificatie: "ZAAKTYPE-04",
518+
},
519+
resultaat: {
520+
resultaattype:
521+
"http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
522+
_expand: {
523+
resultaattype: {
524+
url: "http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
525+
archiefactietermijn: "P1D",
526+
},
527+
},
528+
},
529+
},
383530
},
384531
{
385532
uuid: "2e803c71-49c4-4dc0-bfd1-42f2a3da99f9",
@@ -434,6 +581,27 @@ const FIXTURE_ZAKEN: Zaak[] = [
434581
vertrouwelijkheidaanduiding: "geheim",
435582
uiterlijkeEinddatumAfdoening: null,
436583
verantwoordelijkeOrganisatie: "104567387",
584+
_expand: {
585+
zaaktype: {
586+
url: "http://localhost:8000/catalogi/api/v1/zaaktypen/3206d651-d0f2-4690-933d-cc690444184f",
587+
selectielijst_procestype: {
588+
nummer: 1,
589+
url: "https://selectielijst.nl/api/v1/procestypen/7ff2b005-4d84-47fe-983a-732bfa958ff5",
590+
},
591+
omschrijving: "Aangifte behandelen",
592+
identificatie: "ZAAKTYPE-05",
593+
},
594+
resultaat: {
595+
resultaattype:
596+
"http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
597+
_expand: {
598+
resultaattype: {
599+
url: "http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
600+
archiefactietermijn: "P1D",
601+
},
602+
},
603+
},
604+
},
437605
},
438606
{
439607
uuid: "bd6cdd85-d578-47fa-9ddb-846354088a47",
@@ -488,6 +656,27 @@ const FIXTURE_ZAKEN: Zaak[] = [
488656
vertrouwelijkheidaanduiding: "openbaar",
489657
uiterlijkeEinddatumAfdoening: null,
490658
verantwoordelijkeOrganisatie: "104567387",
659+
_expand: {
660+
zaaktype: {
661+
url: "http://localhost:8000/catalogi/api/v1/zaaktypen/3206d651-d0f2-4690-933d-cc690444184f",
662+
selectielijst_procestype: {
663+
nummer: 1,
664+
url: "https://selectielijst.nl/api/v1/procestypen/7ff2b005-4d84-47fe-983a-732bfa958ff5",
665+
},
666+
omschrijving: "Aangifte behandelen",
667+
identificatie: "ZAAKTYPE-05",
668+
},
669+
resultaat: {
670+
resultaattype:
671+
"http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
672+
_expand: {
673+
resultaattype: {
674+
url: "http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
675+
archiefactietermijn: "P1D",
676+
},
677+
},
678+
},
679+
},
491680
},
492681
{
493682
uuid: "2ca5f28c-397b-4cc6-ac76-4ef6cab19f59",
@@ -540,6 +729,27 @@ const FIXTURE_ZAKEN: Zaak[] = [
540729
vertrouwelijkheidaanduiding: "openbaar",
541730
uiterlijkeEinddatumAfdoening: null,
542731
verantwoordelijkeOrganisatie: "104567387",
732+
_expand: {
733+
zaaktype: {
734+
url: "http://localhost:8000/catalogi/api/v1/zaaktypen/773b6b77-486a-4b6c-be3e-cf13f4387cf3",
735+
selectielijst_procestype: {
736+
nummer: 1,
737+
url: "https://selectielijst.nl/api/v1/procestypen/7ff2b005-4d84-47fe-983a-732bfa958ff5",
738+
},
739+
omschrijving: "Aangifte behandelen",
740+
identificatie: "ZAAKTYPE-05",
741+
},
742+
resultaat: {
743+
resultaattype:
744+
"http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
745+
_expand: {
746+
resultaattype: {
747+
url: "http://localhost:8000/catalogi/api/v1/resultaattypen/111-111-111",
748+
archiefactietermijn: "P1D",
749+
},
750+
},
751+
},
752+
},
543753
},
544754
] as Zaak[];
545755

frontend/src/pages/destructionlist/detail/DestructionListDetail.stories.tsx

+13
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@ const meta: Meta<typeof DestructionListDetailPage> = {
4848
},
4949
],
5050
},
51+
{
52+
url: "http://localhost:8000/api/v1/_zaaktypen-choices/?review=1",
53+
method: "GET",
54+
status: 200,
55+
response: [
56+
{
57+
label: "Melding klein kansspel",
58+
value:
59+
"https://test.openzaak.nl/catalogi/api/v1/zaaktypen/e95d9bdf-588d-4965-a469-378d9e0ca91e",
60+
extra: "MKK",
61+
},
62+
],
63+
},
5164
{
5265
url: "http://localhost:8000/api/v1/destruction-lists/00000000-0000-0000-0000-000000000000/make_final",
5366
method: "POST",

frontend/src/pages/destructionlist/review/DestructionListReview.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const meta: Meta<typeof DestructionListReviewPage> = {
2020
parameters: {
2121
mockData: [
2222
{
23-
url: "http://localhost:8000/api/v1/_zaaktypen-choices?",
23+
url: "http://localhost:8000/api/v1/_zaaktypen-choices/?destructionList=00000000-0000-0000-0000-000000000000",
2424
method: "GET",
2525
status: 200,
2626
response: [

0 commit comments

Comments
 (0)