Assists with end-to-end testing of web applications using Cypress. Use when writing E2E tests, setting up component testing, configuring CI pipelines with parallelization, or building custom test commands. Trigger words: cypress, e2e testing, end-to-end, cypress run, cy.get, integration testing, browser testing.
Cypress is an end-to-end testing framework for web applications that runs tests directly in the browser for fast, reliable feedback. It provides element selection, network interception, component testing, and CI integration with parallelization and video recording.
data-testid or data-cy attributes with cy.get("[data-testid='submit']") instead of CSS classes or IDs for resilient selectors.cy.get().type(), .click(), .select(), and .check() for user actions, and chain .should() assertions for expected outcomes.cy.intercept() to stub external APIs with fixtures or spy on requests, and cy.wait("@alias") after actions that trigger calls instead of cy.wait(ms).Cypress.Commands.add() for reusable patterns like login, database seeding, and common workflows, with TypeScript declarations for IntelliSense.cy.mount() with framework-specific mounting libraries (@cypress/react, @cypress/vue) to test components in isolation.cypress run --record --key for Cypress Cloud integration with --parallel to split tests across machines, and --browser to specify the browser.cypress.config.ts with baseUrl, viewport dimensions, timeouts, and environment variables.User request: "Add Cypress tests for our e-commerce checkout process"
Actions:
cy.visit("/products") and select a productcy.intercept("POST", "/api/cart") and alias itcy.get("[data-testid='email']").type(...)cy.url().should("include", "/confirmation")Output: A reliable E2E test covering the full checkout flow with stubbed API responses.
User request: "Configure Cypress component testing for our React project"
Actions:
@cypress/react and configure component testing in cypress.config.tscy.mount(<Component />)cy.get().click() and assert DOM changesOutput: Isolated component tests running in a real browser with full Cypress API.
data-testid attributes for test selectors; never rely on CSS classes, text content, or DOM structure.cy.intercept() to stub external APIs; do not let tests depend on third-party service availability.cy.wait("@alias") after actions that trigger API calls; do not use cy.wait(ms) for timing.cy.intercept().--record for test replay, screenshots, and video on failure.npx skills add TerminalSkills/cypress下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer