-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Is there an easy way to make the test fail if a new screenshot is generated? #4
Comments
I've just added a new commit that is included in the new version const ssim = browser.saveAndDiffScreenshot('screenshot name')
if (ssim && ssim.All < 1) {
// Screenshot differs from previous run
// See also: https://github.com/blueimp/node-ffmpeg-image-diff
} In my experience, failing tests for screenshot differences might give you too many false negatives though, as e.g. it's easy to have differences that are due to
|
Thanks for the quick response, I'll try that out. I've wrote a quick command to strip out more volatile bits of the pages, so hopefully we won't get too many false negatives |
Thanks, please let me know if we can close the issue (or feel free to close it yourself). |
add graphql service.
browser.saveAndDiffScreenshot('test');
say the above command creates a diff, is there a way to make that fail the test easily?
The text was updated successfully, but these errors were encountered: