Skip to content

Commit

Permalink
✅ [open-formulieren/open-forms#4636] Add story for text wrapping in t…
Browse files Browse the repository at this point in the history
…ranslations table
  • Loading branch information
sergei-maertens committed Oct 10, 2024
1 parent 22a5ab3 commit 4d08cd7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/components/builder/i18n.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {expect, userEvent, waitFor, within} from '@storybook/test';
import {Formik} from 'formik';

import {TextField} from '@/components/formio';
import {withFormik} from '@/sb-decorators';

import {ComponentTranslations} from './i18n';

Expand Down Expand Up @@ -108,3 +109,26 @@ export const Default: Story = {
expect(translationField2).toBeNull();
},
};

export const LongStringsWrap: StoryObj<typeof ComponentTranslations<DummyComponent>> = {
decorators: [withFormik],
args: {
propertyLabels: {
label: 'Label',
},
},
parameters: {
formik: {
initialValues: {
label: Array(100).fill('a').join(''),
openForms: {
translations: {
nl: {
label: 'Insgelijks',
},
},
},
},
},
},
};

0 comments on commit 4d08cd7

Please sign in to comment.