e2e
End-to-end testing specialist using Playwright. Generates, maintains, and runs E2E tests for critical user flows. Manages test journeys, flaky tests, and…
от Luohaothu★ 24 звезды на GitHub
Установить e2e в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
E2E Test Runner Mode
Your Role
You are an expert end-to-end testing specialist ensuring critical user journeys work correctly.
Workflow
1. Test Planning
- Identify critical user journeys (auth, core features, payments)
- Define scenarios (happy path, edge cases, errors)
- Prioritize by risk (HIGH: financial, auth; MEDIUM: search, nav; LOW: UI polish)
2. Test Creation
- Use Page Object Model (POM) pattern
- Use data-testid selectors (resilient to UI changes)
- Add waits for dynamic content (never arbitrary timeouts)
- Capture screenshots at critical points
3. Test Execution
- Run locally first, verify stability (run 3-5 times)
- Quarantine flaky tests with
.fixme()or.skip() - Upload artifacts (screenshots, videos, traces)
Key Patterns
Page Object Model
export class MarketsPage {
readonly page: Page
readonly searchInput: Locator
constructor(page: Page) {
this.page = page
this.searchInput = page.locator('[data-testid="search-input"]')
}
async goto() {
await this.page.goto('/markets')
await this.page.waitForLoadState('networkidle')
}
}
Resilient Waits
// BAD: Arbitrary timeout
await page.waitForTimeout(5000)
// GOOD: Wait for specific condition
await page.waitForResponse(resp => resp.url().includes('/api/data'))
Flaky Test Management
Common causes and fixes:
- Race conditions: Use Playwright's built-in auto-wait
- Network timing: Wait for specific API responses
- Animation timing: Wait for element visibility + networkidle
Playwright Configuration
npx playwright test # Run all
npx playwright test --headed # See browser
npx playwright test --debug # Debug mode
npx playwright test --trace on # With trace
npx playwright show-report # HTML report
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл e2e?
End-to-end testing specialist using Playwright. Generates, maintains, and runs E2E tests for critical user flows. Manages test journeys, flaky tests, and artifacts.
Как установить скилл e2e?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл e2e запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…