-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Test failing because of images sizes are not same #219
Comments
even with viewport this issue exists, I believe the issue is already raised |
There is no solution for this. You have to use the same docker container everytime to get the same size images. |
wouldnt that make testing extremely difficult |
Free screenshot comparison cannot be easy :) Here, Gleb was explaining the things related to the question. |
I managed to get cypress to work on macOS where it produces the same screenshots in the runner and e2e-headless. I haven't tested in CI yet. When you run cypress for e2e be sure to use the browser chrome flag in a before browser launch event.
and then add these chrome flags to plugins/index.js
|
when the test is running in different monitors , passing only the monitor that base image is taken. I have taken the initial image (base image) in a large screen and when i try to run the test in smaller screen then the error pop up
this is the configuration
addMatchImageSnapshotCommand({ failureThreshold: 0.01, //threshold for entire image failureThresholdType: 'percent', //percent of image or number of pixels customDiffConfig: { threshold: 0.1 }, //threshold for each pixel capture: 'viewport', //capture viewport in screenshot allowSizeMismatch:true });
this is the error message
The text was updated successfully, but these errors were encountered: