cypress-image-diff icon indicating copy to clipboard operation
cypress-image-diff copied to clipboard

Image comparison on different computers cannot pass

Open jwangyangls opened this issue 3 years ago • 2 comments

For example, I executed cypress run on computer 1, generated a baseline image, and then submitted the code. When I execute it again on computer 2, there will be a difference between the images in the diff folder, resulting in failure. I need to pass the threshold to get control? If so, how should this range be controlled?

jwangyangls avatar Oct 21 '22 01:10 jwangyangls

The font is relatively thicker, or the difference in the shadow implementation of the border of the div tag

jwangyangls avatar Oct 21 '22 01:10 jwangyangls

If your read this section of the readme it's stated how important it is for you to replicate all runs in the same setup... you have a few alternatives... either run your tests against browserstack or via container...

PippoRaimondi avatar Oct 21 '22 05:10 PippoRaimondi