sc-e2e
БесплатноБез исполняемых скриптовНе проверенE2E testing workflow supporting Playwright, Cypress, and Selenium. Run, debug, record, trace, generate test scaffolds, and view reports. Use when running…
от Tony363★ 21 звезда на GitHubОб этом скилле
E2E Testing Skill
Comprehensive end-to-end testing workflow with support for multiple frameworks and interactive debugging.
Quick Start
# Run all E2E tests
/sc:e2e run
# Run specific test file
/sc:e2e run --file auth.spec.ts
# Debug failing test
/sc:e2e debug --file auth.spec.ts --ui
# Record user interactions
/sc:e2e record --url /login
# Run with tracing enabled
/sc:e2e trace --file checkout.spec.ts
# Generate test scaffold
/sc:e2e generate spec user-profile
# View test report
/sc:e2e report
Behavioral Flow
- Detect - Identify E2E framework (Playwright, Cypress, Selenium)
- Configure - Parse mode and options from arguments
- Execute - Run the selected mode
- Analyze - Parse results, identify failures
- Interact - Offer debugging, re-run, or fix options
- Report - Present results with actionable next steps
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--file |
string | - | Specific test file to target |
--grep |
string | - | Filter tests by name pattern |
--headed |
bool | false | Run in headed browser mode |
--workers |
int | auto | Number of parallel workers |
--ui |
bool | false | Open framework UI mode |
--url |
string | / | Starting URL for record mode |
--output |
string | - | Output file for generated code |
--framework |
string | auto | Force framework: playwright, cypress, selenium |
Framework Detection
Auto-detect the E2E framework from project config:
| Framework | Detection | Config File |
|---|---|---|
| Playwright | @playwright/test in package.json |
playwright.config.ts |
| Cypress | cypress in package.json |
cypress.config.ts |
| Selenium | selenium-webdriver in package.json |
wdio.conf.js |
# Detection logic
if [ -f "playwright.config.ts" ] || [ -f "playwright.config.js" ]; then
FRAMEWORK="playwright"
elif [ -f "cypress.config.ts" ] || [ -f "cypress.config.js" ]; then
FRAMEWORK="cypress"
elif [ -f "wdio.conf.js" ] || [ -f "wdio.conf.ts" ]; then
FRAMEWORK="selenium"
fi
Mode 1: run - Execute Tests
Run E2E tests with optional filters and configuration.
Playwright
npx playwright test [--grep "pattern"] [--headed] [--workers N] [file]
Cypress
npx cypress run [--spec "file"] [--headed] [--browser chrome]
Post-Run Analysis
After test execution, parse output and offer interactive options:
Test run complete: X passed, Y failed
[r] Re-run failed tests
[d] Debug failing test
[t] View trace/screenshot
[f] Fix with /sc:tdd
[a] Run all tests
[q] Quit
Mode 2: debug - Interactive Debugging
Launch the framework's debug mode for step-through testing.
Playwright Debug Options
| Option | Command | Use Case |
|---|---|---|
| UI mode | npx playwright test --ui |
Visual step-through with time-travel |
| Inspector | PWDEBUG=1 npx playwright test |
Selector builder + breakpoints |
| Slow-mo | npx playwright test --headed --slowmo=500 |
Watch test execution |
Cypress Debug Options
| Option | Command | Use Case |
|---|---|---|
| Open mode | npx cypress open |
Interactive test runner |
| Debug | npx cypress run --headed --no-exit |
Keep browser open on failure |
Debugging Tips
- Use
await page.pause()(Playwright) orcy.pause()(Cypress) for breakpoints - Check screenshots in
test-results/orcypress/screenshots/ - Use trace viewer for time-travel debugging
Mode 3: record - Record User Interactions
Use codegen tools to record browser interactions and generate test code.
Playwright
npx playwright codegen http://localhost:3000[url-path]
Cypress
npx cypress open # Use Cypress Studio for recording
Post-Recording
- Review generated code
- Offer conversion to page object pattern:
- Extract selectors to page object class
- Convert actions to reusable methods
- Add assertions from existing patterns
Mode 4: trace - Tracing
Run tests with tracing enabled or view existing traces.
Playwright
# Run with tracing
npx playwright test --trace on [file]
# View trace
npx playwright show-trace test-results/[trace].zip
Cypress
# Traces are auto-captured in cypress/videos/
# Screenshots in cypress/screenshots/
Mode 5: generate - Test Scaffolding
Generate test files following project patterns.
generate spec <name>
Create a new test spec file with:
- Import statements for the framework
- Describe blocks with page name
- beforeEach with login/navigation
- Empty test stubs for common scenarios
generate page <name>
Create a new page object with:
- Selector constants extracted from the target page component
- Action methods (click, fill, navigate)
- Assertion helpers (expectLoaded, expectError)
Page Object Pattern
// Playwright page object template
import {
Установить sc-e2e в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sc-e2e?
E2E testing workflow supporting Playwright, Cypress, and Selenium. Run, debug, record, trace, generate test scaffolds, and view reports. Use when running browser tests, debugging E2E failures, or generating test scaffolds.
Как установить скилл sc-e2e?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sc-e2e запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This 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…
от Anthropic