dnyoussef/context-cascade/e2e-test
Claude Code and agent skill by dnyoussef/context-cascade
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
End-to-end testing workflow for validating complete user journeys through web applications using claude-in-chrome MCP. Specializes in test assertions, suite organization, evidence collection, and pass/fail reporting.
Install
npx vskill@latest install dnyoussef/context-cascade/e2e-testSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as dnyoussef/context-cascade/e2e-test.
End-to-End Testing
Kanitsal Cerceve (Evidential Frame Activation)
Kaynak dogrulama modu etkin.
[assert|neutral] Systematic end-to-end testing workflow with assertion framework, evidence collection, and structured reporting [ground:skill-design] [conf:0.95] [state:confirmed]
Overview
End-to-end testing validates complete user journeys through web applications, ensuring that integrated systems work correctly from the user's perspective. This skill builds upon browser-automation but adds formal testing constructs: assertions, test suites, fixtures, and detailed pass/fail reporting.
Philosophy: E2E tests are living documentation of expected user behavior. They must be deterministic, maintainable, and produce actionable failure reports.
Key Differences from browser-automation:
| Aspect | browser-automation | e2e-test | |
|---|---|---|---|
| Primary Goal | Complete workflow tasks | Validate expected behavior | |
| Output | Task completion | Pass/Fail test report | |
| Error Handling | Recover and continue | Fail fast with evidence | |
| Evidence | Optional screenshots | Mandatory assertions + screenshots | |
| Organization | Single workflow | Test suites with fixtures | |
| Cleanup | Best effort | Mandatory teardown |
Value Proposition: Transform manual QA checklists into automated, repeatable test suites that catch regressions before users do.
When to Use This Skill
Primary Use Cases:
- Login/authentication flow validation
- User registration and onboarding verification
- Checkout and payment flow testing
- Form submission with validation rules
- CRUD operations (Create, Read, Update, Delete)
- Multi-step wizard completion
- Cross-page state persistence
- Visual regression detection
Apply When:
- Validating critical user journeys before deployment
- Regression testing after code changes
- Smoke testing production environments
- Acceptance criteria verification
- Visual snapshot comparison needed
Trigger Keywords:
- "e2e test", "end-to-end test"
- "validate user flow", "test the journey"
- "check if login works", "verify checkout"
- "regression test", "smoke test"
- "acceptance test"
When NOT to Use This Skill
- Unit testing (use testing frameworks directly)
- API testing without UI (use API testing tools)
- Performance/load testing (use
delivery-essential-commands-load-test) - Single-action validation (use browser-automation)
- Non-web applications (mobile, desktop)
- Static content verification (use visual tools)
Core Principles
Principle 1: Assertion-First Design
Mandate: Every test step MUST have explicit success/failure criteria defined upfront.
Rationale: Tests without assertions are just scripts. Explicit assertions make failures debuggable and intentions clear.
In Practice:
- Define expected outcomes before execution
- Use multiple assertion types (DOM, visual, URL, text)
- Fail immediately on assertion failure
- Capture evidence at assertion points
Principle 2: Test Suite Organization
Mandate: Group related tests into suites with shared setup/teardown.
Rationale: Test organization reduces duplication, improves maintainability, and enables selective test runs.
In Practice:
- Suite = collection of related test cases
- Fixtures = reusable setup/teardown logic
- Each test case is independent (no cross-test dependencies)
- Clear naming:
suite_feature_scenario
Principle 3: Evidence-Based Verdicts
Mandate: Every test result MUST include visual evidence (screenshots) at assertion points.
Rationale: Screenshots provide ground truth for debugging failures and serve as visual documentation.
In Practice:
- Screenshot before and after critical actions
- Capture DOM state at assertion points
- Store evidence with test results
- Enable visual comparison for regression detection
Principle 4: Deterministic Execution
Mandate: Tests must produce identical results on identical inputs.
Rationale: Flaky tests erode confidence. Determinism enables reliable CI/CD integration.
In Practice:
- Explicit waits over implicit timeouts
- Stable element selection (data-testid preferred)
- Isolated test data (fixtures create/destroy)
- Retry logic only for infrastructure issues
Principle 5: Actionable Failure Reports
Mandate: Failed tests MUST produce reports that pinpoint the failure without additional investigation.
Rationale: Time-to-fix correlates with failure report quality. Good reports = faster debugging.
In Practice:
- Include: step that failed, expected vs actual, screenshot
- Show assertion context (what was being verified)
- Provide DOM snapshot at failure point
- Link to relevant code/documentation
Test Framework Concepts
Test Suite Structure
Assertion Types
| Type | Syntax | Use Case | |
|---|---|---|---|
| element_exists | assert_exists(selector) | Verify element present in DOM | |
| element_visible | assert_visible(selector) | Verify element is visible | |
| text_equals | assert_text(selector, expected) | Exact text match | |
| text_contains | assert_contains(selector, substring) | Partial text match | |
| url_equals | assert_url(expected_url) | Exact URL match | |
| url_contains | assert_url_contains(substring) | URL contains path | |
| attribute_equals | assert_attr(selector, attr, value) | HTML attribute check | |
| element_count | assert_count(selector, count) | Number of matching elements | |
| visual_match | assert_visual(baseline_image) | Screenshot comparison | |
| form_value | assert_value(selector, expected) | Form input value |
Assertion Implementation
Test Result Structure
Failure Report Structure
Main Workflow
Phase 1: Test Planning (via Sequential-Thinking)
Purpose: Decompose user journey into testable steps with explicit assertions.
Process:
- Invoke sequential-thinking MCP
- Break down user journey into atomic steps
- Define assertion for each step
- Identify fixture requirements (setup/teardown)
- Plan evidence collection points
- Define success/failure thresholds
Input Contract:
Output Contract:
Phase 2: Setup (Fixtures)
Purpose: Establish test prerequisites and browser state.
Process:
- Get tab context (tabs_context_mcp)
- Create dedicated test tab (tabs_create_mcp)
- Execute fixture setup actions
- Navigate to starting URL
- Take initial screenshot (baseline)
- Verify preconditions met
Fixture Types:
| Type | Purpose | Example | |
|---|---|---|---|
| data | Create test data | Create user, seed products | |
| state | Set browser state | Login, set cookies | |
| navigation | Establish position | Navigate to starting page | |
| cleanup | Clear residual state | Clear localStorage, cookies |
Phase 3: Test Execution
Purpose: Execute test steps with assertion verification at each point.
Process:
Evidence Collection Points:
- Before first action (initial state)
- After navigation changes
- Before and after form submissions
- At every assertion point
- On failure (mandatory)
Phase 4: Assertion Verification
Purpose: Validate expected vs actual state at each checkpoint.
Assertion Execution:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tooling/e2e-test/SKILL.md
Popularity
- Repository stars
- 32
- Repository forks
- 6
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 5 Aug 2026, 3 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dnyoussef/context-cascade/e2e-test)