webapp-testing
"为'careercopilot'网络应用程序运行或编写Playwright测试。当被要求'运行playwright'或'编写新的e2e测试'时使用。"
📖 中文导读:"为'careercopilot'网络应用程序运行或编写Playwright测试。当被要求'运行playwright'或'编写新的e2e测试'时使用。" 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
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
references/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.