codewords
codewords copied to clipboard
Write more in-depth e2e tests
As in - test the entire flow of the app such as creating a game, flipping a card, joining a game, etc.
Websockets, specifically socket.io, are not fully supported in Cypress tests. Without the ability to stub the websocket messages, this depth of e2e tests are not possible. A few open issues are tracking this feature.
https://github.com/cypress-io/cypress/issues/687 https://github.com/cypress-io/cypress-documentation/issues/558
Another alternative is to explore third party options.