e2e-test-review
БесплатноБез исполняемых скриптовНе проверенReview Cypress E2E spec files for Metabase conventions, common gotchas, and flakiness/performance issues. Use when reviewing pull requests or diffs containing…
от metabase★ 50 742 звезды на GitHubОб этом скилле
E2E Test Review Skill
@./../_shared/cypress-conventions.md
Review mode detection
Before starting, determine which mode to use:
- PR review mode — if
mcp__github__create_pending_pull_request_reviewis available, post issues as one cohesive pending review. - Local review mode — if not, output a numbered list in the conversation.
Review process
- Detect mode.
- Read the changed spec end-to-end first to understand intent. Don't review line-by-line cold.
- (Conditional) If after reading the spec a specific assertion or selector is ambiguous — you can't tell if it's the right anchor, or whether the test actually verifies what its title claims — briefly grep the related component for the test ID / role / text. Don't read components by default. Only do this when there's a real signal of confusion in the spec.
- Scan against the checklist + pattern table below.
- Number all issues sequentially. Skip nits — only flag what's worth fixing.
- Always finish with the honest e2e-vs-unit breakdown (see the section of that name below). It's part of every report, not an optional add-on.
When to hand off instead of review
If the spec references an issue (metabase#NNNNN) and the user wants to fix flakiness or assess whether the test still reproduces the original bug, that's outside the review skill's scope. Point them at the dedicated flake-fixing workflow, which knows to fetch the issue and the resolving PR's diff. The review skill stays focused on "is this test well-written and conformant" — it doesn't fetch external issue context by default.
Review checklist
The checklist mirrors the order of the conventions file. Items marked (lint) are also caught by ESLint — flag only when you see them slip through (helper-wrapped, lint-disabled, etc.).
File and naming
- Spec lives in
e2e/test/scenarios/<area>/ - Extension is
.cy.spec.ts(preferred) or.cy.spec.js— don't flag.json existing files -
describeblock names the area when relevant:"area > sub-area > feature (#issue-number)" - No leftover
.onlyor.skip(pre-commit hook should catch, but flag it if it slips through)
Helpers and constants
- Helpers accessed via
const { H } = cy;— no direct imports frome2e/support/helpers(lint) - Sample DB schema imported from
cypress_sample_database - Instance data IDs imported from
cypress_sample_instance_data - No hardcoded numeric IDs anywhere — including for entities the test creates itself. Capture from the create response or alias the intercept.
- Existing navigation helpers used (
H.openOrdersTable,H.visitDashboard(id), etc.) instead of rawcy.visit()chains
Shared helper changes
When a diff changes a shared helper, inspect its callers rather than reviewing the helper in isolation:
- Default behavior changes are justified for every caller; otherwise the new behavior is explicit and opt-in.
- Repeated calls with identical and different arguments are safe.
- Mandatory network waits account for cache hits, request deduplication, unchanged query arguments, and conditional fetches where no request occurs.
- Intercepts and aliases cannot accumulate, collide, or resolve against the wrong request.
- Verification covers both an affected caller and a representative caller using unchanged defaults.
Selectors
- Prefers a11y queries (
findByRole,findByLabelText) overfindByText -
findByTextonly when an a11y query doesn't fit -
findByTestIdfordata-testidattributes (never rawcy.get("[data-testid='...']")) - No CSS class names — especially generated ones from CSS modules/Mantine (
.m_87cf2631) - No ad-hoc CSS attribute selectors in specs or new helpers (the visualization helpers in
e2e/support/helpers/e2e-visual-tests-helpers.jsare the only intentional exception — see "What NOT to flag") - No XPath
- Positional selectors (
.eq(),.first(),.last(),:nth-child) only when the order is the assertion itself, or guarded by a length assertion immediately before. (lint catches.last()and.eq(<negative); the rest is on the reviewer) - Text selectors are scoped — top-level
cy.findByText(...)/cy.contains(...)init/before/beforeEachis forbidden. Must be scoped viacy.contains(selector, text),cy.someQuery().findByText(...), orsomeQuery().within(...). (lint catches the top-level case ONLY — it does NOT catch helper-wrapped queries; manually scan helper bodies)
Setup and isolation
- State setup uses
cy.request/ API helpers, not the UI -
H.restore()and sign-in are inbeforeEach, notbefore - Each
it()is independently runnable — noit()depends on priorit()state - When both appear,
H.restore()precedesH.resetTestTable()(lint)
Waits and timing
- No numeric
cy.wait(ms)— even small ones -
cy.intercept()defi
Установить e2e-test-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepBashGlobFAQ
Что делает скилл e2e-test-review?
Review Cypress E2E spec files for Metabase conventions, common gotchas, and flakiness/performance issues. Use when reviewing pull requests or diffs containing Cypress spec files in e2e/test/scenarios/.
Как установить скилл e2e-test-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл e2e-test-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic