meinaart / cypress-plugin-snapshots

Plugin for snapshot tests in Cypress.io
MIT License
498 stars 117 forks source link

(bug) update button fails due to socket-io CORS #163

Open DamienChing opened 3 years ago

DamienChing commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Click on 'COMPARE SNAPSHOT'
  2. Click on 'Update Snapshot'

Expected behavior A clear and concise description of what you expected to happen.

Temp Solution (does not work for firefox) add "chromeWebSecurity": true to cypress.json

Permanent Solution you probably want upgrade socket-io and enable cors for all origins. socket-io <2.4 had this enabled by default, but socket-io 2.2.0 had a bug where this was broken. https://github.com/socketio/socket.io/issues/3381 image

Screenshots image image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.