Frontend Testing
Browser automation, Playwright, visual regression.
Revision Sheet
- Unit Test: Fast, isolated. Use Jest/Vitest.
- Integration Test: Tests DOM and interaction. Use React Testing Library.
- E2E Test: Real browser. Use Playwright/Cypress.
- jsdom: Fake DOM in Node.js.
- MSW: Mock network requests at the service worker level.
Connections
Frontend testing deeply connects with CI/CD pipelines (Volume 18), as tests act as the primary quality gate before deployment. It also relies heavily on understanding the Browser Rendering Pipeline (Volume 12) when writing effective E2E assertions.