-
Notifications
You must be signed in to change notification settings - Fork 2.9k
chore(v0 docs): Add storybook stories that reference docsite examples for 1JS VR tool migration #25663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
TristanWatanabe
merged 66 commits into
microsoft:master
from
TristanWatanabe:add-stories-to-v0
Dec 1, 2022
Merged
chore(v0 docs): Add storybook stories that reference docsite examples for 1JS VR tool migration #25663
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
c2a3b13
feat: add storybook config
TristanWatanabe bb488a3
Add Accordion stories
TristanWatanabe f0a6245
Add Alert Stories
TristanWatanabe df9c06e
Add Animation Stories
TristanWatanabe 82d1683
Add Attachment Stories and fix steps for Alert
TristanWatanabe a0b1865
Add Avatar Stories
TristanWatanabe 5467a67
Add Box and Breadcrumb stories
TristanWatanabe 7b5b5ac
Add Button stories
TristanWatanabe 75384e2
Fix story names of components with interaction tests
TristanWatanabe 090fda9
Add Card stories
TristanWatanabe a786bfe
Add Carousel stories
TristanWatanabe 24dd13a
Add Chat stories
TristanWatanabe a55176f
add Checkbox stories
TristanWatanabe b649e1a
Add DatePicker stories
TristanWatanabe 31609e3
add Dialog stories
TristanWatanabe fc099b8
add Divider stories
TristanWatanabe 108a1e6
Add Embed, Flex, Form, Grid, Header and Image stories
TristanWatanabe 8c9a507
Add Dropdown stories
TristanWatanabe 3c64839
Add Input stories
TristanWatanabe d22a9fa
Add ItemLayout stories
TristanWatanabe 1f77011
Add Label and Layout stories
TristanWatanabe e64c788
Add List stories
TristanWatanabe 6393001
Add Loader stories
TristanWatanabe 3613527
Add Menu stories
TristanWatanabe c3c1a63
Add MenuButton stories
TristanWatanabe 6a60349
Add Pill stories
TristanWatanabe ea94fc9
Add Popup stories
TristanWatanabe 0740458
Add Portal stories
TristanWatanabe 15f4dbf
Add Provider stories
TristanWatanabe 445a2e5
Add RadioGroup stories
TristanWatanabe 941a34c
Add Reaction, Ref, Segment and Skeleton stories
TristanWatanabe 930a791
Add Slider stories
TristanWatanabe b96731b
Add SplitButton stories
TristanWatanabe 5ac0dce
Add Status stories
TristanWatanabe 0f8851c
Add SvgIcon stories
TristanWatanabe 45d7df7
Add Table stories
TristanWatanabe 527f0de
Add Text stories
TristanWatanabe 5ab1486
Add TextArea stories
TristanWatanabe 680e03a
Add Toolbar stories
TristanWatanabe a8067d7
Add Tooltip stories
TristanWatanabe d59d5cd
Add Tree stories
TristanWatanabe e4ec66d
Add Video stories
TristanWatanabe 3e79eae
feat: Add getThemeStoryVariant and keys utility functions
TristanWatanabe 8bc1268
fix: type errors addressed
TristanWatanabe 012a9e9
Add testwrapper to all stories
TristanWatanabe 2fb5354
Add storybook scripts to package.json
TristanWatanabe bbd34ba
fix: address problematic imported class components
TristanWatanabe bb962fa
fix: RTL stories now display correctly
TristanWatanabe 21139e9
fix(Accordion): add missing .end() call
TristanWatanabe e1b3ac0
Replace Screener tags with StoryWright
TristanWatanabe 4325b39
Rename commonScreenerSteps files to commonStoryWrightSteps
TristanWatanabe 0941f15
Add VRT tool related deps and scripts to package.json
TristanWatanabe 7912564
Merge branch 'master' into add-v0-to-VRT-pipeline
TristanWatanabe 37fd603
fix: use correct storywright version
TristanWatanabe df84492
fix (Alert): remove unneeded StoryWright steps
TristanWatanabe 6d59713
fix: use storywright Keys
TristanWatanabe 946dc1a
fix(Alert): update Steps to use unified common one
TristanWatanabe e4c278d
chore: remove deleted keys file
TristanWatanabe 50f4eb3
Update VRT Pipelines to add v0 testing
TristanWatanabe b00cdb4
add screener:build script and partition for testing
TristanWatanabe 71d2481
Update DonutChart.base.tsx
TristanWatanabe b989bca
fix: step keys errors addressed
TristanWatanabe 18c1644
Revert "Update VRT Pipelines to add v0 testing"
TristanWatanabe f05bcbe
Update scripts
TristanWatanabe 5d54abd
Add screener:build script
TristanWatanabe fd7c4d6
simplify script to only build storybook
TristanWatanabe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| const path = require('path'); | ||
| const { TsconfigPathsPlugin } = require('tsconfig-paths-webpack-plugin'); | ||
|
|
||
| module.exports = /** @type {import('../../../../.storybook/main').StorybookBaseConfig} */ ({ | ||
| stories: ['../src/**/*.stories.tsx'], | ||
| core: { | ||
| builder: 'webpack5', | ||
| }, | ||
| babel: {}, | ||
| typescript: { | ||
| // disable react-docgen-typescript (totally not needed here, slows things down a lot) | ||
| reactDocgen: false, | ||
| }, | ||
| webpackFinal: config => { | ||
| const tsPaths = new TsconfigPathsPlugin({ | ||
| configFile: path.resolve(__dirname, '../../../../tsconfig.base.json'), | ||
| }); | ||
|
|
||
| if (config.resolve) { | ||
| config.resolve.plugins ? config.resolve.plugins.push(tsPaths) : (config.resolve.plugins = [tsPaths]); | ||
| } | ||
|
|
||
| if (config.module) { | ||
| config.module.rules?.unshift({ | ||
| test: /\.(ts|tsx)$/, | ||
| use: [ | ||
| { | ||
| loader: '@griffel/webpack-loader', | ||
| options: { | ||
| babelOptions: { | ||
| presets: ['@babel/preset-typescript'], | ||
| }, | ||
| }, | ||
| }, | ||
| ], | ||
| }); | ||
| } | ||
|
|
||
| return config; | ||
| }, | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import * as React from 'react'; | ||
| import { Provider, teamsTheme } from '@fluentui/react-northstar'; | ||
| import Screener from 'screener-storybook/src/screener'; | ||
|
|
||
| /** @type {import("@fluentui/react-storybook-addon").FluentParameters} */ | ||
| export const parameters = { layout: 'none' }; | ||
| /** @type {import("@storybook/react").DecoratorFn[]} */ | ||
| export const decorators = [ | ||
| (story, context) => { | ||
| const isRtl = context.id.toLowerCase().includes('rtl'); | ||
|
|
||
| return ( | ||
| <Provider theme={teamsTheme} dir={isRtl ? 'rtl' : 'ltr'}> | ||
| <div className="testWrapper" style={{ width: '600px' }}> | ||
| {story()} | ||
| </div> | ||
| </Provider> | ||
| ); | ||
| }, | ||
| ]; | ||
|
|
||
| // For static storybook per https://github.com/screener-io/screener-storybook#testing-with-static-storybook-app | ||
| if (typeof window === 'object') { | ||
| /** @type {*} */ (window).__screener_storybook__ = require('@storybook/react').getStorybook; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
packages/fluentui/docs/src/vr-tests/Accordion/Accordion.stories.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { ComponentMeta } from '@storybook/react'; | ||
| import { Accordion } from '@fluentui/react-northstar'; | ||
| import AccordionDefaultBsize from '../../examples/components/Accordion/Performance/AccordionDefault.bsize'; | ||
| import AccordionExampleRtl from '../../examples/components/Accordion/Rtl/AccordionExample.rtl'; | ||
| import AccordionExample from '../../examples/components/Accordion/Types/AccordionExample.shorthand'; | ||
| import AccordionExclusiveExample from '../../examples/components/Accordion/Types/AccordionExclusiveExample.shorthand'; | ||
| import AccordionExclusiveExpandedExample from '../../examples/components/Accordion/Types/AccordionExclusiveExpandedExample.shorthand'; | ||
| import AccordionPanelCustomContentExample from '../../examples/components/Accordion/Usage/AccordionPanelCustomContentExample.shorthand'; | ||
| import AccordionPanelCustomTitleExample from '../../examples/components/Accordion/Usage/AccordionPanelCustomTitleExample.shorthand'; | ||
| import AccordionDefaultExample from '../../examples/components/Accordion/Visual/AccordionExampleDefault.shorthand'; | ||
|
|
||
| export default { component: Accordion, title: 'Accordion' } as ComponentMeta<typeof Accordion>; | ||
|
|
||
| export { | ||
| AccordionDefaultBsize, | ||
| AccordionExampleRtl, | ||
| AccordionExample, | ||
| AccordionExclusiveExample, | ||
| AccordionExclusiveExpandedExample, | ||
| AccordionPanelCustomContentExample, | ||
| AccordionPanelCustomTitleExample, | ||
| AccordionDefaultExample, | ||
| }; |
26 changes: 26 additions & 0 deletions
26
packages/fluentui/docs/src/vr-tests/Accordion/AccordionExampleCustomTitle.stories.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| import * as React from 'react'; | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { StoryWright, Steps } from 'storywright'; | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { ComponentMeta } from '@storybook/react'; | ||
| import { Accordion, accordionTitleSlotClassNames } from '@fluentui/react-northstar'; | ||
| import AccordionExampleCustomTitle from '../../examples/components/Accordion/Visual/AccordionExampleCustomTitle.shorthand'; | ||
|
|
||
| export default { | ||
| component: Accordion, | ||
| title: 'Accordion', | ||
| decorators: [ | ||
| story => ( | ||
| <StoryWright | ||
| steps={new Steps() | ||
| .focus(`.${accordionTitleSlotClassNames.contentWrapper}`) | ||
| .snapshot('Focuses the accordion title') | ||
| .end()} | ||
| > | ||
| {story()} | ||
| </StoryWright> | ||
| ), | ||
| ], | ||
| } as ComponentMeta<typeof Accordion>; | ||
|
|
||
| export { AccordionExampleCustomTitle }; |
48 changes: 48 additions & 0 deletions
48
packages/fluentui/docs/src/vr-tests/Alert/Alert.stories.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { ComponentMeta } from '@storybook/react'; | ||
| import { Alert } from '@fluentui/react-northstar'; | ||
| import AlertDefaultBsize from '../../examples/components/Alert/Performance/AlertDefault.bsize'; | ||
| import AlertExampleRtl from '../../examples/components/Alert/Rtl/AlertExample.rtl'; | ||
| import AlertExampleChildrenRtl from '../../examples/components/Alert/Rtl/AlertExampleChildren.rtl'; | ||
| import AlertExampleDismissActionRtl from '../../examples/components/Alert/Rtl/AlertExampleDismissAction.rtl'; | ||
| import AlertExampleDismissAction from '../../examples/components/Alert/Slots/AlertExampleActions.shorthand'; | ||
| import AlertExampleHeader from '../../examples/components/Alert/Slots/AlertExampleHeader.shorthand'; | ||
| import AlertExampleIcon from '../../examples/components/Alert/Slots/AlertExampleIcon.shorthand'; | ||
| import AlertExampleDismissible from '../../examples/components/Alert/State/AlertExampleVisible.shorthand'; | ||
| import AlertExample from '../../examples/components/Alert/Types/AlertExample.shorthand'; | ||
| import AlertExampleDismissActions from '../../examples/components/Alert/Usage/AlertExampleDismissActions.shorthand'; | ||
| import AlertExampleImportantMessage from '../../examples/components/Alert/Usage/AlertExampleImportantMessage.shorthand'; | ||
| import AlertExampleWidth from '../../examples/components/Alert/Usage/AlertExampleWidth.shorthand'; | ||
| import AlertExampleShorthand from '../../examples/components/Alert/Variations/AlertExampleAttached.shorthand'; | ||
| import AlertExampleDanger from '../../examples/components/Alert/Variations/AlertExampleDanger'; | ||
| import AlertExampleFitted from '../../examples/components/Alert/Variations/AlertExampleFitted.shorthand'; | ||
| import AlertExampleInfo from '../../examples/components/Alert/Variations/AlertExampleInfo'; | ||
| import AlertExampleOof from '../../examples/components/Alert/Variations/AlertExampleOofs'; | ||
| import AlertExampleSuccess from '../../examples/components/Alert/Variations/AlertExampleSuccess.shorthand'; | ||
| import AlertExampleUrgent from '../../examples/components/Alert/Variations/AlertExampleUrgent'; | ||
| import AlertExampleWarning from '../../examples/components/Alert/Variations/AlertExampleWarning.shorthand'; | ||
|
|
||
| export default { component: Alert, title: 'Alert' } as ComponentMeta<typeof Alert>; | ||
|
|
||
| export { | ||
| AlertDefaultBsize, | ||
| AlertExampleRtl, | ||
| AlertExampleChildrenRtl, | ||
| AlertExampleDismissActionRtl, | ||
| AlertExampleDismissAction, | ||
| AlertExampleHeader, | ||
| AlertExampleIcon, | ||
| AlertExampleDismissible, | ||
| AlertExample, | ||
| AlertExampleDismissActions, | ||
| AlertExampleImportantMessage, | ||
| AlertExampleWidth, | ||
| AlertExampleShorthand, | ||
| AlertExampleDanger, | ||
| AlertExampleFitted, | ||
| AlertExampleInfo, | ||
| AlertExampleOof, | ||
| AlertExampleSuccess, | ||
| AlertExampleUrgent, | ||
| AlertExampleWarning, | ||
| }; |
23 changes: 23 additions & 0 deletions
23
packages/fluentui/docs/src/vr-tests/Alert/AlertExampleDanger.stories.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { ComponentMeta } from '@storybook/react'; | ||
| import { Alert } from '@fluentui/react-northstar'; | ||
| import { getThemeStoryVariant } from '../utilities/getThemeStoryVariant'; | ||
| import AlertExampleDanger from '../../examples/components/Alert/Variations/AlertExampleDanger.shorthand'; | ||
|
|
||
| export default { | ||
| component: Alert, | ||
| title: 'Alert', | ||
| } as ComponentMeta<typeof Alert>; | ||
|
|
||
| const AlertExampleDangerTeams = getThemeStoryVariant(AlertExampleDanger, 'teamsV2'); | ||
|
|
||
| const AlertExampleDangerTeamsDark = getThemeStoryVariant(AlertExampleDanger, 'teamsDarkV2'); | ||
|
|
||
| const AlertExampleDangerTeamsHighContrast = getThemeStoryVariant(AlertExampleDanger, 'teamsHighContrast'); | ||
|
|
||
| export { | ||
| AlertExampleDanger, | ||
| AlertExampleDangerTeams, | ||
| AlertExampleDangerTeamsDark, | ||
| AlertExampleDangerTeamsHighContrast, | ||
| }; |
28 changes: 28 additions & 0 deletions
28
packages/fluentui/docs/src/vr-tests/Alert/AlertExampleDismissible.stories.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import * as React from 'react'; | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { StoryWright } from 'storywright'; | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { ComponentMeta } from '@storybook/react'; | ||
| import { Alert } from '@fluentui/react-northstar'; | ||
| import screenerSteps from './commonStoryWrightSteps'; | ||
| import { getThemeStoryVariant } from '../utilities/getThemeStoryVariant'; | ||
| import AlertExampleDismissible from '../../examples/components/Alert/Types/AlertExampleDismissible.shorthand'; | ||
|
|
||
| export default { | ||
| component: Alert, | ||
| title: 'Alert', | ||
| decorators: [story => <StoryWright steps={screenerSteps}>{story()}</StoryWright>], | ||
| } as ComponentMeta<typeof Alert>; | ||
|
|
||
| const AlertExampleDismissibleTeams = getThemeStoryVariant(AlertExampleDismissible, 'teamsV2'); | ||
|
|
||
| const AlertExampleDismissibleTeamsDark = getThemeStoryVariant(AlertExampleDismissible, 'teamsDarkV2'); | ||
|
|
||
| const AlertExampleDismissibleTeamsHighContrast = getThemeStoryVariant(AlertExampleDismissible, 'teamsHighContrast'); | ||
|
|
||
| export { | ||
| AlertExampleDismissible, | ||
| AlertExampleDismissibleTeams, | ||
| AlertExampleDismissibleTeamsDark, | ||
| AlertExampleDismissibleTeamsHighContrast, | ||
| }; |
18 changes: 18 additions & 0 deletions
18
packages/fluentui/docs/src/vr-tests/Alert/AlertExampleInfo.stories.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { ComponentMeta } from '@storybook/react'; | ||
| import { Alert } from '@fluentui/react-northstar'; | ||
| import { getThemeStoryVariant } from '../utilities/getThemeStoryVariant'; | ||
| import AlertExampleInfo from '../../examples/components/Alert/Variations/AlertExampleInfo.shorthand'; | ||
|
|
||
| export default { | ||
| component: Alert, | ||
| title: 'Alert', | ||
| } as ComponentMeta<typeof Alert>; | ||
|
|
||
| const AlertExampleInfoTeams = getThemeStoryVariant(AlertExampleInfo, 'teamsV2'); | ||
|
|
||
| const AlertExampleInfoTeamsDark = getThemeStoryVariant(AlertExampleInfo, 'teamsDarkV2'); | ||
|
|
||
| const AlertExampleInfoTeamsHighContrast = getThemeStoryVariant(AlertExampleInfo, 'teamsHighContrast'); | ||
|
|
||
| export { AlertExampleInfo, AlertExampleInfoTeams, AlertExampleInfoTeamsDark, AlertExampleInfoTeamsHighContrast }; |
24 changes: 24 additions & 0 deletions
24
packages/fluentui/docs/src/vr-tests/Alert/AlertExampleOof.stories.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| import * as React from 'react'; | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { StoryWright } from 'storywright'; | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { ComponentMeta } from '@storybook/react'; | ||
| import { Alert } from '@fluentui/react-northstar'; | ||
| import screenerSteps from './commonStoryWrightSteps'; | ||
|
|
||
| import { getThemeStoryVariant } from '../utilities/getThemeStoryVariant'; | ||
| import AlertExampleOof from '../../examples/components/Alert/Variations/AlertExampleOofs.shorthand'; | ||
|
|
||
| export default { | ||
| component: Alert, | ||
| title: 'Alert', | ||
| decorators: [story => <StoryWright steps={screenerSteps}>{story()}</StoryWright>], | ||
| } as ComponentMeta<typeof Alert>; | ||
|
|
||
| const AlertExampleOofTeams = getThemeStoryVariant(AlertExampleOof, 'teamsV2'); | ||
|
|
||
| const AlertExampleOofTeamsDark = getThemeStoryVariant(AlertExampleOof, 'teamsDarkV2'); | ||
|
|
||
| const AlertExampleOofTeamsHighContrast = getThemeStoryVariant(AlertExampleOof, 'teamsHighContrast'); | ||
|
|
||
| export { AlertExampleOof, AlertExampleOofTeams, AlertExampleOofTeamsDark, AlertExampleOofTeamsHighContrast }; |
28 changes: 28 additions & 0 deletions
28
packages/fluentui/docs/src/vr-tests/Alert/AlertExampleUrgent.stories.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import * as React from 'react'; | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { StoryWright } from 'storywright'; | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { ComponentMeta } from '@storybook/react'; | ||
| import { Alert } from '@fluentui/react-northstar'; | ||
| import screenerSteps from './commonStoryWrightSteps'; | ||
| import { getThemeStoryVariant } from '../utilities/getThemeStoryVariant'; | ||
| import AlertExampleUrgent from '../../examples/components/Alert/Variations/AlertExampleUrgent.shorthand'; | ||
|
|
||
| export default { | ||
| component: Alert, | ||
| title: 'Alert', | ||
| decorators: [story => <StoryWright steps={screenerSteps}>{story()}</StoryWright>], | ||
| } as ComponentMeta<typeof Alert>; | ||
|
|
||
| const AlertExampleUrgentTeams = getThemeStoryVariant(AlertExampleUrgent, 'teamsV2'); | ||
|
|
||
| const AlertExampleUrgentTeamsDark = getThemeStoryVariant(AlertExampleUrgent, 'teamsDarkV2'); | ||
|
|
||
| const AlertExampleUrgentTeamsHighContrast = getThemeStoryVariant(AlertExampleUrgent, 'teamsHighContrast'); | ||
|
|
||
| export { | ||
| AlertExampleUrgent, | ||
| AlertExampleUrgentTeams, | ||
| AlertExampleUrgentTeamsDark, | ||
| AlertExampleUrgentTeamsHighContrast, | ||
| }; |
18 changes: 18 additions & 0 deletions
18
packages/fluentui/docs/src/vr-tests/Alert/commonStoryWrightSteps.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { Keys, Steps } from 'storywright'; | ||
| import { alertDismissActionClassName } from '@fluentui/react-northstar'; | ||
|
|
||
| const selectors = { | ||
| dismissAction: `.${alertDismissActionClassName}`, | ||
| }; | ||
|
|
||
| const screenerSteps = new Steps() | ||
| .hover(selectors.dismissAction) | ||
| .snapshot('Hovers the action button') | ||
| .keys('body', Keys.tab) | ||
| .snapshot('Focuses the action button') | ||
| .hover(selectors.dismissAction) | ||
| .snapshot('Hovers the focused action button') | ||
| .end(); | ||
|
|
||
| export default screenerSteps; |
24 changes: 24 additions & 0 deletions
24
packages/fluentui/docs/src/vr-tests/Animation/Animation.stories.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { ComponentMeta } from '@storybook/react'; | ||
| import { Animation } from '@fluentui/react-northstar'; | ||
| import AnimationExample from '../../examples/components/Animation/Types/AnimationExample.shorthand'; | ||
| import AnimationExampleDelay from '../../examples/components/Animation/Types/AnimationExampleDelay.shorthand'; | ||
| import AnimationExampleDirection from '../../examples/components/Animation/Types/AnimationExampleDirection.shorthand'; | ||
| import AnimationExampleDuration from '../../examples/components/Animation/Types/AnimationExampleDuration.shorthand'; | ||
| import AnimationExampleFillMode from '../../examples/components/Animation/Types/AnimationExampleFillMode.shorthand'; | ||
| import AnimationExampleIterationCount from '../../examples/components/Animation/Types/AnimationExampleIterationCount.shorthand'; | ||
| import AnimationExampleTimingFunction from '../../examples/components/Animation/Types/AnimationExampleTimingFunction.shorthand'; | ||
| import AnimationExampleVisible from '../../examples/components/Animation/Usage/AnimationExampleVisible.shorthand'; | ||
|
|
||
| export default { component: Animation, title: 'Animation' } as ComponentMeta<typeof Animation>; | ||
|
|
||
| export { | ||
| AnimationExample, | ||
| AnimationExampleDelay, | ||
| AnimationExampleDirection, | ||
| AnimationExampleDuration, | ||
| AnimationExampleFillMode, | ||
| AnimationExampleIterationCount, | ||
| AnimationExampleTimingFunction, | ||
| AnimationExampleVisible, | ||
| }; |
22 changes: 22 additions & 0 deletions
22
packages/fluentui/docs/src/vr-tests/Attachment/Attachment.stories.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| // eslint-disable-next-line import/no-extraneous-dependencies | ||
| import { ComponentMeta } from '@storybook/react'; | ||
| import { Attachment } from '@fluentui/react-northstar'; | ||
| import AttachmentDefaultBsize from '../../examples/components/Attachment/Performance/AttachmentDefault.bsize'; | ||
| import AttachmentExampleRtl from '../../examples/components/Attachment/Rtl/AttachmentExample.rtl'; | ||
| import AttachmentDescriptionExampleShorthand from '../../examples/components/Attachment/Slots/AttachmentDescriptionExample.shorthand'; | ||
| import AttachmentHeaderExampleShorthand from '../../examples/components/Attachment/Slots/AttachmentHeaderExample.shorthand'; | ||
| import AttachmentIconExampleShorthand from '../../examples/components/Attachment/Slots/AttachmentIconExample.shorthand'; | ||
| import AttachmentExampleShorthand from '../../examples/components/Attachment/Types/AttachmentExample.shorthand'; | ||
| import AttachmentProgressExampleShorthand from '../../examples/components/Attachment/Types/AttachmentProgressExample.shorthand'; | ||
|
|
||
| export default { component: Attachment, title: 'Attachment' } as ComponentMeta<typeof Attachment>; | ||
|
|
||
| export { | ||
| AttachmentDefaultBsize, | ||
| AttachmentExampleRtl, | ||
| AttachmentDescriptionExampleShorthand, | ||
| AttachmentHeaderExampleShorthand, | ||
| AttachmentIconExampleShorthand, | ||
| AttachmentExampleShorthand, | ||
| AttachmentProgressExampleShorthand, | ||
| }; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the name
screenerhere to simplify and align with current template we have while running the VR tool. Will be renamed (along with others) once we completely remove screener.