Skip to content

cypress

Use when working with Cypress for E2E testing, component testing, visual testing, or real-time test runner. Also use when configuring Cypress Cloud, writing custom commands, or debugging test flakiness in Cypress.

ModelSourceCategory
sonnetcoreTesting

Cypress 15.10.0 (February 2026) — JavaScript E2E and component testing framework. Runs directly in the browser. Real-time reloading, time-travel debugging, automatic waiting.

Full Reference

Cypress 15.10.0 (February 2026) — JavaScript E2E and component testing framework. Runs directly in the browser. Real-time reloading, time-travel debugging, automatic waiting.

ItemValue
Current Version15.10.0 (February 2026)
Installnpm install -D cypress
Configcypress.config.ts
Open Runnernpx cypress open
Run Headlessnpx cypress run
Component Testnpx cypress run --component
Node.js20, 22, 24+ (18 and 23 dropped in v15)
Bundled Chromium136.0.7103.149

Load the relevant file for the task at hand:

TaskFile
Install, config, env vars, version migrationreference/installation-and-config.md
describe/it/hooks, retriesreference/test-structure-and-hooks.md
Command chaining, selectors, .within(), retry-abilityreference/commands-and-selectors.md
.should(), .and(), expect callbacksreference/assertions.md
cy.intercept(), stubs, fixtures, route matchingreference/network-interception.md
React/Vue/Angular component mount, cy.mount()reference/component-testing.md
Cypress.Commands.add(), TypeScript typesreference/custom-commands.md
cy.fixture(), cy.task(), test data setupreference/fixtures-and-test-data.md
cy.viewport(), selectFile(), downloadsreference/viewport-and-files.md
cy.session(), loginByApi(), cy.origin() OAuthreference/authentication.md
Cypress Cloud pricing/parallelism, GitHub Actions, Dockerreference/cloud-and-ci.md
Time-travel, cy.pause(), cy.debug(), flaky test diagnosisreference/debugging.md
Error messages and fixesreference/errors.md
MistakeFix
Using async/await with Cypress commandsCommands are enqueued, not Promises. Chain with .then()
Storing command results in variablesUse .then() or .as() aliases
Using cy.wait(5000) for timingUse cy.intercept() + cy.wait("@alias") instead
Returning values from .then().then() yields to next command — doesn’t return to outer scope
Using Cypress.env() in v15.10+Deprecated; migrate to cy.env() / Cypress.expose() before v16
Not using data-cy attributesBrittle selectors break on CSS/structure changes
Using cy.route()Removed in Cypress 12. Use cy.intercept()
Registering cy.intercept() after the triggering actionRegister BEFORE the action that fires the request