Skip to content

Commit

Permalink
🎨 [#4637] Prettified code
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmolen committed Sep 19, 2024
1 parent 0f06226 commit 4d1ee9f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/registry/radio/radio-validation.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand Down
2 changes: 1 addition & 1 deletion src/registry/select/select-validation.spec.tsx
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
9 changes: 6 additions & 3 deletions src/registry/selectboxes/selectboxes-validation.stories.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 4d1ee9f

Please sign in to comment.