jporter-dev / codewords

162 stars 40 forks source link

Write more in-depth e2e tests #16

Open jporter-dev opened 6 years ago

jporter-dev commented 6 years ago

As in - test the entire flow of the app such as creating a game, flipping a card, joining a game, etc.

jporter-dev commented 6 years ago

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.