Skip to content

Commit 557ed4c

Browse files
✅ [#4606] Extend SB tests
1 parent 178ebd0 commit 557ed4c

File tree

1 file changed

+25
-9
lines changed

1 file changed

+25
-9
lines changed

src/openforms/js/components/admin/form_design/registrations/zgw/ZGWOptionsFormFields.stories.js

+25-9
Original file line numberDiff line numberDiff line change
@@ -152,21 +152,37 @@ export const SelectCaseTypeAndDocumentType = {
152152
},
153153
},
154154

155-
play: async ({canvasElement}) => {
155+
play: async ({canvasElement, step}) => {
156156
const canvas = within(canvasElement);
157157

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+
});
160176

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');
163180
});
164-
await rsSelect(caseTypeSelect, 'Request passport');
165181

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');
168185
});
169-
await rsSelect(documentTypeSelect, 'Attachment');
170186
},
171187
};
172188

0 commit comments

Comments
 (0)