| name | playwright |
| description | Playwright 浏览器与 E2E 测试。需要加跑调前端测试,或 runtime-verify 要验证 UI 流程时触发。 |
/playwright — Browser Runtime Tests
Core Rule
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 complements the enabled playwright-skill@anthropic-official plugin and gives Athena-specific evidence rules.
Official references:
Workflow
-
Detect project setup before adding anything:
- Existing Playwright: inspect
playwright.config.*, tests/, e2e/, package.json scripts.
- No Playwright: prefer adding
@playwright/test and a minimal config/test file that fits the repo.
- If the repo already uses Cypress/Vitest browser mode/etc., avoid wholesale migration; add Playwright only if runtime verification needs real browser coverage.
-
Start or reuse a deterministic app target:
- Prefer an existing dev/preview script from
package.json.