This skill teaches you Cypress patterns that actually prevent flaky tests: data-testid selectors instead of brittle CSS, cy.intercept for network control, cy.session for fast auth, and deterministic waits instead of sleeps. It covers both E2E and component testing, with practical CI setup including retries and artifact management. The anti-patterns section is honest about what breaks in production (deep selectors, test order dependencies, mixing stubs with real backend calls). If you're debugging flaky UI tests or setting up browser automation for the first time, the troubleshooting guide alone is worth the tokens. Includes parallelization guidance for Cypress Cloud when test runtime becomes a bottleneck.

skills.sh installs
664
GitHub stars
79
last updated
Aug 21, 2026

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill cypress --agent claude-code

Installs into .claude/skills of the current project.

Files

Cypress (E2E + Component Testing)

Overview

Cypress runs browser automation with first-class network control, time-travel debugging, and a strong local dev workflow. Use it for critical path E2E tests and for component tests when browser-level rendering matters.

Quick Start

Install and open

npm i -D cypress
npx cypress open

Minimal spec

// cypress/e2e/health.cy.ts
describe("health", () => {
  it("loads", () => {
    cy.visit("/");
    cy.contains("Hello").should("be.visible");
  });
});

Core Patterns

1) Stable selectors

Prefer data-testid (or data-cy) attributes for selectors. Avoid brittle CSS chains and text-only selectors for critical interactions.

<button data-testid="save-user">Save</button>
cy.get('[data-testid="save-user"]').click();

2) Deterministic waiting (avoid fixed sleeps)

Wait on app-visible conditions or network aliases rather than cy.wait(1000).

cy.intercept("GET", "/api/users/*").as("getUser");
cy.visit("/users/1");
cy.wait("@getUser");
cy.get('[data-testid="user-email"]').should("not.be.empty");

3) Network control with cy.intercept

Sponsors

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Categories
Frontend Development, Backend & APIs, Testing & QA
First seen
Jun 3, 2026

More from bobmatnyc/claude-mpm-skills

All 158
1proffesor-for-testing avatarcompatibility-testingproffesor-for-testing/agentic-qeCross-browser, cross-platform, and cross-device compatibility testing ensuring consistent experience across environments. Use when validating browser support, t654skills.sh installs
2fugazi avatarplaywright-e2e-testingfugazi/test-automation-skills-agentsAuthor and maintain versioned Playwright (@playwright/test) TypeScript UI specs for browser user flows. Use when asked to create, run, debug, or refactor E2E te634skills.sh installs
3patternsdev avatarprovider-patternpatternsdev/skillsTeaches the provider pattern for sharing data across component trees. Use when multiple nested components need access to the same data and prop drilling becomes634skills.sh installs
4astronomer avatarairflow-pluginsastronomer/agentsBuilds Airflow 3.1+ plugins that embed FastAPI apps, custom UI pages, React components, middleware, macros, and operator links directly into the Airflow UI. Use622skills.sh installs
5alirezarezvani avataremail-template-builderalirezarezvani/claude-skillsBuild complete transactional email systems: React Email templates, provider integration (Resend, Postmark, SendGrid, AWS SES), preview server, i18n support, dar613skills.sh installs
6liuchiawei avatarnext-intl-app-routerliuchiawei/agent-skillsConfigures and uses next-intl for Next.js App Router with locale-based routing. Use when adding or changing i18n, locale routing, translations, next-intl plugin611skills.sh installs