Write a smoke test for a signup flow on demand
Когда использовать: You pushed a new signup flow and want to know it still works end-to-end.
Предварительные требования
- Node + Playwright installable — The skill will install browsers via
npx playwright installif missing
Поток
-
Describe the flowUse the playwright skill. Open localhost:3000, sign up with [email protected] / Pass123!, verify we land on /dashboard.✓ Скопировано→ Claude writes a Playwright script, runs it headed, reports pass/fail
-
Debug failures interactivelyIt failed at the email input — add a screenshot right before the error.✓ Скопировано→ Next run captures and returns the screenshot
Итог: A one-off smoke test you can optionally save as a persistent spec.
Подводные камни
- Selectors chosen are brittle (e.g. nth-child) — Ask Claude to prefer role/label selectors