comet-ml-playwright-e2e
0
总安装量
3
周安装量
安装命令
npx skills add https://smithery.ai
Agent 安装分布
amp
2
opencode
2
kimi-cli
2
codex
2
gemini-cli
2
Skill 文档
Playwright E2E Test Workflow
Three-agent workflow for generating end-to-end tests:
- Planner â Explores UI, generates markdown test plan
- Generator â Transforms plan into executable Playwright tests
- Healer â Automatically fixes failing tests
When to Use
Use when developer requests E2E test generation:
- “Generate an E2E test for the new dashboard”
- “Create automated test for the upload flow”
- “Add happy path test for experiment creation”
Prerequisites
# Opik must be running locally
./scripts/dev-runner.sh --start
curl http://localhost:5173 # verify
# Playwright environment
cd tests_end_to_end/typescript-tests
npm install
npx playwright install chromium
Workflow Phases
Phase 1: Planning
Input: Running app + feature description
Output: tests_end_to_end/typescript-tests/specs/{feature-name}.md
Uses seed test: tests/seed-for-planner.spec.ts
Phase 2: Generation
Input: Markdown test plan from specs/
Output: tests_end_to_end/typescript-tests/tests/{feature-area}/{test-name}.spec.ts
Uses existing fixtures and page objects.
Phase 3: Healing
Input: Generated test + failure info
Output: Passing test or test.fixme() if feature is broken
Directory Structure
tests_end_to_end/
âââ test-helper-service/ # Flask helper for SDK operations
âââ installer_utils/ # Shell scripts for installation
âââ typescript-tests/
âââ specs/ # Markdown test plans (planner output)
âââ tests/ # Executable tests (generator output)
âââ fixtures/ # Test fixtures
âââ page-objects/ # Page objects
âââ helpers/ # Helper utilities