/qa
Scaffolds a playwright e2e test suite tuned to the codebase.
When to use
- The user wants to add e2e tests
- "Set up smoke tests", "scaffold playwright", "browser tests"
- Before a launch, when there are no e2e tests yet
What it writes
playwright.config.tsconfigured with the right baseURL for the detected stack (Next.js → 3000, SvelteKit → 5173, etc.)tests/e2e/smoke.spec.tswith 4 tests: page loads with title, h1 visible, no console errors, no broken imagestests/e2e/run.shrunner that installs@playwright/testand Chromium on first run
Dragoon does not install playwright or browsers. The runner script does that on first run.
Run it
dragoon qa # preview
dragoon qa --apply # write
Then
npm i -D @playwright/test
bash tests/e2e/run.sh