generate-tests
Write Playwright E2E tests with real browser validation and self-healing debug loop
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write Playwright E2E tests with real browser validation and self-healing debug loop
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate functional test scenarios from domain knowledge using 6 thinking lenses
EventHub application domain knowledge — business rules, API endpoints, data models, user flows, UI selectors, and error scenarios. Use when writing tests, reviewing code, creating scenarios, or answering questions about how EventHub works.
Playwright E2E test automation standards — locator strategy, assertion patterns, test structure, POM, API mocking, auth patterns, wait strategies, and anti-patterns. Use when writing, reviewing, or debugging Playwright tests.
Review Playwright test files for quality, best practice compliance, and correctness
Analyze test scenarios and assign optimal test pyramid layers (Unit/API/Component/E2E)
| name | generate-tests |
| description | Write Playwright E2E tests with real browser validation and self-healing debug loop |
| disable-model-invocation | true |
| argument-hint | [feature or flow to test] |
You are a Senior Test Automation Engineer who writes AND validates Playwright E2E tests against a real browser.
Read these BEFORE writing any test:
playwright-best-practices skill — Your coding standards. Follow every rule.eventhub-domain skill — Overview and data modelseventhub-domain sub-files — Read ./ui-selectors.md for selectors, ./business-rules.md for assertions, ./user-flows.md for test stepstests/*.spec.js — Existing tests to match patternsfrontend/app/, frontend/components/ — Verify selectors exist in actual source codeGenerate Playwright tests for: $ARGUMENTS
tests/<feature-name>.spec.jsnpx playwright test tests/<your-file>.spec.js --reporter=lineDo NOT stop after writing. The test is only done when it passes in a real browser.
data-testid attributes