cypress-plugin-snapshots
cypress-plugin-snapshots copied to clipboard
(bug) update button fails due to socket-io CORS
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Click on 'COMPARE SNAPSHOT'
- 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
Screenshots
Desktop (please complete the following information):
- OS: OSX Big Sur
- Cypress Version: 4.5.0+
Additional context Add any other context about the problem here.