-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
fix(vr-tests-react-components): migrate to new StoryWright api to define Steps to resolve VR snapshoting issues #33860
base: master
Are you sure you want to change the base?
Conversation
📊 Bundle size reportUnchanged fixtures
|
Pull request demo site: URL |
8eeaeea
to
ca3f5ac
Compare
5c15be6
to
de5ffad
Compare
…ine Steps to resolve VR snapshoting issues
4a90a20
to
15438b9
Compare
🕵 FluentUIV0 No visual regressions between this PR and main |
🕵 fluentuiv8 No visual regressions between this PR and main |
@@ -11,7 +11,7 @@ | |||
"start": "storybook dev", | |||
"test": "just-scripts test", | |||
"type-check": "tsc -p . --noEmit --baseUrl .", | |||
"test-vr": "storywright --browsers chromium --url dist/storybook --destpath dist/screenshots --waitTimeScreenshot 500 --concurrency 4 --headless true" | |||
"test-vr": "storywright --browsers chromium --url dist/storybook --destpath dist/screenshots --waitTimeScreenshot 500 --concurrency 4 --headless true --bailOnStoriesError" |
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.
new functionality that we shipped to SW, now if there will be any issues within our VR tests pipeline will fail ! 💪
/** Helper function that returns RTL, Dark Mode or High Contrast variant of an existing story. */ | ||
export function getStoryVariant(story: StoryFn, variant: StoryVariant) { | ||
export function getStoryVariant(story: StoryFn | StoryObj, variant: StoryVariant): StoryObjVariant { |
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.
improved types that reflect the actual usage ( we support both CSF2 and CSF3 🥹 )
* | ||
* @deprecated - set Steps via Story.parameters.storyWright API | ||
* This throws error if griffel `makeStyles` apis are used to tweak story rendering | ||
*/ |
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.
there are still 119 occurences of this API - will be refactored later on
Previous Behavior
New Behavior
Steps object is undefined (v9)
errors occurred while processing Stories to obtain Steps definitions:
VR tests count (v9)
making screenshots pass rate
Related Issue(s)
makeStyles
api is used directly for story rendering #33861