@@ -6,9 +6,7 @@ import { ReactRouterDecorator } from "../../../../.storybook/decorators";
6
6
import {
7
7
assertColumnSelection ,
8
8
clickButton ,
9
- clickElement ,
10
9
fillButtonConfirmationForm ,
11
- fillCheckboxConfirmationForm ,
12
10
fillForm ,
13
11
} from "../../../../.storybook/playFunctions" ;
14
12
import { auditLogFactory } from "../../../fixtures/auditLog" ;
@@ -25,7 +23,7 @@ import {
25
23
FIXTURE_SELECTIELIJSTKLASSE_CHOICES_MAP ,
26
24
selectieLijstKlasseFactory ,
27
25
} from "../../../fixtures/selectieLijstKlasseChoices" ;
28
- import { usersFactory } from "../../../fixtures/user" ;
26
+ import { userFactory , usersFactory } from "../../../fixtures/user" ;
29
27
import {
30
28
clearZaakSelection ,
31
29
getZaakSelection ,
@@ -83,6 +81,12 @@ const meta: Meta<typeof DestructionListDetailPage> = {
83
81
status : 200 ,
84
82
response : FIXTURE_SELECTIELIJSTKLASSE_CHOICES ,
85
83
} ,
84
+ {
85
+ url : "http://localhost:8000/api/v1/whoami/?" ,
86
+ method : "GET" ,
87
+ status : 200 ,
88
+ response : userFactory ( ) ,
89
+ } ,
86
90
] ,
87
91
} ,
88
92
} ;
@@ -240,10 +244,11 @@ export const ProcessReview: Story = {
240
244
} ,
241
245
} ,
242
246
play : async ( context ) => {
243
- await fillCheckboxConfirmationForm ( {
247
+ await fillButtonConfirmationForm ( {
244
248
...context ,
245
249
parameters : {
246
250
elementIndex : 0 ,
251
+ name : "Muteren" ,
247
252
formValues : {
248
253
"Aanpassen van selectielijstklasse" : true ,
249
254
Selectielijstklasse : selectieLijstKlasseFactory ( ) [ 0 ] . label ,
@@ -252,10 +257,11 @@ export const ProcessReview: Story = {
252
257
} ,
253
258
} ) ;
254
259
255
- await fillCheckboxConfirmationForm ( {
260
+ await fillButtonConfirmationForm ( {
256
261
...context ,
257
262
parameters : {
258
263
elementIndex : 1 ,
264
+ name : "Muteren" ,
259
265
formValues : {
260
266
"Aanpassen van selectielijstklasse" : true ,
261
267
Selectielijstklasse : selectieLijstKlasseFactory ( ) [ 1 ] . label ,
@@ -264,10 +270,11 @@ export const ProcessReview: Story = {
264
270
} ,
265
271
} ) ;
266
272
267
- await fillCheckboxConfirmationForm ( {
273
+ await fillButtonConfirmationForm ( {
268
274
...context ,
269
275
parameters : {
270
276
elementIndex : 2 ,
277
+ name : "Muteren" ,
271
278
formValues : {
272
279
"Aanpassen van selectielijstklasse" : true ,
273
280
Selectielijstklasse : selectieLijstKlasseFactory ( ) [ 2 ] . label ,
@@ -328,12 +335,10 @@ export const CheckSelectielijstklasseSelection: Story = {
328
335
} ,
329
336
} ,
330
337
play : async ( context ) => {
331
- await clickElement ( {
338
+ await clickButton ( {
332
339
...context ,
333
340
parameters : {
334
- elementIndex : 0 ,
335
- role : "checkbox" ,
336
- checked : true ,
341
+ name : "Muteren" ,
337
342
} ,
338
343
} ) ;
339
344
0 commit comments