diff --git a/apps/vr-tests-react-components/src/stories/Field.stories.tsx b/apps/vr-tests-react-components/src/stories/Field.stories.tsx index 4f1875277be0f..9d9f5be11188e 100644 --- a/apps/vr-tests-react-components/src/stories/Field.stories.tsx +++ b/apps/vr-tests-react-components/src/stories/Field.stories.tsx @@ -12,14 +12,23 @@ import { Slider } from '@fluentui/react-slider'; import { SpinButton } from '@fluentui/react-spinbutton'; import { Switch } from '@fluentui/react-switch'; import { Textarea } from '@fluentui/react-textarea'; +import { DecoratorFunction } from '@storybook/addons'; import { storiesOf } from '@storybook/react'; import { Steps, StoryWright } from 'storywright'; +import { ExtendedStoryFnReturnType } from '../utilities/types'; -storiesOf('Field', module) - .addDecorator(story => ( +const TestWrapperDecoratorFixedWidth400: DecoratorFunction = story => ( +
- {story()} + {story()}
+
+); + +storiesOf('Field', module) + .addDecorator(TestWrapperDecoratorFixedWidth400) + .addDecorator(story => ( + {story()} )) .addStory('base', () => ( @@ -33,12 +42,12 @@ storiesOf('Field', module) )) .addStory('size:small', () => ( - + )) .addStory('size:large', () => ( - + )) .addStory('validation:error', () => ( @@ -109,57 +118,151 @@ storiesOf('Field', module) )) - .addStory('Checkbox:error', () => ( - - - + .addStory('Checkbox', () => ( +
+ + + + + + +
)) - .addStory('Combobox:error', () => ( - - - + .addStory('Combobox', () => ( +
+ + + + + + + + + + + + +
)) - .addStory('Dropdown:error', () => ( - - - + .addStory('Dropdown', () => ( +
+ + + + + + + + + + + + +
)) - .addStory('ProgressBar:error', () => ( - - - + .addStory('ProgressBar', () => ( +
+ + + + + + + + + + + + +
)) - .addStory('RadioGroup:error', () => ( - - - - - - - + .addStory('RadioGroup', () => ( +
+ + + + + + + + + + + + + + +
)) - .addStory('Select:error', () => ( - - + + + + + +