From 4d1ee9fd178af3eda5b122d653375cfaef37ebaa Mon Sep 17 00:00:00 2001 From: robinvandermolen Date: Thu, 19 Sep 2024 14:25:17 +0200 Subject: [PATCH] :art: [#4637] Prettified code --- src/registry/radio/radio-validation.stories.ts | 4 ++-- src/registry/select/select-validation.spec.tsx | 2 +- .../selectboxes/selectboxes-validation.stories.ts | 9 ++++++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/registry/radio/radio-validation.stories.ts b/src/registry/radio/radio-validation.stories.ts index 89ab87e8..2d15cfe2 100644 --- a/src/registry/radio/radio-validation.stories.ts +++ b/src/registry/radio/radio-validation.stories.ts @@ -59,11 +59,11 @@ export const ManualMinimumOneValue: Story = { }; export const TranslationsArentRequired: Story = { - name: 'Translations: translations aren\'t required fields', + name: "Translations: translations aren't required fields", play: async ({canvasElement, step}) => { const canvas = within(canvasElement); - await step('Translations aren\'t required fields', async () => { + await step("Translations aren't required fields", async () => { await userEvent.click(canvas.getByRole('tab', {name: 'Translations'})); const editForm = within(canvas.getByTestId('componentEditForm')); diff --git a/src/registry/select/select-validation.spec.tsx b/src/registry/select/select-validation.spec.tsx index 54a5619e..2068cd30 100644 --- a/src/registry/select/select-validation.spec.tsx +++ b/src/registry/select/select-validation.spec.tsx @@ -1,9 +1,9 @@ import {SelectComponentSchema} from '@open-formulieren/types'; +import {expect, within} from '@storybook/test'; import userEvent from '@testing-library/user-event'; import ComponentEditForm from '@/components/ComponentEditForm'; import {contextRender, screen} from '@/tests/test-utils'; -import {expect, within} from '@storybook/test'; beforeAll(() => { jest.useFakeTimers(); diff --git a/src/registry/selectboxes/selectboxes-validation.stories.ts b/src/registry/selectboxes/selectboxes-validation.stories.ts index a8cd3443..31e9fdda 100644 --- a/src/registry/selectboxes/selectboxes-validation.stories.ts +++ b/src/registry/selectboxes/selectboxes-validation.stories.ts @@ -1,8 +1,11 @@ -import {Meta, StoryObj} from '@storybook/react'; -import {expect, fn, userEvent, waitFor, within} from '@storybook/test'; +import { Meta, StoryObj } from '@storybook/react'; +import { expect, fn, userEvent, waitFor, within } from '@storybook/test'; + + import ComponentEditForm from '@/components/ComponentEditForm'; -import {BuilderContextDecorator} from '@/sb-decorators'; +import { BuilderContextDecorator } from '@/sb-decorators'; + export default { title: 'Builder components/SelectBoxes/Validations',