haim-io / cypress-image-diff

Visual regression test with cypress
MIT License
251 stars 62 forks source link

Image comparison on different computers cannot pass #121

Closed jwangyangls closed 1 year ago

jwangyangls commented 1 year ago

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 commented 1 year ago

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

PippoRaimondi commented 1 year ago

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...