@@ -152,21 +152,37 @@ export const SelectCaseTypeAndDocumentType = {
152
152
} ,
153
153
} ,
154
154
155
- play : async ( { canvasElement} ) => {
155
+ play : async ( { canvasElement, step } ) => {
156
156
const canvas = within ( canvasElement ) ;
157
157
158
- const catalogueSelect = canvas . getByLabelText ( 'Catalogus' ) ;
159
- await rsSelect ( catalogueSelect , 'Catalogus 1' ) ;
158
+ await step ( 'Select catalogue' , async ( ) => {
159
+ const catalogueSelect = canvas . getByLabelText ( 'Catalogus' ) ;
160
+ await rsSelect ( catalogueSelect , 'Catalogus 1' ) ;
161
+ } ) ;
162
+
163
+ await step ( 'Select case type' , async ( ) => {
164
+ const caseTypeSelect = canvas . getByLabelText ( 'Zaaktype' , {
165
+ selector : '#id_caseTypeIdentification' ,
166
+ } ) ;
167
+ await rsSelect ( caseTypeSelect , 'Request passport' ) ;
168
+ } ) ;
169
+
170
+ await step ( 'Select document type' , async ( ) => {
171
+ const documentTypeSelect = canvas . getByLabelText ( 'Documenttype' , {
172
+ selector : '#id_documentTypeDescription' ,
173
+ } ) ;
174
+ await rsSelect ( documentTypeSelect , 'Attachment' ) ;
175
+ } ) ;
160
176
161
- const caseTypeSelect = canvas . getByLabelText ( 'Zaaktype' , {
162
- selector : '#id_caseTypeIdentification' ,
177
+ await step ( 'Select employee role type' , async ( ) => {
178
+ const roleTypeSelect = canvas . getByLabelText ( 'Medewerkerroltype' ) ;
179
+ await rsSelect ( roleTypeSelect , 'Baliemedewerker' ) ;
163
180
} ) ;
164
- await rsSelect ( caseTypeSelect , 'Request passport' ) ;
165
181
166
- const documentTypeSelect = canvas . getByLabelText ( 'Documenttype' , {
167
- selector : '#id_documentTypeDescription' ,
182
+ await step ( 'Select product' , async ( ) => {
183
+ const productSelect = canvas . getByLabelText ( 'Product' ) ;
184
+ await rsSelect ( productSelect , 'Product 1423' ) ;
168
185
} ) ;
169
- await rsSelect ( documentTypeSelect , 'Attachment' ) ;
170
186
} ,
171
187
} ;
172
188
0 commit comments