-
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
feat(workspace-plugin): add vrt generator #33942
base: hotell/fhl-spring-25
Are you sure you want to change the base?
feat(workspace-plugin): add vrt generator #33942
Conversation
Pull request demo site: URL |
729a629
to
a5d6c4d
Compare
"executor": "@fluentui/workspace-plugin:visual-regression", | ||
}, | ||
"test-vr-cli": Object { | ||
"command": "visual-regression-assert --baselineDir dist/baseline --actualDir dist/screenshots --diffDir dist/diff --reportPath dist/report.html", |
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.
*/ | ||
export interface VisualRegressionSchema { | ||
/** | ||
* The name of the component package |
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.
bad copy paste ?
how is this supposed to work ? user provides v9 project ( react-card ) for instance and we create the new visual-regression project ?
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.
Yes, I thought it to work in the similar way as we have other generators, to have a prompt with dropdown of projects. Is there a better way?
|
||
function normalizeOptions(tree: Tree, options: VisualRegressionSchema) { | ||
const projectName = `${options.project}-visual-regression`; | ||
const root = joinPathFragments('packages', 'react-components', options.project, 'visual-regression'); |
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.
you need to construct this based on const { projectConfig }
root
} | ||
|
||
function normalizeOptions(tree: Tree, options: VisualRegressionSchema) { | ||
const projectName = `${options.project}-visual-regression`; |
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.
we need to filter out that user doesnt specify by mistake lets say a react-text-stories
project or an application
8abe6b1
to
3db6d29
Compare
VR Regression Report:
|
3db6d29
to
35bdc7c
Compare
35bdc7c
to
d5f82fb
Compare
Previous Behavior
New Behavior
Related Issue(s)