Skip to content

Commit

Permalink
🎨 [#4524] Uniform storybook test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmolen committed Oct 9, 2024
1 parent 17d8671 commit 5aa0e67
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
Expand All @@ -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 () => {
Expand Down Expand Up @@ -380,7 +380,7 @@ export const OnePluginAvailable = {

const pluginDropdown = canvas.getByLabelText('Plugin');

await expect(pluginDropdown.value).toBe('camunda7');
await expect(pluginDropdown).toHaveValue('camunda7');
},
};

Expand Down

0 comments on commit 5aa0e67

Please sign in to comment.