cypress-match-screenshot icon indicating copy to clipboard operation
cypress-match-screenshot copied to clipboard

Different output in Azure Pipeline (linux agent) than MacOS

Open dimitriy-k opened this issue 5 years ago • 1 comments

First of all, thanks for nice additional feature for cypress!

I set it up on my Mac OS, so generated base screens. When running again, everything is green. But, when it is build in Azure Pipeline on Linux agent it fails. On the diff screenshot "shadow of all texts" is highlighted. Any suggestion how to fix it?

Screenshot 2019-06-04 at 08 47 57

dimitriy-k avatar Jun 04 '19 06:06 dimitriy-k

Ok, I found out that screenshots on different environments are "always" not exactly the same, depends on rendering fonts etc.

I have fixed it by generating base screenshots on MacOS with docker cypress/base:ubuntu16 image, Azure Pipleline uses Ubuntu 16.04 as well, so the rendering is the same

dimitriy-k avatar Jun 05 '19 10:06 dimitriy-k