diff --git a/src/components/builder/i18n.stories.tsx b/src/components/builder/i18n.stories.tsx index 33ebb568..781de925 100644 --- a/src/components/builder/i18n.stories.tsx +++ b/src/components/builder/i18n.stories.tsx @@ -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'; @@ -108,3 +109,26 @@ export const Default: Story = { expect(translationField2).toBeNull(); }, }; + +export const LongStringsWrap: StoryObj> = { + decorators: [withFormik], + args: { + propertyLabels: { + label: 'Label', + }, + }, + parameters: { + formik: { + initialValues: { + label: Array(100).fill('a').join(''), + openForms: { + translations: { + nl: { + label: 'Insgelijks', + }, + }, + }, + }, + }, + }, +};