quality-e2e-testing
Use when the user asks about end to end tests with Playwright or Cypress, e2e strategy, which flows to cover, flaky e2e tests, quarantine, test data, mocking…
от j4flmao★ 47 звёзд на GitHub
Установить quality-e2e-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Quality E2E Testing Strategy
Purpose
Use end-to-end tests where only they can give confidence — critical user journeys across the real stack — and keep them deterministic, fast enough to gate merges, and trusted. Everything that can be verified lower in the pyramid (unit, integration, contract) is tested there instead.
Agent Protocol
Trigger
"e2e strategy", "what to cover with e2e", "flaky tests", "quarantine", "e2e test data", "mock vs real backend", "e2e CI gate", "slow e2e suite", "network throttling test", "a11y in e2e".
Input Context
- Architecture (SPA/SSR, services, third parties) and environments available.
- Current suite size, duration, flake rate, and what failures escaped to production.
- Release process (trunk-based, release trains) and who owns the suite.
Output Artifact
E2E strategy: journey inventory, environment/data plan, flakiness policy, CI gating rules.
Response Format
Journeys (tier 1 = gate): {journey -> why e2e}
Environment: {ephemeral preview | shared staging | prod smoke}
Data: {API seeding per test | snapshot restore} ; third parties: {mocked at network | sandbox}
Flake policy: {retry=1 in CI, quarantine after N flaky runs, owner + SLA}
CI: {PR: tier 1 sharded <= X min; nightly: full + cross-browser}
Metrics: {flake rate, duration P50/P90, escaped defects}
What Belongs in E2E
| Test it E2E | Test it lower |
|---|---|
| Sign-up/login, checkout/payment, core create-edit-share flow | Validation rules, formatting, edge cases (unit) |
| Flows crossing several services and the browser | Service-to-service schemas (contract tests) |
| Auth/session/cookie behaviour, redirects | DB queries and repositories (integration) |
| Critical regressions that escaped before | Visual details (visual tests) |
Rank journeys by business impact × change frequency; tier 1 (gating) usually fits in 10–30 tests.
Environment & Data
| Option | Pros | Cons |
|---|---|---|
| Ephemeral per-PR environment | Isolated, realistic | Infra cost, startup time |
| Shared staging | Cheap | Data collisions, drift, other teams' deploys |
| Local stack (docker compose) in CI | Deterministic | Less realistic infra |
| Production smoke (read-only or test tenant) | Real config | Must never mutate real data |
Rules:
- Each test creates the data it needs via API/fixtures with unique identifiers; never depend on another test's data.
- Third parties (payments, email, SMS) via sandbox accounts or network-level mocks; keep one nightly run against sandboxes to catch contract drift.
- Reset or isolate by tenant/user rather than wiping shared databases mid-run.
Network Control
- Stub third-party and non-deterministic endpoints (
page.routein Playwright,cy.interceptin Cypress). - Test degraded conditions deliberately: slow responses (delay in route handler), offline (
context.setOffline(true)), error codes (500/429) to verify user-facing error states. - CPU/network throttling via Chrome DevTools Protocol works only in Chromium; treat it as a Chromium-only check.
Accessibility Checks in E2E
import { test, expect } from '@playwright/test';
import AxeBuilder from '@axe-core/playwright';
test('checkout page has no detectable WCAG A/AA violations', async ({ page }) => {
await page.goto('/checkout');
const results = await new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa']).analyze();
expect(results.violations).toEqual([]);
});
Automated scans catch only part of accessibility issues; keep manual keyboard/screen-reader checks for key flows.
Flakiness Policy
| Practice | Rule |
|---|---|
| Retries | At most 1–2 in CI, never locally; every "passed on retry" is recorded as flaky |
| Quarantine | Test flaky N times in a window → tagged @quarantine, excluded from the gate, ticket with owner and fix SLA |
| Root causes | Hard waits, shared data, order dependence, animation timing, unmocked third parties, clock/timezone |
| Evidence | Traces/videos/screenshots on failure uploaded as CI artifacts |
| Budget | Track flake rate per test; a quarantined test that is not fixed by SLA is deleted or rewritten lower in the pyramid |
Common fixes: web-first assertions instead of sleeps; wait for the specific network response (page.waitForResponse); disable animations in test builds; freeze time (page.clock in Playwright) for date-dependent UI.
CI Gating
PR / merge queue: tier-1 journeys, 1 browser, sharded, target ≤ ~15 min, blocks merge
Main post-merge: full suite, main browsers
Nightly: full suite × browsers/devices + third-party sandboxes + a11y scans
Post-deploy: production smoke (read-only / test tenant), triggers rollback alert
Metrics
- Suite duration (P50/P90) and queue time.
- Flake rate = runs passing only on retry ÷ total runs, per test.
- Escaped defects: production bugs in flows that have E2E coverage (indicates weak assertions).
- Coverage of tier-1 journey invento
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/anti-patterns.md
- references/ci-cd-integration.md
- references/cypress-guide.md
- references/e2e-testing-advanced.md
- references/e2e-testing-fundamentals.md
- references/flakiness-management.md
- references/flaky-test-mitigation.md
- references/framework-selection.md
- references/merged-e2e-testing.md
- references/merged-frontend-playwright-testing.md
- references/merged-qa-e2e-playwright.md
- references/playwright-guide.md
- references/playwright-mocking.md
- references/test-patterns.md
- references/visual-regression.md
FAQ
Что делает скилл quality-e2e-testing?
Use when the user asks about end to end tests with Playwright or Cypress, e2e strategy, which flows to cover, flaky e2e tests, quarantine, test data, mocking the backend or gating CI. Produces journey tiers, environment and data plan, flake policy and suite setup. Not for visual baselines (use quality-visual-testing) or API contracts (use quality-contract-testing).
Как установить скилл quality-e2e-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл quality-e2e-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…