e2e-testing
Skill59 starsChanged 2 months agoMITView on GitHub
Build and keep end-to-end suites that are worth their runtime — which journeys belong at this level, selectors that survive refactors, waiting on state instead of sleeping, per-spec data isolation, and flake triage that finds the cause. Use when adding or repairing an e2e suite, when specs are slow or intermittently red, or when deciding whether a case belongs here at all. Not for one-off checking that a change renders, not for unit or integration tests, and not for load testing.
48 other projects use a version of this.
Adopted by
Most recently taken up by
- Lukk17/agent-standardstheir own version, first seen Oct 5, 2026
- CrowdStrike/foundry-skillstheir own version, first seen Oct 1, 2026
- philtzjp/skillstheir own version, first seen Sep 30, 2026
- Cure-Consulting-Group/ProductEngineeringSkillstheir own version, first seen Sep 28, 2026
- mthines/agent-skillstheir own version, first seen Sep 25, 2026
- HACK-WU/skillstheir own version, first seen Sep 23, 2026
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.
InfopibeSkillswift-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
InfopibeSkillcontent-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-ySkillconfigure-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
Other versions48 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 48
- xu-xiang/everything-claude-code-zh★ 2ksame name
- nodetool-ai/nodetool★ 551same name
- ai-dashboad/flutter-skill★ 384same name
- loulanyue/awesome-claude-notes★ 272same name
- tpavanipradeep/everything-claude-code★ 134same name
- templetongroup/radiant★ 113same name
- cohen-liel/hivemind★ 110same name
- Jamkris/everything-gemini-code★ 87same name
- JasonxzWen/harness-hub★ 71same name
- drvoss/everything-copilot-cli★ 47same name
38 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository79 other files it gives its agents.
- agent-dispatcherSkill
- agent-designSkill
- agent-evalsSkill
- context-engineeringSkill
- llm-observabilitySkill
- mcp-designSkill
- memory-designSkill
- model-routingSkill
- prompt-engineeringSkill
- prompt-injection-defenseSkill
- retrieval-ragSkill
- structured-outputSkill
- tool-designSkill
- api-contract-verificationSkill
- api-designSkill
- authenticationSkill
- authorizationSkill
- background-jobsSkill
- cachingSkill
- idempotency-and-retriesSkill
- webhooksSkill
- database-migration-verificationSkill
- data-integritySkill
- data-pipelinesSkill
- data-qualitySkill
- migrationsSkill
- postgresSkill
- query-optimizationSkill
- schema-designSkill
- accessibilitySkill
- accessibility-verificationSkill
- design-systemsSkill
- design-to-codeSkill
- frontend-designSkill
- motion-designSkill
- responsive-designSkill
- ui-auditSkill
- ux-writingSkill
- ci-cdSkill
- deploymentSkill
- dockerSkill
- github-actionsSkill
- incident-responseSkill
- observabilitySkill
- release-verificationSkill
- rollbackSkill
- component-architectureSkill
- frontend-performanceSkill
- shadcn-uiSkill
- stack-detectionSkill
- tailwindSkill
- visual-verificationSkill
- competitive-analysisSkill
- copywritingSkill
- data-analysisSkill
- deep-researchSkill
- documentation-verificationSkill
- positioningSkill
- seoSkill
- source-evaluationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 23 edited versions we read keep these.
3
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
- Distinctive: line 25
If a unit or integration test can observe the same failure, it belongs there — cheaper, faster, and it names the cause instead of the …
- Distinctive: line 41
Wait for states, never for durations: Wait for the element to be visible and enabled, for the request to settle, for the URL or the …
- Distinctive: line 62
Prove stability before believing it: Run the suite twice back to back on the same build, and once with spec order shuffled or parallelism …
“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.
Files
End-to-end testing
The end-to-end level is the most expensive coverage available and the only level that can prove a journey holds together. Suites die when those two facts are confused: everything gets tested here, the suite gets slow and flaky, reruns become routine, and a red run stops meaning anything.
A suite whose failures are ignored is worse than no suite — it costs runtime and provides a false signal.
When this fires
Creating, extending, triaging or pruning an automated end-to-end suite. It does not fire for
manually confirming that a change renders and works (browser-verification), nor for coverage that
a unit or integration test could hold (test-design).
Procedure
- Admit a journey only if it loses its meaning at a lower level. Signup through first use; add to cart through payment confirmation; a permission boundary spanning UI, API and database. If a unit or integration test can observe the same failure, it belongs there — cheaper, faster, and it names the cause instead of the symptom. Validation-message wording, per-field rules and error formatting do not belong here.
- One spec is one journey with one reason to fail. A spec that walks six unrelated features tells you only that one of six broke, and it breaks six times as often.
- Set up state through the API or a fixture, and assert through the UI. Driving the UI to create preconditions triples the runtime and makes every spec fail whenever an unrelated screen changes. The journey under test is the part you click.
- Log in once, not per spec. Authenticate through an API call or a seeded session/storage state and reuse it. The login form itself is one spec's journey, not every spec's preamble.
- Give every spec its own data. A unique account, tenant or record per run, created by the spec and torn down or left disposable. Shared seed data makes specs order-dependent and turns parallel execution into cross-talk. Never rely on a record another spec created.
- Select by role and accessible name, or by a dedicated test id. In that order. CSS class
chains,
nth-childand user-visible copy all break on changes that break nothing real — and role-based selection tests something true about the page while it does it. - Wait for states, never for durations. Wait for the element to be visible and enabled, for the request to settle, for the URL or the rendered text to change. Use the framework's retrying assertions with an explicit timeout. A fixed sleep is either slower than necessary or shorter than reality, usually both on the same day.
- Assert something a user could see. Text on the screen, the URL, a value in a field, an item that disappeared. Asserting on a network call or on internal state is an integration test wearing a browser.
- Pin the environment. A named build, seeded data, a fixed viewport, timezone and locale, and animations reduced. These are the four things that differ between a laptop and CI. Never point the suite at production — it creates real records, sends real mail and can touch real people; that is outward-facing, so stop and ask, and use a disposable environment instead.
- Capture the artifact on failure — trace, video, screenshot, console log, the failing selector. A failure with no artifact costs a full reproduction cycle; with one, triage is usually a minute.
- Allow at most one retry, and treat a pass-on-retry as a failure to investigate, not a pass. Record which specs needed a retry, because that record is the flake list.
- Triage each flake to a cause before touching it. Four causes, four different fixes: a race in the test (wait on the right state), a race in the application (a real bug — fix the app, not the wait), shared or leaked state (isolate), or an unstable dependency (stub it at the network boundary, or drop the journey). "Fixed" by adding a sleep is not fixed; it is a longer suite with the same defect.
- Prove stability before believing it. Run the suite twice back to back on the same build, and once with spec order shuffled or parallelism increased. Green once is not green.
- Prune on evidence. For a suite that hurts, measure: runtime per spec, failure history, how often a red run found a real defect. Quarantine anything unfixable with an owner and a date, and propose deletions with the numbers attached. Deleting specs removes someone's coverage — ask before removing them, and never quarantine as a way of silencing a real failure.
Checklist
- Every spec is a journey that no lower level could observe
- One journey per spec, one reason to fail
- Preconditions created by API or fixture, not by clicking
- Authentication seeded once and reused
- Data unique per spec and per run; no cross-spec dependency
- Selectors are role or test-id based, not classes, positions or copy
- No fixed sleeps anywhere; every wait names a state
- Assertions are on user-visible outcomes
- Environment pinned: build, seed, viewport, timezone, locale, animations
- Traces or screenshots retained on failure
- Retries capped at one and every retry recorded
- Suite run twice and shuffled before being called stable
- Quarantine list has owners and dates; nothing silenced without one
Failure handling
- Passes locally, fails in CI — compare the four usual suspects first: viewport, timezone and locale, animation and network timing, and parallel workers sharing data. Read the trace before changing the test.
- Fails once, passes on rerun — that is a flake, not a pass. Log it and triage it to a cause. Reporting it as green is how a real race reaches production.
- Suite is green but the feature is broken — the coverage is at the wrong level or the assertions are not user-visible. Say which, and fix the level rather than adding more specs.
- A journey cannot be automated (third-party payment page, real email or SMS, a device capability) — stub at the network boundary if that keeps the journey meaningful, otherwise state plainly that this path is manually checked, by whom and when. Do not simulate it and call it covered.
- Browser or runner unavailable — say the end-to-end level could not be run, name what was checked instead, and do not describe the journeys as passing.
- Under pressure to skip a failing spec to unblock a release — that is a release decision, not a test change. Report what the spec covers and what shipping without it risks, and let the owner decide.
Evidence to report
The journeys covered and, explicitly, the ones that are not; the command that runs the suite with its real output; the result of two consecutive runs and one shuffled run; traces or screenshots for every failure; the retry and quarantine list with owners and dates; and the environment the suite ran against, named. A suite described as passing without a second run and an environment name is a single sample.
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
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.

