Visual testing guide feels a little too opinionated #9009
Closed
Georgegriff
started this conversation in
Feedback
Replies: 1 comment
-
|
Aha i might have found the escape hatch needed resolveScreenshotPath not sure how i missed this! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://main.vitest.dev/guide/browser/visual-regression-testing
After reading this, I think it's possible the vitest visual testing that is currently exposed might be a little too opinionated, whilst lots of the opinions are good about inconsistencies between distributions I kinda of feel like it would be nice if there was at least an escape hatch to ignore this problem.
I've previously had hundreds of focused visual checks using playwright all ignoring the differences between operating systems by customizing
snapshotPathTemplateand using thresholds, it's a shame this flexibility has been taken away in vitest, would be nicer i think to let users opt into more complexity as its needed rather than having to introduce a complex github action flow or cloud environment.It would be nice if there was some kind of option to customize the screenshot path/logic to remove the need to care about operating system differences and let people opt into this complexity if/when it becomes a problem for them
Beta Was this translation helpful? Give feedback.
All reactions