You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
robot test is passing even when there is difference between two images and tolerance is set to 0
To Reproduce
Steps to reproduce the behavior:
1-create new test to compare two images by compare images keyword or compare two images
2-make sure there is a difference between the two images
3-run the test and check robot result
Expected behavior
robot test should fail as there is a difference between the two images Screenshots
If applicable, add screenshots to help explain your problem.
attached the two images and the diff one Desktop (please complete the following information):
OS: MacOS venture 13.3
Browser : chrome
Version :110
Additional context
The text was updated successfully, but these errors were encountered:
@abdalhamidElnaggar I took a look at this. Magick returns a value of 0.002 which is a difference of 0.2%. This gets casted to int which is converting the difference to 0. I'll fix the code to retain the exact value instead of doing the int conversion.
Meanwhile a workaround for this could be to use capture element keyword and capture a portion of the page (headers for example). This should return a higher difference value for the mismatch and would result in a failure
removed float trimming to fix issue jessezach#103 , I already tested this locally and it is working fine , it may not be the best solution but it works for now.thanks
Describe the bug
robot test is passing even when there is difference between two images and tolerance is set to 0
To Reproduce
Steps to reproduce the behavior:
1-create new test to compare two images by compare images keyword or compare two images
2-make sure there is a difference between the two images
3-run the test and check robot result
Expected behavior
robot test should fail as there is a difference between the two images
Screenshots
If applicable, add screenshots to help explain your problem.
attached the two images and the diff one
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: