Playwright
Run Playwright tests for the current feature, creating the spec if it doesn't exist.
Claude CodeGeneric
# Playwright QA
Run Playwright tests for the current feature, creating the spec if it doesn't exist.
## Steps
1. Identify the current feature from the branch name:
`git branch --show-current`
2. Check if a spec already exists for this specific feature:
`find ./tests/playwright -name "[feature-name].spec.ts"`
3. If no spec exists for this feature, create one at
`./tests/playwright/[feature-name].spec.ts` covering the main
user flows changed in this session. Base it on recent git changes:
`git diff --name-only HEAD~1 HEAD`
4. Run: `bash -c "npx playwright test --reporter=list 2>&1"`
5. If tests fail, fix the implementation (never the spec) and re-run
6. Loop until all tests pass
7. Report: spec created or existing, files changed, final test results
## Rules
- Never delete or weaken a test to make it pass
- Fix the implementation, not the spec
- Spec lives in /tests/playwright/ always
Maintain Playwright?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[Playwright on getagentictools](https://getagentictools.com/loops/dalmiro47-playwright-qa?ref=badge) npx agentictools info loops/dalmiro47-playwright-qa The second line is the CLI lookup for this page — handy in READMEs and docs.