Modern E2E Testing with Playwright
Test your Electron app end-to-end using Playwright, the modern successor to Spectron, automating real windows and asserting on UI behavior.
Why Playwright for Electron
Spectron is deprecated. Playwright has first-class Electron support and drives your real app like a user would.
Installing Playwright
Add Playwright as a dev dependency. Its test runner and Electron launcher come bundled.
npm install --save-dev @playwright/testAll lessons in this course
- Debugging Main and Renderer Processes
- Unit Testing with Spectron
- End-to-End Testing Workflows
- Modern E2E Testing with Playwright