-
Notifications
You must be signed in to change notification settings - Fork 1
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
Visual testing with Cypress #163
Comments
We tried Cypress Image Snapshot
But I keep getting this error: "The value of "offset" is out of range. It must be >= 0 and <= 13113564. Received -6792" The error was reported in cypress-io/cypress#2034 (with the help of Gleb Bahmutov) |
It seems visual regression testing requires some paid software such as Applitools |
See my tweet https://twitter.com/masa_kudamatsu/status/1273263197047279616?s=21 on how to deal with the errors |
To take the full-page snapshots for all the breakpoint screen widths
We've figured out how to take the full-page snapshots We've created shortcut CLI commands to run cypress-image-snapshot
We only take the full-page snapshots
We take snapshots at each of the breakpoints as well as the narrowest screen (320px) Snapshots are committed with Git LFS. |
To avoid false positive due to rendering differences across browsers
We also disable the image-snapshots if we run Cypress with Chrome. |
For a summary of how to set up visual-testing with cypress-image-snapshot, see https://www.evernote.com/l/AFMjgtLhI5ZO757i757ke27x5Eal9I2xABE |
Read https://docs.cypress.io/guides/tooling/visual-testing.html#Functional-vs-visual-testing for how to do it.
The text was updated successfully, but these errors were encountered: