Web App Testing (Playwright)
Prefer small, targeted Playwright scripts over heavyweight test suites when you need fast UI verification.
Quick Start
- Decide what you’re testing:
- static HTML file (
file://…) vs local dev server (http://localhost:…)
- static HTML file (
- Recon first:
- take a screenshot
- list buttons/links/inputs
- capture console logs
- Then automate:
- select stable locators
- assert visible text and URL changes
- keep timeouts explicit and minimal
Helper: run a command with dev server(s)
Start one or more servers, wait for ports, run your Playwright script, then clean up:
python ~/.codex/skills/webapp-testing/scripts/with_server.py --server "npm run dev" --port 3000 -- python /tmp/ui_check.py
Assets
- Playwright examples you can copy:
assets/playwright-examples/