E2E typing glimpses (Playwright/Cypress)
See how TypeScript types flow in E2E tests with Playwright and Cypress; add proper type support and safe selectors.
Intro
Goal: Glimpse how TypeScript enhances E2E tests. We'll set up typing for Playwright and Cypress, and write tiny typed tests.
Playwright install
Playwright ships its own test runner + types. Import from @playwright/test to get typed test, expect, and page.
npm install --save-dev @playwright/testAll lessons in this course
- Vitest/Jest setup for TS
- Typing tests & mocks; expectTypeOf
- E2E typing glimpses (Playwright/Cypress)