用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/WenJunDuan/Rlues --skill playwright命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | playwright |
| description | Playwright 浏览器与 E2E 测试。需要加跑调前端测试,或 runtime-verify 要验证 UI 流程时触发。 |
Use Playwright when the acceptance signal depends on a real browser: routing, forms, auth flows, rendering, navigation, API-backed UI state, responsive layouts, downloads/uploads, or regressions that unit tests cannot see.
For Athena v9.8.0, this skill is the frontend/E2E test arm of athena-runtime-verify. It should produce evidence that can be pasted into sprints/{slug}/runtime-verify.md under ## 测试场景 (实跑).
Official references:
Detect project setup before adding anything:
playwright.config.*, tests/, e2e/, package.json scripts.@playwright/test and a minimal config/test file that fits the repo.Start or reuse a deterministic app target:
package.json.baseURL in config or pass it via PLAYWRIGHT_BASE_URL.Write tests through user-visible behavior:
await expect(locator).toBeVisible().runtime-verify.Run and iterate:
npx playwright test.npx playwright test --headed, npx playwright test --ui, or npx playwright codegen <url> when exploring selectors.npx playwright test --trace on then inspect with npx playwright show-trace <trace.zip>.npx playwright install or the narrower browser install requested by the repo.Record evidence:
athena-runtime-verify, write a row in runtime-verify.md with scenario, type, command, actual output, and verdict.Feature: use when UI/API behavior is risky or user-visible.Refactor/System: use for browser-facing flows before review; this is part of runtime verification.Bugfix: use when the bug is reproducible in the browser, even though full runtime-verify is usually skipped.Hotfix/Quick: run only the smallest smoke path needed.Read references/runtime-patterns.md when you need concrete command patterns, config snippets, or evidence table examples.