Skip to content

Commit

Permalink
Fix tests from merge issues
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaab committed Feb 27, 2024
1 parent d29edcf commit b5f0e9c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from '@storybook/react';

import FormSummary, { TextSummaryProps } from '.';
import FormSummary from '.';

export default {
title: 'patterns/FormSummary',
Expand All @@ -10,21 +10,23 @@ export default {

export const FormSummaryWithLongDescription = {
args: {
prompt: {
pattern: {
_elementId: 'test-id',
type: 'form-summary',
title: 'Form title',
description:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
},
} satisfies TextSummaryProps,
},
} satisfies StoryObj<typeof FormSummary>;

export const FormSummaryWithShortDescription = {
args: {
prompt: {
pattern: {
_elementId: 'test-id',
type: 'form-summary',
title: 'Title 2',
description: 'Short description',
},
} satisfies TextSummaryProps,
},
} satisfies StoryObj<typeof FormSummary>;
10 changes: 5 additions & 5 deletions packages/design/src/config/view/TextInput/TestInput.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { FormProvider, useForm } from 'react-hook-form';
import type { Meta, StoryObj } from '@storybook/react';

import TextInput, { TextInputProps } from '.';
import TextInput from '.';
import { Pattern, TextInputPattern } from '@atj/forms';

export default {
Expand All @@ -26,26 +26,26 @@ export default {

export const Required = {
args: {
prompt: {
pattern: {
_elementId: '',
type: 'input',
inputId: 'test-prompt',
value: '',
label: 'Please enter your first name.',
required: true,
} as Pattern<TextInputPattern>,
} satisfies TextInputProps,
},
} satisfies StoryObj<typeof TextInput>;

export const NotRequired = {
args: {
prompt: {
pattern: {
_elementId: '',
type: 'input',
inputId: 'test-prompt',
value: '',
label: 'Please enter your first name.',
required: false,
} as Pattern<TextInputPattern>,
} satisfies TextInputProps,
},
} satisfies StoryObj<typeof TextInput>;

0 comments on commit b5f0e9c

Please sign in to comment.