Small Playwright Test harness containing example TypeScript E2E tests.
Quick start
- Install dependencies:
npm install- Install Playwright browsers (required for running tests):
npx playwright install- Run tests:
npm test
# or directly with npx
npx playwright test- Open the HTML report after a run:
npm run test:report
# or
npx playwright show-reportNotes
- Tests are TypeScript files under
tests/and use@playwright/test(seeplaywright.config.ts). - The Playwright config defines three browser projects (chromium, firefox, webkit) and enables
trace: 'on-first-retry'. - If you add a local web app, enable
webServeror setbaseURLinplaywright.config.ts.