-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
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
[code-infra] Skip charts animation for visual regression test #42530
Conversation
Netlify deploy previewhttps://deploy-preview-42530--material-ui.netlify.app/ Bundle size report |
test/regressions/index.js
Outdated
@@ -27,7 +33,22 @@ importRegressionFixtures.keys().forEach((path) => { | |||
}, []); | |||
|
|||
const blacklist = [ | |||
'docs-getting-started-templates-dashboard-internals-components/CustomIcons.png', // No public components | |||
// Next components are tested by docs-getting-started-templates-dashboard-components/MainGrid.png |
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.
// Next components are tested by docs-getting-started-templates-dashboard-components/MainGrid.png | |
// The following components are tested by docs-getting-started-templates-dashboard-components/MainGrid.png |
The downside is that this list must be manually synchronized with the demos. But it's still better than running all demos unnecessarily, I guess.
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.
Looks good, thanks!
Have you tried disabling animations in the playwright |
If the animation is handled by React Spring, I'm afraid configuring it in Playwright may not be enough. |
If the browser settings ask to avoid animation (mostly for a11y issues) the charts will skip them https://mui.com/x/react-charts/pie/#animation maybe that's what make it works |
Right, I'm also setting |
Should prevent that type of false positive
I also noticed we do screenshot of the dashboard and each component individually. Which seems like waisting resources. So I only kept the dashboard screenshot and remove all the subcomponents
See: #41757 (comment)