Cypress · Senior · Question 28 of 76

Why are WebSocket features harder to test in Cypress?

Show the answer

Correct answer: cy.intercept doesn't stub WebSocket traffic

Explanation

Teams stub the socket client in the app, use a test server, or test the real connection with assertions on the UI.

Further reading

Problem with a question

Cypress · Senior · question 28

Test yourself

Take the Cypress · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz