Prompt file imported from raminr77/raminr77.github.io (
.claude/commands/e2e.md). Fill in{{arguments}}before use. Copyright stays with the author.
Run the Playwright E2E suite for: {{arguments}} (omit for full suite).
Steps
- If {{arguments}} is empty, run
pnpm test:e2e. Otherwise runpnpm test:e2e -- --grep "{{arguments}}". - Playwright needs the dev/preview server. The config is expected to handle webServer setup automatically, if it fails complaining about a server, surface the message and ask the user to start
pnpm devfirst. - On success, print a 1-line summary:
<N> e2e tests passed in <duration>. - On failure:
- Print the failed spec names and the first failing assertion's stack trace.
- Mention
pnpm test:e2e:uiandpnpm test:e2e:reportfor interactive debugging. - Do not auto-retry unless the user asks.
Tips
- Run a single file:
/e2e contact-validation - Run with UI: ask the user to run
pnpm test:e2e:uidirectly (interactive, not suitable for this command).
