diff --git a/src/blocks/Form/__stories__/Form.stories.tsx b/src/blocks/Form/__stories__/Form.stories.tsx index cad4e4e2f..a0c77e16e 100644 --- a/src/blocks/Form/__stories__/Form.stories.tsx +++ b/src/blocks/Form/__stories__/Form.stories.tsx @@ -5,23 +5,11 @@ import {v4 as uuidv4} from 'uuid'; import {yfmTransform} from '../../../../.storybook/utils'; import {PageConstructor} from '../../../containers/PageConstructor'; -import { - ContentItemProps, - FormBlockDirection, - FormBlockModel, - isHubspotDataForm, -} from '../../../models'; +import {FormBlockDirection, FormBlockModel, isHubspotDataForm} from '../../../models'; import FormBlock from '../Form'; import data from './data.json'; -const transformedContentList = data.list.map((item) => { - return { - ...item, - text: item?.text && yfmTransform(item.text), - }; -}) as ContentItemProps[]; - export default { title: 'Blocks/Form', component: FormBlock, @@ -58,20 +46,6 @@ const DefaultTemplate: StoryFn = (args) => ( /> ); -const WithContentListTemplate: StoryFn = (args) => ( - -); - const ContentDirectionTemplate: StoryFn = (args) => ( { await delay(DEFAULT_FORM_DELAY); await expectScreenshot({skipTheme: 'dark'}); }); - - test('render stories ', async ({mount, expectScreenshot, delay}) => { - await mount(); - await delay(DEFAULT_FORM_DELAY); - await expectScreenshot({skipTheme: 'dark'}); - }); }); diff --git a/src/blocks/Form/__tests__/helpers.tsx b/src/blocks/Form/__tests__/helpers.tsx index e0e35fa13..829c99104 100644 --- a/src/blocks/Form/__tests__/helpers.tsx +++ b/src/blocks/Form/__tests__/helpers.tsx @@ -9,5 +9,4 @@ export const { WithBackgroundImage, DarkTheme, FormData, - WithContentList, } = composeStories(FormStories);