-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add equal feedback in createDiff. #45
Comments
Hello. Can you please describe a use case of this feature? Example: looksSame('ref.png', 'curr.png', (err, equal) => {
if (!equal) {
looksSame.createDiff({...}, () => {...})
}
}) |
Yes sure. I need to create a diff image regardless if it has differences or not. I use it for e2e tests and there are scenarios with steps where each step should be visible and additionally I want to show which steps have some difference. |
Okay, you can do it like I described above: looksSame('ref.png', 'curr.png', (err, equal) => {
looksSame.createDiff({...}, () => {...});
console.log(`Images are equal: ${equal}`);
}) Is it suitable for you? |
Thanks for the answer. Unfortunately it's not the option I need - it simply takes more time to compare images and generate diff. In this case it will take longer than expected. I have loads of scenarios and images to compare. |
Ok, I understand you. |
Hello. Did you try to use You can use it like:
|
It would be great to know if the images are equal or not when creating diff.
looksSame.createDiff({ ... }, function (error, equal) { ... });
The text was updated successfully, but these errors were encountered: