Lesson
Test WebSockets in Playwright with MSW
Write an end-to-end (E2E) test for a WebSocket application in Playwright using Mock Service Worker.
- Access
- Included
- Transcript
- Needs source
Let's write an end-to-end test for our chat application using Playwright. For this one, we will reuse the browser integration of Mock Service Worker to also run during the automated test.