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
We have a lot of red/reddish elements in the UI of our app and we realised that changes in those elements are not reflected in the diff images of the Shot verification report.
ℹ️ This test result shows a screenshot test in which an orange button has been moved slightly downwards. The change is correctly identified by Shot, but it's not clear from the diff image.
Expected behaviour
All differences between the original and the new screenshot are visible in the diff images in the verification report.
Actual behaviour
Differences of some elements are not visible in the diff images in the verification report: This mostly happens with red elements. But in the example below it also happens for green and blue elements when they are placed on black background.
Steps to reproduce
I created a test with a simple UI to reproduce the problem:
I guess that this is related to the RedComposite from the scrimage library which is used to merge the original and the new screenshot to create the diff image.
We have a lot of red/reddish elements in the UI of our app and we realised that changes in those elements are not reflected in the diff images of the Shot verification report.
ℹ️ This test result shows a screenshot test in which an orange button has been moved slightly downwards. The change is correctly identified by Shot, but it's not clear from the diff image.
Expected behaviour
All differences between the original and the new screenshot are visible in the diff images in the verification report.
Actual behaviour
Differences of some elements are not visible in the diff images in the verification report: This mostly happens with red elements. But in the example below it also happens for green and blue elements when they are placed on black background.
Steps to reproduce
I created a test with a simple UI to reproduce the problem:
Version of the library
5.14.1
More information
I guess that this is related to the
RedComposite
from the scrimage library which is used to merge the original and the new screenshot to create the diff image.Shot/core/src/main/scala/com/karumi/shot/screenshots/ScreenshotsDiffGenerator.scala
Line 37 in 4f609da
The text was updated successfully, but these errors were encountered: