Testing WebRTC video chat app with Cypress stub

Опубликовано: 13 Октябрь 2024
на канале: Code & bird
2,602
27

Guthub repo https://github.com/nim-f/webrtc-react
Cypress stub api https://docs.cypress.io/api/commands/...

Testing video chat with cypress is tricky because we can't open second tab/browser in the same run, but there is a workaround. We can use cy.stub api and imitate stream from another peer. Watch the video to know how to do it!