I am using cypress-image-diff-js plugin to run visual tests on some of the test within the suite. It runs perfectly fine in local machine (Which is a macbook pro) and fails on Github Actions that uses ubuntu-latest.
I tried the following to fix this issue but failed to do so:
Have anyone been able to use this plugin and get passed test in Github Actions?
That limitation is documented:
Be aware that despite forcing a screenshot resolution to a particular height and width for a test, if this test is run on different infrastructure (i.e a 13" Mac vs PC attached to a 30" monitor), the results will be different. So it's extremely important that you standardize where the tests will run, both locally and CI. One way to handle this, is by running it with docker container or against BrowserStack or alike.