agentleFS
dtsongdtsong/agentic-council/skills/craftsman-e2e-testing/SKILL.md

e2e-testing

Skill0 starsChanged 6 months agoApache-2.0View on GitHub

Use when designing end-to-end test suites, visual regression testing, or cross-browser test strategies. Covers Playwright/Cypress test architecture, page object patterns, test data management, visual snapshot comparison, cross-browser matrix, and CI integration. Do not use for unit/integration test strategy (use testing-strategy) or code pattern audit (use pattern-analysis).

48 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use swift-protocol-di-testing, content-hash-cache-pattern and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • InfopibeSkill

    swift-protocol-di-testing

    Protocol-based dependency injection for testable Swift code — mock file system, network, and external APIs using focused protocols and Swift Testing.

    Also in 8 projects that use this

  • InfopibeSkill

    content-hash-cache-pattern

    Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

    Also in 8 projects that use this

  • saxon-ySkill

    configure-ecc

    Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.

    Also in 7 projects that use this

  • +9 more from Infopibe

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No user-provided values are used in commands or file paths.

    line 38
  2. Distinctive:

    Document known browser-specific workarounds and their tests.

    line 82

“Common” is measured: kept by at least 6 in 10 of the 23 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

E2E Testing

Purpose

Design end-to-end test suites that validate critical user journeys across the full stack, catch visual regressions, and ensure cross-browser compatibility with efficient CI execution.

Scope Constraints

Analyzes application architecture and existing test infrastructure to design E2E test strategy. Does not execute tests or modify application code. Does not set up CI pipelines (hand off to operator/deployment-plan).

Inputs

  • Application type and tech stack (SPA, SSR, mobile web)
  • Critical user journeys to cover
  • Current E2E framework in use, if any (Playwright, Cypress, Selenium)
  • CI environment constraints (runner OS, parallelism, time budget)
  • Browser/device matrix requirements

Input Sanitization

No user-provided values are used in commands or file paths. All inputs are treated as read-only analysis targets.

Procedure

Progress Checklist

  • Step 1: Define test scope and critical paths
  • Step 2: Design test architecture
  • Step 3: Plan visual regression strategy
  • Step 4: Configure cross-browser matrix
  • Step 5: Design test data management
  • Step 6: Plan CI integration

Step 1: Define Test Scope and Critical Paths

  • Identify critical user journeys (auth, core workflows, payment, onboarding).
  • Prioritize by business impact and failure cost.
  • Define smoke test subset for deploy gates (target <2 min).
  • Map which journeys need full E2E vs can rely on integration tests.
  • Set coverage target: aim for 100% of critical paths, not 100% of features.

Step 2: Design Test Architecture

  • Recommend framework: Playwright for multi-browser/API testing, Cypress for single-browser simplicity.
  • Define page object model or component abstraction pattern.
  • Establish test file organization: by feature, by journey, or by page.
  • Specify selector strategy: data-testid attributes over CSS/XPath.
  • Design test isolation: each test independent, no shared state between tests.
  • Define retry and timeout strategy per test category.

Step 3: Plan Visual Regression Strategy

  • Select visual comparison approach: pixel diff, perceptual diff, or DOM snapshot.
  • Define baseline management: where snapshots are stored, how updates are approved.
  • Specify viewport sizes for visual snapshots (mobile, tablet, desktop).
  • Set diff thresholds to avoid false positives (anti-aliasing, font rendering).
  • Plan for dynamic content exclusion (timestamps, avatars, ads).
  • Recommend tooling: Playwright visual comparisons, Percy, Chromatic, or Argos.

Step 4: Configure Cross-Browser Matrix

  • Define browser matrix: Chromium, Firefox, WebKit at minimum.
  • Identify browser-specific features that need targeted tests.
  • Set mobile emulation profiles (viewport, user agent, touch events).
  • Plan matrix reduction: full matrix on main branch, reduced on PRs.
  • Document known browser-specific workarounds and their tests.

Step 5: Design Test Data Management

  • Define test data strategy: seeded database, API fixtures, or mock services.
  • Plan database reset approach per test or per suite.
  • Design factory patterns for test entity creation.
  • Specify authentication shortcuts (API login vs UI login).
  • Identify external service dependencies and stub/mock strategy.
  • Plan for test data isolation in parallel execution.

Step 6: Plan CI Integration

  • Define test sharding strategy for parallel execution.
  • Set test timeout budgets: smoke <2 min, full suite <15 min.
  • Plan artifact collection: screenshots, videos, traces on failure.
  • Design retry strategy for flaky test mitigation (max 2 retries).
  • Define quality gates: block merge on smoke failure, warn on full suite.
  • Plan test result reporting and trend tracking.

Compaction resilience: If context was lost, re-read the Inputs section to identify the application under test, check the Progress Checklist for completed steps, then resume from the earliest incomplete step.

Output Format

E2E Test Plan

JourneyPriorityTestsFrameworkBrowser MatrixData Strategy
Auth flowP0 - Smoke5PlaywrightChromium, Firefox, WebKitAPI fixtures
CheckoutP0 - Smoke8.........
DashboardP1 - Full12.........

CI Execution Plan

GateTestsParallelismTime BudgetTrigger
PR smoke153 shards<2 minEvery PR
Full suite806 shards<15 minMain branch
Visual regression302 shards<5 minPR + Main

Handoff

  • Hand off to testing-strategy for unit/integration test layer design.
  • Hand off to operator/deployment-plan for CI pipeline implementation.
  • Hand off to advocate/interaction-design for identifying testable interaction states.

Quality Checks

  • Critical user journeys identified and prioritized
  • Page object or abstraction pattern defined
  • Selector strategy uses stable test attributes
  • Visual regression baseline and threshold strategy documented
  • Cross-browser matrix defined with reduction strategy for PRs
  • Test data management ensures isolation in parallel runs
  • CI time budgets specified for each gate
  • Flaky test mitigation strategy documented

Evolution Notes

<!-- Observations appended after each use -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.