From 5aa0e672315f25998be7ac91624ed1715cfaaffd Mon Sep 17 00:00:00 2001 From: robinvandermolen Date: Wed, 9 Oct 2024 16:20:06 +0200 Subject: [PATCH] :art: [#4524] Uniform storybook test assertions --- .../logic/actions/dmn/DMNActionConfig.stories.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openforms/js/components/admin/form_design/logic/actions/dmn/DMNActionConfig.stories.js b/src/openforms/js/components/admin/form_design/logic/actions/dmn/DMNActionConfig.stories.js index 22f4e1c1cd..d32a5b647f 100644 --- a/src/openforms/js/components/admin/form_design/logic/actions/dmn/DMNActionConfig.stories.js +++ b/src/openforms/js/components/admin/form_design/logic/actions/dmn/DMNActionConfig.stories.js @@ -199,7 +199,7 @@ export const Empty = { await step('Selecting plugin, decision definition and version.', async () => { await userEvent.selectOptions(pluginDropdown, 'Camunda 7'); - await expect(pluginDropdown.value).toBe('camunda7'); + await expect(pluginDropdown).toHaveValue('camunda7'); await waitFor(async () => { const renderedOptions = within(decisionDefDropdown).getAllByRole('option'); @@ -209,7 +209,7 @@ export const Empty = { await userEvent.selectOptions(decisionDefDropdown, 'Approve payment'); - await expect(decisionDefDropdown.value).toBe('approve-payment'); + await expect(decisionDefDropdown).toHaveValue('approve-payment'); await waitFor(async () => { const renderedOptions = within(decisionDefVersionDropdown).getAllByRole('option'); @@ -219,7 +219,7 @@ export const Empty = { await userEvent.selectOptions(decisionDefVersionDropdown, 'v2 (version tag: n/a)'); - await expect(decisionDefVersionDropdown.value).toBe('2'); + await expect(decisionDefVersionDropdown).toHaveValue('2'); }); await step('Adding input mappings', async () => { @@ -380,7 +380,7 @@ export const OnePluginAvailable = { const pluginDropdown = canvas.getByLabelText('Plugin'); - await expect(pluginDropdown.value).toBe('camunda7'); + await expect(pluginDropdown).toHaveValue('camunda7'); }, };