jaredpalmer / cypress-image-snapshot

Catch visual regressions in Cypress
MIT License
888 stars 160 forks source link

`cypress@4.1.0` + `cypress-image-snapshot@3.0.0` works but `3.1.1` does NOT #125

Open francoismassart opened 4 years ago

francoismassart commented 4 years ago

I spent a lot of time trying to understand why the examples from this repo were working and not my specs files...

I found out that the examples of this repo work even with after updating cypress via npm i cypress@4.1.0 -D.

The issue seems to be related to cypress-image-snapshot@3.1.1

In order to make my tests work, I had to:

I hope this can help others.

nweiser1 commented 4 years ago

I'm using 4.0.2 Cypress with cypress-image-snapshot 3.1.1 and its working thanks for the heads up

azeemchauhan commented 4 years ago

I spent a lot of time trying to understand why the examples from this repo were working and not my specs files...

I found out that the examples of this repo work even with after updating cypress via npm i cypress@4.1.0 -D.

The issue seems to be related to cypress-image-snapshot@3.1.1

In order to make my tests work, I had to:

  • npm uninstall cypress-image-snapshot
  • npm i cypress-image-snapshot -D

I hope this can help others.

After updating cypress, I got error like

args.find is not a function

below link helped me to fix this error. 6391