Purpose
Runs or writes Playwright E2E tests for the CareerCopilot webapp, ensuring frontend stability and functionality.
When to Use
- When asked to "run playwright" or "run e2e tests".
- When writing a new E2E test for a feature or user flow.
- When debugging frontend regressions via automated testing.
Process
- User Intent: Ask whether to "run" existing tests or "write" a new one.
- If "Run":
- Confirm command (default:
yarn playwright test). - Execute and report output.
- Confirm command (default:
- If "Write":
- Define test scope and file name.
- Use stable
data-testidselectors fromreferences/careercopilot-selectors.md. - Implement test in
e2e/.