| name | webapp-testing |
| description | Runs or writes Playwright tests for the 'careercopilot' webapp. Use when asked to 'run playwright' or 'write a new e2e test'. |
WebApp Testing Workflow
Ask the user if they want to "run" existing tests or "write" a new test.
If "run":
- Ask for the test command (default:
yarn playwright test). - Run the command and report the full output.
- If it fails, suggest using the
root-cause-tracerskill to debug the log.
- Ask for the test command (default:
If "write":
- Ask for a description of the test (e.g., "test the login flow").
- Ask for the new test file name (e.g.,
login.spec.ts). - Consult
REFERENCE/careercopilot-selectors.mdto use stabledata-testidselectors. - Write the new Playwright test code to
e2e/{{FILE_NAME}}. - Report success and ask the user if they want to run the new test.