e2e-testing
Skill47 starsChanged 4 months agoMITView on GitHub
Use when you need end-to-end tests for critical user flows that unit tests can't cover — scaffolds Playwright/Cypress tests from the happy path through edge cases.
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
- nahid-sparktales/agent-dispatcher★ 59same 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 repository111 other files it gives its agents.
- AGENTS.mdAGENTS.md
- COPILOT-INSTRUCTIONS.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- ai-visibilitySkill
- content-strategySkill
- seoSkill
- actions-debuggingSkill
- agentic-engineeringSkill
- autopilot-patternsSkill
- background-agentSkill
- context-primeSkill
- copilot-memorySkill
- cross-session-memorySkill
- ecosystem-intakeSkill
- fleet-parallelSkill
- github-code-searchSkill
- github-codespaces-efficiencySkill
- github-issue-triageSkill
- github-pr-workflowSkill
- ide-switchingSkill
- knowledge-curatorSkill
- mcp-builderSkill
- mcp-ecosystemSkill
- multi-model-strategySkill
- plan-mode-masterySkill
- scope-guardSkill
- session-managementSkill
- stack-detectorSkill
- sub-agent-sandboxingSkill
- task-intake-routerSkill
- team-plannerSkill
- token-cost-optimizerSkill
- api-and-interface-designSkill
- code-reviewSkill
- context-engineeringSkill
- cpp-debuggingSkill
- deprecation-and-migrationSkill
- diagnoseSkill
- fix-build-errorsSkill
- fix-github-issueSkill
- implementSkill
- improve-codebase-architectureSkill
- nestjs-prismaSkill
- nextjs-prismaSkill
- performance-optimizationSkill
- pr-multi-perspective-reviewSkill
- prototypeSkill
- react-vitestSkill
- receiving-code-reviewSkill
- refactor-cleanSkill
- reviewSkill
- skill-creatorSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- zoom-outSkill
- add-to-changelogSkill
- api-documentationSkill
- architecture-decisionsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 23 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
After major refactors that may break integration between components
- Distinctive: line 15
Before releases to verify the full system works together
- Distinctive: line 16
When unit tests pass but users report bugs in real workflows
- Distinctive: line 23
Test data and fixtures available or can be seeded
- Distinctive: line 206
Use page objects or fixtures to reduce duplication across tests
- Distinctive: line 207
Run E2E tests in CI but not on every commit — they're slower than unit tests
- Very specific: line 208
Use test.beforeAll to seed data and test.afterAll to clean up
- Very specific: line 209
Prefer CSS selectors or test IDs (data-testid) over fragile XPath or text selectors
- Very specific: line 210
If an E2E test is flaky, add explicit waits (waitForSelector) instead of arbitrary delays
- Very specific: line 211
Use the task agent to run E2E suites — it keeps your context clean and summarizes results
“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
When to Use
- Validating critical user journeys work from start to finish
- After major refactors that may break integration between components
- Before releases to verify the full system works together
- When unit tests pass but users report bugs in real workflows
- Setting up regression tests for frequently broken features
Prerequisites
- Application can be started in a test/dev environment
- E2E test framework installed (Playwright, Cypress, Selenium, etc.)
- Test data and fixtures available or can be seeded
- Understanding of the most important user workflows
Workflow
1. Identify Critical User Paths
Map the workflows that must always work:
# Find existing E2E tests to understand what's covered
glob pattern="**/*.e2e.*"
glob pattern="**/e2e/**/*.{ts,js}"
glob pattern="**/cypress/**/*.{ts,js}"
glob pattern="**/playwright/**/*.{ts,js}"Prioritize paths by business impact:
| Priority | Path | Example |
| 🔴 P0 | Revenue-critical | Signup → Purchase → Confirmation |
| 🔴 P0 | Authentication | Login → Access protected resource |
| 🟡 P1 | Core features | Create item → Edit → Delete |
| 🟡 P1 | Data integrity | Import → Transform → Export |
| 🟢 P2 | Secondary flows | Settings → Profile update |
2. Set Up the Test Environment
# Start the application in test mode
$env:NODE_ENV="test"
npm run dev # mode: async, detach: true
# Seed test data
npm run db:seed:test 2>&1
# Verify the app is running
curl -s http://localhost:3000/health3. Write E2E Tests
Playwright example:
// e2e/auth.spec.ts
import { test, expect } from '@playwright/test';
test.describe('Authentication Flow', () => {
test('user can sign up and log in', async ({ page }) => {
// Navigate to signup
await page.goto('/signup');
// Fill the form
await page.fill('[name="email"]', 'test@example.com');
await page.fill('[name="password"]', 'SecurePass123!');
await page.click('button[type="submit"]');
// Verify redirect to dashboard
await expect(page).toHaveURL('/dashboard');
await expect(page.locator('h1')).toContainText('Welcome');
});
test('shows error for invalid credentials', async ({ page }) => {
await page.goto('/login');
await page.fill('[name="email"]', 'wrong@example.com');
await page.fill('[name="password"]', 'wrong');
await page.click('button[type="submit"]');
await expect(page.locator('.error')).toContainText('Invalid credentials');
await expect(page).toHaveURL('/login');
});
});API E2E example:
// e2e/api-workflow.spec.ts
import { test, expect } from '@playwright/test';
test.describe('API CRUD Workflow', () => {
let itemId: string;
test('create → read → update → delete', async ({ request }) => {
// Create
const createRes = await request.post('/api/items', {
data: { name: 'Test Item', price: 29.99 },
});
expect(createRes.status()).toBe(201);
const created = await createRes.json();
itemId = created.id;
// Read
const getRes = await request.get(`/api/items/${itemId}`);
expect(getRes.status()).toBe(200);
expect((await getRes.json()).name).toBe('Test Item');
// Update
const updateRes = await request.put(`/api/items/${itemId}`, {
data: { name: 'Updated Item' },
});
expect(updateRes.status()).toBe(200);
// Delete
const deleteRes = await request.delete(`/api/items/${itemId}`);
expect(deleteRes.status()).toBe(204);
// Verify deleted
const verifyRes = await request.get(`/api/items/${itemId}`);
expect(verifyRes.status()).toBe(404);
});
});4. Run E2E Tests
# Playwright
npx playwright test 2>&1
# Cypress
npx cypress run 2>&1
# With specific test file
npx playwright test e2e/auth.spec.ts 2>&1
# Use task agent for clean outputtask agent_type: "task"
prompt: "Run 'npx playwright test' and report results. Show full output for any failures."5. Debug Failures
# Run with headed browser for visual debugging
npx playwright test --headed --debug e2e/auth.spec.ts
# View trace for failed test
npx playwright show-trace test-results/auth-trace.zip
# Screenshot on failure (auto-configured in playwright.config.ts)6. Maintain Tests
# Find flaky tests (tests that sometimes pass, sometimes fail)
# Run tests multiple times to detect flakiness
npx playwright test --repeat-each=3 2>&1 | Select-String "passed|failed|flaky"
# Find slow tests
npx playwright test --reporter=list 2>&1 | Sort-Object { [int]($_ -split '\s+')[-1] } -Descending | Select-Object -First 10Examples
Setting Up Playwright from Scratch
npm init playwright@latest 2>&1
# Generates: playwright.config.ts, e2e/ directory, package.json scriptsCI Configuration
# .github/workflows/e2e.yml
- name: Run E2E tests
run: |
npm run build
npm start &
npx wait-on http://localhost:3000
npx playwright testTips
- Keep E2E tests focused — test user journeys, not implementation details
- Use page objects or fixtures to reduce duplication across tests
- Run E2E tests in CI but not on every commit — they're slower than unit tests
- Use
test.beforeAllto seed data andtest.afterAllto clean up - Prefer CSS selectors or test IDs (
data-testid) over fragile XPath or text selectors - If an E2E test is flaky, add explicit waits (
waitForSelector) instead of arbitrary delays - Use the
taskagent to run E2E suites — it keeps your context clean and summarizes results - Capture screenshots and traces on failure for faster debugging
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.

