Skip to content
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

Draft
wants to merge 4 commits into
base: hotell/fhl-spring-25
Choose a base branch
from

Conversation

mainframev
Copy link
Contributor

Previous Behavior

New Behavior

Related Issue(s)

  • Fixes #

Copy link

github-actions bot commented Mar 5, 2025

Pull request demo site: URL

@Hotell Hotell force-pushed the hotell/fhl-spring-25 branch 3 times, most recently from 729a629 to a5d6c4d Compare March 6, 2025 11:31
@mainframev mainframev requested a review from Hotell March 11, 2025 14:12
"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",
Copy link
Contributor

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
Copy link
Contributor

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 ?

Copy link
Contributor Author

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');
Copy link
Contributor

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`;
Copy link
Contributor

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

@mainframev mainframev force-pushed the fhl-spring-25-vrt-generator branch from 8abe6b1 to 3db6d29 Compare March 11, 2025 22:46
Copy link

github-actions bot commented Mar 11, 2025

VR Regression Report:

  • status: success
  • check whole report to review visual differences

@mainframev mainframev force-pushed the fhl-spring-25-vrt-generator branch from 3db6d29 to 35bdc7c Compare March 11, 2025 23:01
@mainframev mainframev force-pushed the fhl-spring-25-vrt-generator branch from 35bdc7c to d5f82fb Compare March 11, 2025 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants