-
Notifications
You must be signed in to change notification settings - Fork 2.9k
chore(vr-tests-v9): Convert Button VR tests to CSF #25108
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 59 commits into
microsoft:master
from
TristanWatanabe:button-convert-to-csf
Nov 2, 2022
Merged
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
fd8c495
add utility functions for CSF test creation
TristanWatanabe 68f2c3c
chore: convert Button stories to CSF
TristanWatanabe a0723ca
chore: convert CompoundButton to CSF
TristanWatanabe 488e548
fix: add fluentprovider decorator to all CSF stories
TristanWatanabe 96be209
chore: convert ToggleButton to CSF
TristanWatanabe ddf6b0b
fix: update getStoryVariant to fallback to story.name
TristanWatanabe 232688a
chore: convert MenuButton to CSF
TristanWatanabe c8c311e
fix: add space to story.name fallback in getStoryVariant
TristanWatanabe 45f614f
test: uncomment out hover snapshot for CompoundButtonDefault
TristanWatanabe 83bd1ab
test: try to fix flaky hover tests
TristanWatanabe 0157f8f
implement withFluentVRTestVariants decorator
TristanWatanabe d00208f
update test to include new decorator
TristanWatanabe c797198
update typings
TristanWatanabe bda9ea4
fix: typing and update API
TristanWatanabe dcfcde3
Add usage of decorator to README
TristanWatanabe 794bd7f
remove unneed peerDep
TristanWatanabe f306846
fix: typing
TristanWatanabe fb87708
Update API
TristanWatanabe 7bf1873
revert additions to react-storybook package
TristanWatanabe ed168ee
delete withFluentVrTestVariants
TristanWatanabe d3765ac
remove withFluentVrTestVariant
TristanWatanabe 1f26987
feat: withFluentProvider now accepts fluentTheme and dir
TristanWatanabe 66c95ef
Add exported theme constants
TristanWatanabe ab22cd5
feat: add isVrTest parameter
TristanWatanabe 060d696
Revert "Add usage of decorator to README"
TristanWatanabe 18c3e6d
update ReadMe
TristanWatanabe 14847d9
Add constants and FluentParameters to exports
TristanWatanabe 20091d7
Update API
TristanWatanabe e840ba7
Revert "Update API"
TristanWatanabe 21eba2e
Revert "fix: typing and update API"
TristanWatanabe 81de523
feedback: don't export constants, export FluentParameter type
TristanWatanabe b5f3788
feedback: replace isVrTest param with more dynamic mode param
TristanWatanabe 4842eb9
feedback: add parameters identity function and export
TristanWatanabe 8317329
Update API
TristanWatanabe 55836b6
Update README
TristanWatanabe 1559515
Merge branch 'master' into add-VrTestVariants-decorator
TristanWatanabe 90f267b
Merge branch 'add-VrTestVariants-decorator' into button-convert-to-csf
TristanWatanabe d1b213d
refactor: use withFluentProvider addon instead and configure paramete…
TristanWatanabe 6c6550a
add react-storybook-addon and update github workflow
TristanWatanabe 139aed9
fix: build react-storybook-addon in screener CI
TristanWatanabe 6cf51af
test: remove loadworkspaceaddon
TristanWatanabe c0616d0
feat: add utils file to host reused stuff in various Button stories
TristanWatanabe cd7b01d
refactor: add generalized withScreenerSteps decorator
TristanWatanabe 4488610
uncomment out flaky test
TristanWatanabe d388c0f
Add missing AsAnAnchor test
TristanWatanabe d888f92
remove unintended prettier changes
TristanWatanabe b86dfd7
Merge branch 'add-VrTestVariants-decorator' into button-convert-to-csf
TristanWatanabe 2ad10e8
Merge branch 'master' into button-convert-to-csf
TristanWatanabe 076eec0
pin storybook-addon and use Parameters from @storybook/addons
TristanWatanabe ca1114a
nit: break up getStoryVariant to different functions
TristanWatanabe 76a9f99
fix: getStoryName function now works as expected
TristanWatanabe 4351789
feat: jest tests now run in package
TristanWatanabe b469b71
test: add tests for getStoryVariant
TristanWatanabe a4864ac
Merge branch 'master' into button-convert-to-csf
TristanWatanabe 5d7527f
fix: make fluent storybook-addon a caret dep again to fix syncpack error
TristanWatanabe e2ba1f0
fix(react-storybook-addon): update API
TristanWatanabe 3d6983d
nit: generalize extra screener-build step for v9
TristanWatanabe 339ce77
Merge branch 'master' into button-convert-to-csf
TristanWatanabe 781e403
test: add test for story naming
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
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
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
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 @@ | ||
| // @ts-check | ||
|
|
||
| /** | ||
| * @type {import('@jest/types').Config.InitialOptions} | ||
| */ | ||
| module.exports = { | ||
| displayName: 'vr-tests-react-components', | ||
| preset: '../../jest.preset.js', | ||
| globals: { | ||
| 'ts-jest': { | ||
| tsConfig: '<rootDir>/tsconfig.json', | ||
| diagnostics: false, | ||
| }, | ||
| }, | ||
| transform: { | ||
| '^.+\\.tsx?$': 'ts-jest', | ||
| }, | ||
| }; |
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
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.
Uh oh!
There was an error while loading. Please reload this page.