unstale

npm / cypress

cypress

What changed in cypress 4 to 16, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

200 breaking4 security12 deprecations48 new APIs and options12 performance56 behavior and defaults21 tooling199 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

cypress 16237 changes

Breaking changes 140

  • cy.contains() keeps retrying inside .within() when its container is briefly missing, and no longer replaces the usual missing-content message with a TypeError.

    16.2.1release notes

  • cy.fixture() and the fixture property of a cy.intercept() static response now fail if the resolved fixture path is outside fixturesFolder.

    16.2.1release notes

  • Requests to origins that serve only HTTP/2 now fail immediately at the TLS handshake with a network error instead of returning a misleading 403 or hanging; dual-protocol origins are unaffected.

    16.2.1release notes

  • The Cypress.dom.isType() TypeScript declaration was removed because it had no implementation.

    16.2.1release notes

  • cy.request() now reports an invalid encoding error for encoding: false, 0, or an empty string instead of crashing Cypress.

    16.2.1release notes

  • Node code in the config process, including setupNodeEvents, cy.task() handlers, and loaded plugins, now verifies TLS certificates the same way Node does.

    16.2.1release notes

  • .trigger() now rejects an empty event name, and the error displays the passed value instead of a placeholder.

    16.2.1release notes

  • Fails immediately when an intercept alias requests index 0, rather than retrying until timeout.

    16.2.0release notes

  • Pass { hidden: true } to include elements hidden from the accessibility tree.

    16.2.0release notes

  • Now waits for the navigated page to load, yields the window, and fails when the page does not load within the timeout.

    16.2.0release notes

  • Queries requiring a subject now fail immediately with an error naming the command and explaining that it must be chained, instead of retrying until timeout.

    16.2.0release notes

  • Cypress now merges its disabled Chrome features with values supplied in before:browser:launch, rather than silently dropping Cypress's values.

    16.1.0release notes

  • A service worker registered by the site under test can no longer serve its content in place of Cypress's own pages and assets in cypress open.

    16.1.0release notes

  • The result arguments supplied to after:run handlers have a changed shape; update property access in handlers.

    16.0.0upgrade guide

  • The result arguments supplied to after:spec handlers have a changed shape; update property access in handlers.

    16.0.0upgrade guide

  • Aliases are always re-queried, which can change test outcomes when the DOM changes; use a static alias when the value should not be re-queried.

    16.0.0upgrade guide

  • The configuration option was removed; Cypress warns if it remains, and there is no behavior change.

    16.0.0upgrade guiderelease notes

  • The migration-gate configuration option was removed in Cypress 16.0 and is no longer valid.

    16.0.0upgrade guide

  • The minimum supported Angular version for component testing is now 21.

    16.0.0upgrade guide

  • The minimum required Angular version is now 21.0.0; Angular 18, 19, and 20 are no longer supported.

    16.0.0upgrade guiderelease notes

  • Replaced with @angular/platform-browser.

    16.0.0release notes

  • Angular 17 is no longer supported for component testing; the minimum required Angular version is 18.0.0.

    16.0.0upgrade guide

  • Component testing requires Angular 17.2.0 or later.

    16.0.0upgrade guide

  • Removed from cypress/angular.

    16.0.0release notes

  • The event's second argument is now a launchOptions object rather than an array of browser arguments; use launchOptions.args to access arguments.

    4.0.0, 16.0.0upgrade guiderelease notes

  • Starting in Cypress 14, official support covers the latest three major versions of Chrome, Firefox, and Edge.

    16.0.0upgrade guide

  • CoffeeScript support was removed, affecting .coffee specs, support files, and fixtures.

    16.0.0upgrade guide

  • Built-in CoffeeScript support was removed: the default preprocessor no longer bundles coffee-loader or coffeescript, and .coffee is no longer resolved for specs, support files, or fixtures.

    16.0.0upgrade guiderelease notes

  • For Create React App component testing, change the framework option from create-react-app to react after selecting a bundler.

    16.0.0upgrade guide

  • For Vue CLI component testing, change the framework option from vue-cli to vue after selecting a bundler.

    16.0.0upgrade guide

  • This option is no longer supported; use specPattern inside the component configuration object.

    16.0.0upgrade guide

  • Configuration files are required, so configFile false is no longer valid in the module API; JSON config files are also unsupported.

    16.0.0upgrade guide

  • Cookie commands use hostname rather than superdomain by default; pass an explicit domain option when cookies should be shared across subdomains.

    16.0.0upgrade guide

  • Component tests now need a bundler; CRA users must eject to webpack or use vite, and change the framework configuration to react.

    16.0.0upgrade guide

  • Removed; delete .end() calls.

    16.0.0upgrade guiderelease notes

  • Removed; replace calls with cy.task().

    16.0.0upgrade guiderelease notes

  • The result property code was renamed to exitCode; update assertions that read the old property.

    16.0.0upgrade guide

  • Use this command as the replacement for the removed cy.server, cy.route, and Cypress.server.defaults APIs.

    16.0.0upgrade guide

  • A subsequent mount call in the same test removes the previously mounted component from the DOM.

    16.0.0upgrade guide

  • Mounting options no longer accept cssFile, cssFiles, style, styles, stylesheet, or stylesheets; use test-imported CSS or a supportFile for styles.

    16.0.0upgrade guide

  • Angular mounting-option providers are assigned at the module level, so they can override module providers but not providers declared in Component metadata.

    16.0.0upgrade guide

  • Tests interacting with a second origin must use cy.origin() because Cypress no longer injects document.domain into text/html content by default.

    16.0.0upgrade guide

  • readFile is a query and re-reads the file when a later command in the chain fails, retrying until the requested property and assertions pass.

    16.0.0upgrade guide

  • The command was removed; use cy.intercept instead.

    16.0.0upgrade guide

  • The deprecated three-argument signature is no longer supported; use .callsFake(fn) on the stub instead.

    16.0.0upgrade guide

  • CYPRESS_* environment variables populate env only and do not reach Cypress.expose(); pass values with --expose or copy them into config.expose.

    16.0.0upgrade guide

  • The harness is deprecated and is no longer shipped with the Cypress binary.

    16.0.0upgrade guide

  • The npm package is deprecated and unsupported; cypress/angular-zoneless is no longer shipped with the Cypress binary after its functionality merged into cypress/angular.

    16.0.0release notes

  • The temporary Angular 17 test harness is installed as @cypress/angular; update mount imports from cypress/angular.

    16.0.0upgrade guide

  • The package requires zone.js version 0.14.0 or newer for Angular component testing.

    16.0.0upgrade guide

  • The Angular signals test harness has been merged into cypress/angular; migrate imports from cypress/angular-signals.

    16.0.0upgrade guide

  • Cypress Cloud communication verifies certificate authorities and rejects unauthorized calls; networks using a self-signed CA can configure the listed CA environment variables.

    16.0.0upgrade guide

  • The command no longer prints proxy or CYPRESS_* environment variables, making output safer to share in bug reports and CI logs.

    16.0.0upgrade guiderelease notes

  • To launch directly to the specs list, cypress open now requires --browser and either --e2e or --component.

    16.0.0upgrade guide

  • This CLI command has been removed; use cypress open --component instead.

    16.0.0upgrade guide

  • The plugins file is no longer supported or automatically loaded; its functionality is replaced by setupNodeEvents() and devServer configuration options.

    16.0.0upgrade guide

  • The React 18 test harness has been merged into cypress/react; migrate imports from cypress/react18 to cypress/react.

    16.0.0upgrade guide

  • The harness is deprecated and is no longer shipped with the Cypress binary.

    16.0.0upgrade guide

  • This CLI command has been removed; use cypress run --component instead.

    16.0.0upgrade guide

  • When recording a run to Cloud with Test Replay enabled, the Runner UI is hidden by default, affecting recorded video and runner screenshots; it can be enabled with --runner-ui.

    16.0.0upgrade guide

  • Now requires Cypress ^16.0.0, @angular/cli >=21.0.0, and @angular/core >=21.0.0, and no longer scaffolds the cypress/angular-zoneless mount handler.

    16.0.0release notes

  • The experimental Cypress Studio has been removed.

    16.0.0upgrade guide

  • Vite 4 is no longer supported for component testing; the minimum supported Vite version is 5.

    16.0.0upgrade guide

  • The package is ESM-only and can no longer be used from a CommonJS context; move the Cypress configuration to ESM or TypeScript.

    16.0.0upgrade guide

  • The default preprocessor no longer shims all built-ins previously provided by webpack v4; configure any additional required built-ins through webpack fallback options.

    16.0.0upgrade guide

  • Webpack 4 and Webpack Dev Server 4 are no longer supported; component testing must use supported versions or an independently installed deprecated package as a temporary workaround.

    16.0.0upgrade guide

  • Webpack 4 is no longer supported for end-to-end preprocessing; a deprecated standalone package version is available as a temporary workaround.

    16.0.0upgrade guide

  • The undocumented firefox:force:gc and log:memory:pressure methods have been removed with no replacement.

    16.0.0upgrade guide

  • This API can no longer overwrite readFile; use Cypress.Commands.overwriteQuery to overwrite the query instead.

    16.0.0upgrade guide

  • Queries such as cookie and storage reads must be overwritten with overwriteQuery() rather than Cypress.Commands.overwrite().

    16.0.0upgrade guiderelease notes

  • Setting blockHosts with Cypress.config() during test execution now throws; set it in a describe, context, or it test configuration instead.

    16.0.0upgrade guiderelease notes

  • viewportWidth and viewportHeight can no longer be set through Cypress.config() during test execution; use cy.viewport() or test configuration instead.

    16.0.0release notes

  • A project cannot contain both JavaScript and TypeScript Cypress config files; Cypress reports an error when loading them together.

    16.0.0upgrade guide

  • The API was removed; use cy.session to preserve cookies and browser storage between tests.

    16.0.0upgrade guide

  • onElement is no longer an option to defaults; remove it from calls to the method.

    16.0.0upgrade guide

  • Removed; migrate to cy.env() or Cypress.expose().

    16.0.0upgrade guiderelease notes

  • Support for cypress.json was removed; Cypress loads JavaScript or TypeScript configuration files instead.

    16.0.0upgrade guide

  • The API was renamed to Cypress.ElementSelector; migrate callers to the new name.

    16.0.0upgrade guide

  • The API was removed; use cy.intercept instead.

    16.0.0upgrade guide

  • Configure component testing dev servers by specifying a framework and bundler in this option; dev server packages are no longer directly importable.

    16.0.0upgrade guide

  • The env key is no longer valid in per-test or suite config overrides; use expose if necessary.

    16.0.0upgrade guiderelease notes

  • This is now a testing-type-specific option. Its defaults differ by testing type, and **/node_modules/** is automatically added and cannot be overridden.

    16.0.0upgrade guide

  • The configuration option was removed alongside cy.exec(); setting it prints a warning and is otherwise ignored.

    16.0.0upgrade guiderelease notes

  • The experimental boolean configuration option was removed and replaced by visibilityStrategy.

    16.0.0upgrade guiderelease notes

  • This configuration option has been removed; remove it and use cy.intercept() to handle fetch requests.

    16.0.0upgrade guide

  • The experimental configuration option is ignored and produces a warning; use manageBrowserMemory instead.

    16.0.0upgrade guiderelease notes

  • The experiment flag was removed when Session and Origin became generally available.

    16.0.0upgrade guide

  • The option was removed because its behavior— not injecting document.domain—is now the default.

    16.0.0upgrade guide

  • The configuration option was removed; remove it and enable removeSRIAttributes if it was used for SRI.

    16.0.0upgrade guiderelease notes

  • The experimental Cypress Studio option has been removed; setting it causes Cypress to error on load.

    16.0.0upgrade guide

  • Electron no longer allows fetch or XMLHttpRequest requests from an about:blank page; use cy.request() or navigate first with cy.visit().

    16.0.0upgrade guide

  • Cypress 15 removed Firefox CDP automation and uses WebDriver BiDi only; supported Firefox minimums are 135 for Cypress 15.0.0–15.18.1 and 140 for 15.19.0 and newer.

    16.0.0upgrade guide

  • The getSelector method has been removed from the Selector Playground API.

    16.0.0upgrade guide

  • Cypress 15 prebuilt Linux binaries no longer support distributions based on glibc below 2.31.

    16.0.0upgrade guide

  • Cypress 14 prebuilt Linux binaries no longer support distributions based on glibc below 2.28.

    16.0.0upgrade guide

  • invoke throws if the called function returns a promise; use then to call a method that returns a promise. Chained commands can also cause the function to be invoked multiple times.

    16.0.0upgrade guide

  • JIT compilation is now the default behavior for component tests; set this option to false to disable it.

    16.0.0upgrade guide

  • JIT compilation no longer applies with vite because there is no benefit to enabling it.

    16.0.0upgrade guide

  • The default delay between keystrokes changed from 10 to 0 milliseconds to improve performance of typing-heavy test runs.

    16.0.0upgrade guiderelease notes

  • Cypress 14 requires macOS 11 (Big Sur) or newer because of its Electron upgrade.

    16.0.0upgrade guide

  • Replaces experimentalMemoryManagement and defaults to true, enabling browser memory management by default for users running Chromium-based browsers.

    16.0.0upgrade guiderelease notes

  • The properties and values returned by the Module API changed shape, so code reading cypress.run() results may need updated property access.

    16.0.0upgrade guide

  • The cypress/vue mount function now returns an object containing both the VueWrapper and component instance, rather than the VueWrapper itself.

    16.0.0upgrade guide

  • mountCallback from cypress/vue has been removed; the notes recommend using mount.

    16.0.0upgrade guide

  • mountHook from cypress/react has been removed; the notes recommend replacing it with mount and a component.

    16.0.0upgrade guide

  • Chrome, Chromium, and Edge route test traffic through the native browser network, so applications negotiate the server-supported protocol as in production; some network behaviors differ.

    16.0.0upgrade guiderelease notes

  • The minimum supported Next.js version for component testing is now 15.0.4.

    16.0.0upgrade guide

  • Component testing requires Next.js 15.0.4 or newer, or Next.js 16; Next.js 14 is no longer supported.

    16.0.0upgrade guiderelease notes

  • Cypress 16 requires Node.js 22.x, 24.x, or 26.x and above to install the binary; Node.js 20 and 25 are no longer supported.

    16.0.0upgrade guiderelease notes

  • Cypress 15 supports Node.js 20, 22, and 24+, and no longer supports Node.js 18 or 23 for installing Cypress.

    16.0.0upgrade guide

  • Cypress 14 requires Node.js 18 or newer to install Cypress and no longer supports Node.js 16 or 21.

    16.0.0upgrade guide

  • Node.js 14 support has been removed; Node.js 16 is deprecated and users are recommended to update to at least Node.js 18.

    16.0.0upgrade guide

  • Installing the Cypress npm package requires Node.js 14, 16, or 18 and later; Node.js 12, 15, and 17 are no longer supported.

    16.0.0upgrade guide

  • The deprecated configuration option has been removed; Cypress uses the Node.js version it was launched with to execute setupNodeEvents.

    16.0.0upgrade guide

  • Nuxt 2 apps can no longer be component tested out of the box because Cypress no longer ships the Vue 2 harness.

    16.0.0upgrade guide

  • Component testing no longer supports React versions below 18.0.0; the minimum required version is 18.0.0.

    16.0.0upgrade guide

  • The Run all specs functionality has been removed.

    16.0.0upgrade guide

  • The Run filtered specs functionality has been removed.

    16.0.0upgrade guide

  • Generated screenshot paths now strip common ancestor paths shared by discovered spec files or specs selected with --spec or the spec module API.

    16.0.0upgrade guide

  • A should callback throws if it invokes Cypress commands; use then to execute commands on the yielded value.

    16.0.0upgrade guide

  • This option must be defined inside component or e2e. Defaults no longer match CoffeeScript or CJSX; component tests matching the E2E pattern are excluded.

    16.0.0upgrade guide

  • This option is now testing-type-specific and invalid at the top level; multiple matching support files for one testing type cause a load error.

    16.0.0upgrade guide

  • Cypress no longer ships the Svelte 3 and 4 component testing harness; the legacy harness can be installed independently via @cypress/svelte.

    16.0.0upgrade guide

  • When enabled, Cypress resets the browser context before each test, clearing the page, cookies, localStorage, and sessionStorage across domains.

    16.0.0upgrade guide

  • This option is no longer used; use specPattern inside the component or e2e configuration object.

    16.0.0upgrade guide

  • The minimum supported TypeScript version is 4.x.

    16.0.0upgrade guide

  • unmount from cypress/react has been removed; the notes recommend using React's unmountComponentAtNode API.

    16.0.0upgrade guide

  • Unsupported browser versions can no longer be run with cypress run or cypress open; Cypress displays an error instead.

    16.0.0upgrade guide

  • Video recording is disabled by default; set video to true to continue recording.

    16.0.0upgrade guide

  • Video compression is disabled by default, reducing run time while producing larger, higher-quality video files; enable it to reduce file size.

    16.0.0upgrade guide

  • Generated video paths now strip common ancestor paths shared by discovered spec files or specs selected with --spec or the spec module API.

    16.0.0upgrade guide

  • This configuration option has been removed; delete passing-test videos if you want to prevent their upload to Cloud.

    16.0.0upgrade guide

  • Replaces experimentalFastVisibility with a configuration option accepting 'legacy' or 'modern'; 'modern' is now the default, and the option is deprecated as a temporary migration aid.

    16.0.0upgrade guide

  • Replaces experimentalFastVisibility, accepts 'legacy' or 'modern', and defaults to 'modern', using the browser's native Element.checkVisibility() API.

    16.0.0release notes

  • The minimum supported Vite version for component testing is now 8.

    16.0.0upgrade guiderelease notes

  • An inline viteConfig in cypress.config no longer automatically merges with vite.config.js; explicitly import and merge the configuration if needed.

    16.0.0upgrade guide

  • Cypress no longer ships the Vue 2 component testing harness with the Cypress binary; it can be installed independently as @cypress/vue2.

    16.0.0upgrade guide

  • Component tests using Vue CLI now need a bundler; migrate to webpack or vite.

    16.0.0upgrade guide

  • @cypress/webpack-dev-server no longer supports webpack-dev-server version 3 and ships with version 5 by default; webpack 4 users should install version 4.

    16.0.0upgrade guide

  • within throws when given multiple elements as its subject; reduce the subject to one element or use aliases or each for collections.

    16.0.0upgrade guide

Security 3

  • undici was upgraded to address an Improper Certificate Validation vulnerability reported in security scans.

    16.2.1release notes

  • Environment variable values are masked on the Project settings page.

    16.2.0release notes

  • Use cy.env() to read sensitive values asynchronously; it is read-only and requests only the keys you need.

    15.10.0, 16.0.0upgrade guiderelease notes

Deprecations 5

  • Launching directly into component testing with this command is deprecated; use cypress open --component instead.

    16.0.0upgrade guide

  • Electron is deprecated as a test browser; plan to switch to an installed browser.

    16.0.0upgrade guide

  • The bundled Electron browser is deprecated as a test browser and will be removed in a future major version; configure another browser if runs rely on Electron as the implicit default.

    16.0.0upgrade guiderelease notes

  • Setting injectDocumentDomain to true avoids some cy.origin() calls for matching superdomains but emits a deprecation warning and will be removed in a future version.

    16.0.0upgrade guide

  • The resourceType option on cy.intercept is deprecated and its types may change or it may be removed in the future.

    16.0.0upgrade guide

New APIs and options 18

  • Added a query that finds elements by ARIA role and optionally accessible name, retries until assertions pass, and reports roles and accessible names when nothing matches.

    16.2.0release notes

  • Pass { native: false } to also match elements with a role attribute when HTML has an element for that role.

    16.2.0release notes

  • TypeScript now accepts an offset that sets a single axis, leaving the other at 0.

    16.1.1release notes

  • Added a configuration option to declare trusted certificates for the native browser network path, allowing static assets from those origins to be cached across navigations.

    16.1.0release notes

  • Pass a timeout to cy.env() for slow secret lookups; its 4000ms default does not follow defaultCommandTimeout.

    16.0.0upgrade guide

  • The React mount library is included in the main cypress package and can be imported from this path.

    16.0.0upgrade guide

  • The Vue mount library is included in the main cypress package and can be imported from this path.

    16.0.0upgrade guide

  • Cypress automatically loads a project-root cypress.config.js file when present.

    16.0.0upgrade guide

  • Cypress automatically loads a project-root cypress.config.ts file when present.

    16.0.0upgrade guide

  • The Selector Playground API was renamed to Cypress.ElementSelector to reflect use beyond the Selector Playground.

    16.0.0upgrade guide

  • Use Cypress.expose() for public, non-sensitive configuration that needs synchronous access and can be available in the browser.

    15.10.0, 16.0.0upgrade guiderelease notes

  • Set defaultBrowser to an installed browser to prevent Cypress from falling back to Electron when no browser is specified.

    16.0.0upgrade guide

  • Set this option to true to use external dependencies in cy.origin callbacks.

    16.0.0upgrade guide

  • Configure public, non-sensitive values under expose instead of env when they should be available through Cypress.expose().

    16.0.0upgrade guide

  • Pass public configuration values with --expose when running Cypress; -x is also available.

    16.0.0upgrade guide

  • Routes every browser through the legacy network path as a temporary migration option; deprecated at introduction and warns when set.

    16.0.0release notes

  • Enable this option if you previously used experimentalSourceRewriting to work around Subresource Integrity errors.

    16.0.0release notes

  • Pass this option to cypress run to show the Runner UI during a Cloud-recorded run.

    16.0.0upgrade guide

Performance 2

  • Tests with testIsolation enabled start slightly faster when the previous test did not load any pages, such as an API test using only cy.request().

    16.2.1release notes

  • Improved performance on subjects with many elements inside the shadow DOM.

    16.1.1release notes

Behavior and default changes 15

  • Child commands called directly off cy, such as cy.click(), now show the same reworded error.

    16.2.0release notes

  • Overrides cancelIdleCallback by default, preventing canceled idle callbacks from running on the next cy.tick(); explicitly listing it no longer throws an error.

    16.1.1release notes

  • When it starts a chain, cy.contains now appears as a parent command in the Command Log instead of a child command.

    16.1.1release notes

  • Now reports that the spec is running and directs users to cypress tap status for progress, instead of printing the testing type and browser.

    16.1.0release notes

  • When preparing a Test Replay recording fails during cypress run, Cypress now recommends checking available disk space and temporary-directory read/write access.

    16.1.0release notes

  • Cypress now uses @angular/platform-browser in place of @angular/platform-browser-dynamic; Angular 21 uses the replacement by default.

    16.0.0upgrade guide

  • Now a retry-able query that re-reads localStorage across origins and retries chained assertions; it accepts a timeout option and uses defaultCommandTimeout.

    16.0.0upgrade guiderelease notes

  • Now a retry-able query that re-reads sessionStorage across origins and retries chained assertions; it accepts a timeout option and uses defaultCommandTimeout.

    16.0.0upgrade guide

  • cy.getCookie(), cy.getCookies(), and cy.getAllCookies() are retry-able queries that re-read cookies and retry chained assertions; they use defaultCommandTimeout and cannot be overwritten with Cypress.Commands.overwrite().

    16.0.0release notes

  • The command became generally available; using require and import in its callback remains disabled by default.

    16.0.0upgrade guide

  • The command became generally available for setting up and caching browser storage between tests.

    16.0.0upgrade guide

  • The zoneless testing harness is now the default cypress/angular test harness.

    16.0.0upgrade guiderelease notes

  • Built-in placeholder mount and hover commands can now be overwritten without using Cypress.Commands.overwrite().

    16.0.0upgrade guide

  • Users with this existing experimental flag can remove it from their configuration; JIT compilation is now controlled by justInTimeCompile.

    16.0.0upgrade guide

  • Chrome, Chromium, and Edge test applications over HTTP/2/3, with multiplexed requests and no six-connection ceiling; Cypress no longer terminates TLS for the application under test.

    16.0.0release notes

Tooling 4

  • The event's details.config is typed as the resolved plugin configuration, allowing TypeScript access to fields such as projectRoot, configFile, testingType, and browsers without a cast.

    16.2.1release notes

  • When the component testing dev server fails to start, Cypress explains the failure, shows the server error, and links to its documentation.

    16.2.1release notes

  • Angular version 22 is now supported in component testing, including Launchpad project detection and the @cypress/schematic Angular CLI integration.

    16.0.0release notes

  • Use this command to launch directly into component testing from the main app.

    16.0.0upgrade guide

Fixes and other changes 50

  • TypeScript now accepts numbers as expected values for attr, id, text, and value assertions, including contain and include forms of text and value.

    16.2.1release notes

  • cy.contains() works inside cy.document().within(); missing content reports an assertion error instead of a TypeError.

    16.2.1release notes

  • Responses compressed with x-gzip are decoded correctly when Cypress's HTTP proxy rewrites their contents, preventing corrupted pages during script injection.

    16.2.1release notes

  • Opening Cypress with both a --browser and a testing type flag no longer launches the browser twice on the major-version welcome screen.

    16.2.1release notes

  • Fixed a headed Chrome, Chromium, and Edge regression that could make the Cypress browser extension stop responding and cause @cypress/puppeteer to fail.

    16.2.1release notes

  • A run whose tests all passed no longer exits with code 1 if the browser makes a request while Cypress is shutting down.

    16.2.1release notes

  • cypress run no longer stops printing output and hangs when a test is retried after a hook timed out on the previous attempt.

    16.2.1release notes

  • The listed Cypress.dom methods now accept either a DOM element or a jQuery object, as their types already specified.

    16.2.1release notes

  • TypeScript now accepts a number, boolean, or null as the expected value of the data assertion.

    16.2.1release notes

  • The TypeScript types for getCoordsByPosition() now match its actual return value, an object with x and y rather than a number.

    16.2.1release notes

  • The TypeScript types for getElements() now match what the method accepts and returns.

    16.2.1release notes

  • The TypeScript types for getFirstDeepestElement() now match what the method accepts and returns.

    16.2.1release notes

  • TypeScript now accepts a DOM element, an array of elements, a jQuery object, or a predicate function in the match assertion.

    16.2.1release notes

  • Matching errors from cy.readFile() display an empty string as '' instead of leaving the value blank.

    16.2.1release notes

  • .rightclick() now reports buttons: 0 on pointerup and mouseup events, matching a real right click after the button is released.

    16.2.1release notes

  • Concurrent cypress run processes sharing a project folder save screenshots under distinct numbered names instead of silently overwriting one another.

    16.2.1release notes

  • Scrolling to positions such as bottom, right, bottomRight, and percentages now reaches the correct position with always-visible scrollbars.

    16.2.1release notes

  • TypeScript now types the value yielded by cy.session() as the session status: 'created', 'restored', or 'recreated', rather than null.

    16.2.1release notes

  • Cypress.dom.stringify() types now accept window and document, and make the second argument optional and limited to 'long' or 'short'.

    16.2.1release notes

  • Runs recorded with Test Replay now report hooks around each test, preventing unchanged tests from being listed as Modified when switching between supporting and non-supporting browsers.

    16.2.1release notes

  • Videos from concurrent runs sharing a project folder get distinct numbered names when trashAssetsBeforeRuns is false.

    16.2.1release notes

  • Fixed a Chrome, Chromium, and Edge regression where a first cross-origin cy.visit() could hang forever for specs with bundled files larger than about 75 MB; forceHttp1 is no longer needed to avoid it.

    16.2.1release notes

  • The error for failOnStatusCode: false with retryOnStatusCodeFailure: true now shows passed values, explains the requirement, and lists valid combinations.

    16.2.1release notes

  • Matching errors from cy.writeFile() display an empty string as '' instead of leaving the value blank.

    16.2.1release notes

  • Fixed later requests with the same method and URL waiting through the full 2-second pre-request timeout after an earlier request missed its pre-request.

    16.2.0release notes

  • Fixed configured client certificate entries not being presented for browser-issued requests in Chrome, Chromium, and Edge.

    16.2.0release notes

  • TypeScript now types the yielded object as the plain object Cypress actually yields rather than the browser's window.location.

    16.2.0release notes

  • Fixed an issue that could prevent cy.prompt and Studio from loading.

    16.2.0release notes

  • Fixed changed cookies being sent with their earlier value on the next application navigation.

    16.2.0release notes

  • Fixed cypress run changing the browser that cypress open selects by default for a project.

    16.2.0release notes

  • Fixed config-file stderr output intermittently missing from terminal output when written immediately after another line.

    16.2.0release notes

  • Fixed errors with non-overwritable messages being reported as a getter-only property TypeError, hiding the original test failure.

    16.2.0release notes

  • The searchParams property is now typed, so accessing it through cy.location() or the yielded location object no longer reports a type error.

    16.2.0release notes

  • Fixed Chrome-based browser, Electron, and Firefox video chapter markers being placed late when the browser was slow to show its first frame, along with inaccurate video length and frozen final frames.

    16.2.0release notes

  • The error for calling .clear() on an unsupported element now lists the accepted textarea, text-like input, and editable elements.

    16.1.1release notes

  • TypeScript now accepts every function cy.clock can override in the browser, including requestAnimationFrame, requestIdleCallback, performance, Intl, and queueMicrotask, and accepts null as the first argument.

    16.1.1release notes

  • The navigation error now explains that commands on another subdomain require cy.origin() when injectDocumentDomain is disabled, the default.

    16.1.1release notes

  • The error property passed to an uncaught:exception handler is now typed as string or string array because an exception can carry more than one documentation URL.

    16.1.1release notes

  • TypeScript now accepts an options object before the callback, matching runtime support.

    16.1.1release notes

  • The third argument of a DOM element callback is now typed as the iterated jQuery collection rather than an array of elements.

    16.1.1release notes

  • TypeScript now accepts an options object in place of the filter argument, matching runtime support.

    16.1.1release notes

  • The corresponding synchronous-return error now links to the .then() documentation.

    16.1.1release notes

  • The yielded clock's tick method is now typed as returning the clock's new time in milliseconds instead of void.

    16.1.1release notes

  • Fixed a regression so blocked hosts are enforced in Chrome, Chromium, and Edge, preventing their requests from reaching the network and their resources from loading.

    16.1.0release notes

  • Fixed a regression that could stop output during Chrome, Chromium, or Edge runs and leave them hanging indefinitely.

    16.1.0release notes

  • When an assertion matches no element, the Command Log now shows the searched content instead of reporting undefined.

    16.1.0release notes

  • Fixed headless Electron windows being smaller than requested on Windows during cypress run, which made failure screenshots and recorded videos smaller than expected.

    16.1.0release notes

  • Fixed TypeScript configuration types so keystrokeDelay compiles as an option Cypress already read and validated at runtime.

    16.1.0release notes

  • Fixed a Cypress server memory leak that retained state for every service worker until the browser closed, causing memory use to climb during runs.

    16.1.0release notes

  • Fixed an issue where the event handler did not run when a project was closed in cypress open mode with experimentalInteractiveRunEvents set.

    16.0.0release notes

cypress 15201 changes

Breaking changes 15

  • Passing an object to the assertion now fails with an error stating that the name must be a string, instead of applying attributes to the element and passing.

    15.21.0release notes

  • Passing an object to the assertion now fails with an error stating that the name must be a string, instead of applying styles to the element and passing.

    15.21.0release notes

  • Passing an object to the assertion now fails with an error stating that the name must be a string, instead of applying properties to the element and passing.

    15.21.0release notes

  • The 'top' and 'bottom' values again align only the vertical axis instead of horizontally scrolling an already-visible element's container.

    15.20.0release notes

  • Setting this environment variable to a plain string now produces a clear error explaining that browsers must be an array and a specific browser should be selected with --browser.

    15.18.0release notes

  • During cypress run, this setting is always treated as 0, regardless of configuration, so snapshots can be captured correctly when recording Test Replay to Cypress Cloud.

    15.18.0release notes

  • In Electron, navigation proceeds automatically when a page's beforeunload handler requests confirmation, matching Chrome behavior and avoiding page load timeouts.

    15.17.0release notes

  • When the project path cannot be resolved, the command falls back to the current working directory; passing --browser without a value now produces a clear browser-not-found error.

    15.17.0release notes

  • Cypress selects ESM or CJS before loading the config, following the file extension and nearest package.json type, and no longer retries with the other module format after an error.

    15.17.0release notes

  • The proxy no longer strips Content-Length: 0 from empty responses and re-emits them with Transfer-Encoding: chunked, which could break clients expecting a fixed-length response.

    15.15.0release notes

  • Delay values >= 2**31 now throw a clear validation error instead of being silently ignored by setTimeout.

    15.13.1release notes

  • The flag was removed and can be deleted from configuration.

    15.13.0release notes

  • Improves CI environment detection and CI/commit metadata capture for Cypress Cloud recorded runs, adding support for Harness CI, AWS Amplify Console, Buddy, Bitrise, and Cloudbees Unify and removing support for EOL providers.

    15.11.0release notes

  • WebKit prefers a cookie's fully qualified domain when requesting a cookie value; it falls back to the cookie's apex domain if none are found.

    15.6.0release notes

  • When used with --record and --posix-exit-codes, cypress run exits with code 112 if network conditions prevent Cypress from determining which spec to run next.

    15.5.0release notes

Security 1

  • Unsafe targets are stripped from base tags, and a runtime guard neutralizes base tags inserted or modified after load, preventing untargeted links or form submissions from navigating out of the Cypress iframe.

    15.14.2release notes

Deprecations 4

  • cy.exec() is deprecated and will be removed in a future major release; use cy.task() instead.

    15.21.0release notes

  • The execTimeout configuration option is deprecated alongside cy.exec(), in favor of taskTimeout.

    15.21.0release notes

  • cy.end() is deprecated and will be removed in a future release; start a new chain of commands off of cy instead.

    15.15.0release notes

  • Cypress.env() is deprecated and will be removed in a future major release; migrate to the new environment-variable access approach.

    15.10.0release notes

New APIs and options 17

  • Adds an environment variable to disable reporting for non-logged sessions, including anonymous usage events in open-mode and the Cypress CLI.

    15.21.0release notes

  • The command's subcommands can print machine-readable JSON output with --json.

    15.21.0release notes

  • Adds a command for AI agents to access open-mode Cypress sessions, run specs, inspect results, and inspect the application DOM and accessibility tree.

    15.21.0release notes

  • Accepts per-axis alignment values and the single values 'start' and 'end', letting developers independently control vertical and horizontal scrolling before an action.

    15.20.0release notes

  • Added .exists as an alias of .exist for Cypress assertions.

    15.19.0release notes

  • Added .greaterThanOrEqual as an alias of .least for Cypress assertions.

    15.19.0release notes

  • Added .lessThanOrEqual as an alias of .most for Cypress assertions.

    15.19.0release notes

  • Added support for chaining .oneOf with .contain in Cypress assertions.

    15.19.0release notes

  • When enabled, strips integrity attributes from script and link elements on first-party resources so Cypress-rewritten resources are not blocked by Subresource Integrity enforcement.

    15.18.0release notes

  • Values can be overridden per suite or test using test config overrides; suite and test overrides merge, test-level keys take precedence, and overrides are restored after each test.

    15.17.0release notes

  • Sign up for Cypress Cloud is now supported from the Cypress desktop app, in addition to logging in.

    15.16.0release notes

  • Adds an option to enable word wrap for Studio panel code.

    15.12.0release notes

  • A <script data-cy-bootstrap> tag enables manual bootstrap script injection to work around React SSR hydration mismatches and use suppressHydrationWarning.

    15.11.0release notes

  • Adds a command line flag to allow runs to pass when no tests are found.

    15.11.0release notes

  • Adds a configuration option that disallows use of the deprecated Cypress.env() API.

    15.10.0release notes

  • Adds a mount function for zoneless Angular Component Testing.

    15.8.0release notes

  • Introduced an experiment that changes how Cypress performs visibility checks and assertions.

    15.8.0release notes

Performance 10

  • Memory readings in cgroup v1 containers no longer spawn helper subprocesses on every sampling interval, lowering CPU overhead, especially on constrained CI machines.

    15.20.0release notes

  • Fixed renderer memory retention from each cy.press() call in Chromium-based browsers, reducing memory growth in specs with many calls.

    15.19.0release notes

  • Verifying that the Cypress binary can run now completes more quickly, both on first use of a newly installed version and when invoking cypress verify.

    15.18.1release notes

  • Hovering over a test's command list no longer triggers a style recalculation across the entire list, avoiding progressively slower interactions during long tests.

    15.17.0release notes

  • Scrolling the command log has reduced main-thread overhead because the reporter no longer registers duplicate scroll listeners when the scroll container is set more than once.

    15.14.2release notes

  • Stored command log data, including custom Cypress.log properties, is cleared once tests age out of numTestsKeptInMemory, reducing browser memory growth during long interactive runs.

    15.14.0release notes

  • The App sends a smaller snapshot of project config when recording to Cypress Cloud, reducing payload size and potentially speeding up recording.

    15.13.1release notes

  • Unnecessary git status and git log subprocess calls were eliminated during runs, avoiding collection of spec-file git metadata used only in the interactive GUI.

    15.13.1release notes

  • Element highlighting in Command Log snapshots is significantly faster, especially for multiple elements or complex pages.

    15.7.1release notes

  • Time between specs is improved by avoiding a reset of file_systems StorageType state when executing Storage.clearDataForOrigin.

    15.5.0release notes

Behavior and default changes 20

  • Connection errors for Chromium-based browsers now suggest checking whether remote debugging is disabled by enterprise or group policy and point to the browser policy page.

    15.17.0release notes

  • Recorded runs within Argo CD and Argo Workflows have improved CI environment detection and commit metadata capture.

    15.17.0release notes

  • Invalid environment-variable values that are not JSON objects now produce a warning explaining the required format and pointing to the --env or --expose CLI flags.

    15.17.0release notes

  • Invalid environment-variable values that are not JSON objects now produce a warning explaining the required format and pointing to the --env or --expose CLI flags.

    15.17.0release notes

  • When multiple spec patterns are provided, Cypress warns about each pattern that does not match any spec files instead of silently skipping it.

    15.17.0release notes

  • Chrome and Electron tests can make cross-origin requests to local or private network addresses without browser permission prompts blocking them.

    15.17.0release notes

  • When a project is auto-provisioned during Cypress Cloud signup in the desktop app, Cypress writes its project ID to the config file; if writing fails, a modal provides a copyable snippet and a link to the file.

    15.17.0release notes

  • The log in and sign up modals automatically start browser-based authentication when opened, removing the extra “Log in” click.

    15.16.0release notes

  • cy.prompt is now in beta and available without configuration, allowing test steps to be written in plain English instead of code.

    15.13.0release notes

  • Studio warns users before navigating away when the editor has unsaved changes.

    15.13.0release notes

  • The proxy now supports Brotli compression.

    15.11.0release notes

  • The experimentalRunAllSpecs option can now be used for component testing as well as e2e testing.

    15.9.0release notes

  • The Selector Playground is available to all users in open mode and automatically enables interactive mode to build and test selectors.

    15.8.0release notes

  • The keyboard shortcuts modal now shows the shortcut for saving Studio changes: ⌘ + s on Mac or Ctrl + s on Windows/Linux.

    15.7.0release notes

  • Chrome's autofill popup is disabled when filling address and credit card forms during test execution.

    15.6.0release notes

  • The Get code modal warns when unsaved Studio changes will be lost if the user saves generated code.

    15.6.0release notes

  • A failed cy.prompt() download now provides more context in its error message.

    15.6.0release notes

  • Cypress now prefers 64-bit browser installs over 32-bit browser installs.

    15.5.0release notes

  • The code button styles are updated, and the Get Code label on cy.prompt() is renamed to Code.

    15.5.0release notes

  • When this variable is set to 1, certain messages written to stderr are no longer bracketed with verbose tags.

    15.5.0release notes

Tooling 10

  • TypeScript 7 is supported when preprocessing TypeScript spec and support files, and by the component testing setup wizard.

    15.19.0release notes

  • Bun is recognized as a package manager, so the Cypress package can be installed and invoked with Bun.

    15.17.0release notes

  • Shipped types now reference the @types package directly so type resolution is independent of the user's installed @sinonjs/fake-timers version.

    15.16.0release notes

  • Cypress officially supports TypeScript 6.

    15.14.0release notes

  • Vite 8 is supported for component testing.

    15.14.0release notes

  • Studio now allows adding a new test when focused on a single test, supporting adding tests as you record.

    15.13.0release notes

  • The App's resolved configuration interface now displays resolved expose values, helping developers inspect their configuration.

    15.10.0release notes

  • Angular version 21 is now supported in component testing.

    15.8.0release notes

  • Next.js version 16 is supported in component testing using webpack to bundle components; Turbopack is not yet supported.

    15.7.0release notes

  • The Command Log shows a Self-healed badge when cy.prompt() steps automatically recover after the needed element is not found in the cache.

    15.6.0release notes

Fixes and other changes 124

  • The command no longer prints HTTP request lines to the attached cypress open session's terminal.

    15.21.1release notes

  • Chrome and Firefox no longer offer to translate the application under test during a run.

    15.21.1release notes

  • Test-level blockHosts overrides now take effect at runtime and are restored between specs.

    15.21.0release notes

  • The console props output labels requested environment variable names under a single Env vars label instead of numbered keys.

    15.21.0release notes

  • Fixes WebKit runs hanging when intercepted parallel requests exceed the browser's per-host connection pool.

    15.21.0release notes

  • Prevents the same attempt line from being printed twice when both beforeEach and afterEach fail during an attempt.

    15.21.0release notes

  • While cy.clock() is active, the faked performance object now implements performance.mark() instead of returning undefined.

    15.21.0release notes

  • While cy.clock() is active, the faked performance object now implements performance.measure() instead of returning undefined.

    15.21.0release notes

  • The faked performance object now reports a faked performance.timeOrigin while cy.clock() is active.

    15.21.0release notes

  • On Windows, changes to spec files while Cypress is open now update the specs list, avoiding stale entries and failures to run renamed or moved specs.

    15.21.0release notes

  • Pinning a command in the Command Log no longer leaves the AUT snapshot permanently blank with the pin stuck on.

    15.20.1release notes

  • When the Cypress binary is missing in CI, error suggestions now name the directory Cypress actually checked, including when CYPRESS_CACHE_FOLDER overrides the default location.

    15.20.1release notes

  • The Cypress app now sends requests to Cypress Cloud instead of localhost:3000, allowing login and data in the Runs and Debug pages to work.

    15.20.1release notes

  • Stopping a run in open mode no longer clears the AUT.

    15.20.1release notes

  • The configuration validation error for an absolute ca filepath references the correct certificate.

    15.20.0release notes

  • Passing the options argument, such as { log: false }, no longer raises a TypeScript argument-count error.

    15.20.0release notes

  • Auth matching compares the full Basic authentication password, so passwords containing a colon match correctly.

    15.20.0release notes

  • Routes with a numeric port now match requests on non-default ports.

    15.20.0release notes

  • An intermittent error reading applied no longer causes a cy.origin block to fail and be incorrectly reported as originating from test code.

    15.20.0release notes

  • Session cookies set on the primary origin are included in the identity provider's callback request back to that origin.

    15.20.0release notes

  • Interpolated values containing $ characters or sequences are now shown verbatim instead of producing leaked placeholders or corrupted, duplicated, or dropped text.

    15.20.0release notes

  • HTTP 3xx responses, including 304 Not Modified, display as successful rather than failed in the Command Log.

    15.20.0release notes

  • Inline source maps without a charset, including those emitted by esbuild, are now decoded instead of silently dropped.

    15.20.0release notes

  • When passesRequired is omitted from the experimental detect-flake-and-pass-on-threshold retry strategy, the validation error reports the value of that option rather than an unrelated option.

    15.20.0release notes

  • cy.request() and cy.intercept() accept the HTTP QUERY method, which was previously rejected as invalid in the browser.

    15.20.0release notes

  • TypeScript spec and support files now compile with the TypeScript 7 support added in 15.18.0.

    15.20.0release notes

  • Visibility checks and actionability no longer serialize an element's entire text subtree once per overflow-hidden ancestor, preventing renderer memory exhaustion and crashes on text-heavy pages.

    15.20.0release notes

  • Commands that read from the application under test target the application rather than the command log when the application sets window.name.

    15.20.0release notes

  • Fixed a memory leak in messages sent from the Cypress server to Chromium-based browsers, which could cause crashes during long, command- or network-heavy specs.

    15.19.0release notes

  • Memory is now managed correctly when Cypress runs inside a memory-limited container, preventing the browser from running out of memory and crashing.

    15.19.0release notes

  • Fixed a renderer crash when the application under test triggered a ResizeObserver loop while the command log was visible.

    15.19.0release notes

  • Chaining an assertion after .should('exist') on a raw DOM element now works because the existence assertion no longer replaces the subject with null.

    15.19.0release notes

  • Fixed a Windows error during test failure stack enhancement that could mask the original error.

    15.19.0release notes

  • Corrected the TypeScript type definitions' @default value for videoCompression from 32 to false.

    15.19.0release notes

  • When the browser process crashes mid-run with video recording disabled, the current spec now fails and the run continues to the next spec instead of hanging until timeout.

    15.18.1release notes

  • In the experimental WebKit browser, a request to focus the browser window now brings the active page to the front.

    15.18.1release notes

  • The setup wizard now reliably displays the auto-detected framework and bundler.

    15.18.1release notes

  • The simulated keyup event is deferred to the next microtask, matching real browser event ordering so handlers reading asynchronously updated input state do not observe stale values.

    15.18.1release notes

  • The command no longer prints a spurious warning that a --spec pattern did not match when the pattern does match spec files, including regex-style alternation groups.

    15.18.1release notes

  • Interacting with an element inside a horizontally scrollable container now scrolls it to its top, leftmost point, avoiding overlap with right-floating sticky or fixed elements.

    15.18.1release notes

  • When experimental WebKit support is enabled, headless WebKit uses a devicePixelRatio of 1, making screenshots consistent across host DPI settings and text less fuzzy on high-DPI displays.

    15.18.1release notes

  • Chai property syntax for focus assertions no longer raises a TypeScript error when the assertion works at runtime.

    15.18.1release notes

  • Opening an unconfigured project from a git repository sub-directory, such as a monorepo package, no longer skips project setup.

    15.18.1release notes

  • The userAgent configuration option is now applied when running tests in the experimental WebKit browser.

    15.18.1release notes

  • With experimentalInteractiveRunEvents enabled, the plugin event now fires exactly once per spec run, including when cross-origin navigation reloads the runner page.

    15.18.0release notes

  • When Cypress is installed in a read-only location, Firefox and Chrome profile directories are now removed on exit instead of being left behind and requiring manual cleanup.

    15.18.0release notes

  • Calling req.destroy() or using forceNetworkError inside an intercept handler in experimental WebKit no longer causes infinite request loops.

    15.18.0release notes

  • Firefox requests now send Secure cookies to localhost and loopback addresses over HTTP when set over HTTPS, matching browser behavior and Cypress in Chrome.

    15.18.0release notes

  • Screenshots no longer capture changing pixels from some running web animations.

    15.18.0release notes

  • Passing a cy.fixture alias preserves the file name every time the fixture is used, avoiding uploads rejected as missing a file.

    15.18.0release notes

  • Visiting a URL with an IPv6 literal host no longer crashes the proxy because Cypress no longer sets a Domain attribute on internal cookies for IPv6 hosts.

    15.18.0release notes

  • The resolved remote origin now matches the browser's location.origin, omitting default ports and embedded credentials.

    15.18.0release notes

  • Component tests no longer fail intermittently after many other specs have run in the same browser tab.

    15.18.0release notes

  • In experimental WebKit component test runs with video recording enabled, each spec now gets its own video and the run exits normally.

    15.18.0release notes

  • If binding to a port fails, Cypress retries on a fresh port and reports a clear error if binding still fails instead of crashing before tests start.

    15.18.0release notes

  • Consecutive identical uncaught exceptions within a test now collapse into a single updating command-log entry, and suppressed exceptions no longer capture a DOM snapshot, preventing renderer memory exhaustion and browser crashes.

    15.18.0release notes

  • The config passed to plugins and setupNodeEvents now reports false in run mode and true in open mode.

    15.17.0release notes

  • After a same-origin fetch or XHR updates a cookie, subsequent navigation or reload no longer sends the previous cookie value.

    15.17.0release notes

  • Returning to a previously visited origin no longer intermittently loads the Cypress app interface instead of the application.

    15.17.0release notes

  • TypeScript types for cy.get('@alias') now resolve to Chainable<S> instead of Chainable<JQuery<HTMLElement>>.

    15.17.0release notes

  • Empty-string request and response header values are preserved; headers are removed only when deleted or set to undefined.

    15.17.0release notes

  • A stale internal unload cookie is cleared whenever the application document is served, preventing intermittent origin mismatches during navigation after switching super-domains.

    15.17.0release notes

  • Clicking an origin command now prints its origin, arguments, and yielded subject without error; an unserializable yielded subject is represented by its type.

    15.17.0release notes

  • FormData uploads with a non-lowercase Content-Type header now use the generated multipart boundary instead of sending conflicting content-type headers.

    15.17.0release notes

  • Waiting on an aliased intercepted request no longer times out when the browser connection closes before the response completes, including during navigation.

    15.17.0release notes

  • TypeScript types for cy.wait('@alias') now resolve to Chainable<S> instead of Chainable<JQuery<HTMLElement>>.

    15.17.0release notes

  • Recorded Jenkins runs now report the actual branch name without a remote prefix and correctly handle multibranch pipelines.

    15.17.0release notes

  • The CLI now returns once Cypress is ready to use instead of blocking until the GUI is closed.

    15.17.0release notes

  • Component tests and end-to-end tests using a local baseUrl verify local hosts excluded through NO_PROXY using a direct connection rather than the proxy.

    15.17.0release notes

  • A renderer crash mid-spec now fails the affected spec and allows the run to continue instead of hanging until the spec timeout.

    15.17.0release notes

  • On Windows with immediate deletion configured, Cypress no longer incorrectly warns that it failed to trash existing run results when the assets were removed.

    15.17.0release notes

  • Runs with failure screenshots enabled no longer retain each failure screenshot in memory for the rest of the run, preventing progressively slower runs.

    15.17.0release notes

  • HTML markup in Sinon spy assertion messages is escaped and shown as literal text rather than rendered as live DOM in the command log.

    15.17.0release notes

  • Video recording no longer silently fails on Firefox 93 and later.

    15.17.0release notes

  • The config option now loads ECDSA (EC) PEM and PKCS#12 client certificates.

    15.16.0release notes

  • Fixed an intermittent missing-file error during cy.prompt and Studio bundle initialization.

    15.16.0release notes

  • Fixed binary archive extraction on Node 24.16.0+ and 26.1.0+, which could otherwise leave only the first file extracted and prevent the test runner from launching.

    15.16.0release notes

  • Fixed task-list output that could render one character per line in CI environments with a pseudo-TTY and no COLUMNS setting.

    15.16.0release notes

  • Clicking “back to projects” or switching projects while the initial config load is in flight no longer fails.

    15.16.0release notes

  • Deleting results.video in after:spec to retain videos only for failing specs no longer leaves an empty compressed MP4 file.

    15.16.0release notes

  • Cypress no longer aborts the process and shows a crash dialog when it receives SIGINT.

    15.16.0release notes

  • Attribute values containing CSS-special characters no longer cause an uncaught selector syntax error that crashes the runner.

    15.15.0release notes

  • Clearing cached spec-bridge window targets at the correct lifecycle points fixes failures communicating with secondary origins after test isolation and improves performance of specs with cy.origin calls.

    15.15.0release notes

  • Transient HTTP 500 responses from Cypress Cloud are now retried for idempotent requests.

    15.15.0release notes

  • Component spec files are excluded from JSX refresh while Fast Refresh remains enabled for application source, preventing duplicate describe and it blocks with Vite 8.

    15.15.0release notes

  • Temporary tsconfig directories are now suffixed with a hash of the full project root path, preventing parallel Angular component tests in monorepos from racing on projects with the same directory basename.

    15.15.0release notes

  • Rapid config changes during cypress open no longer let overlapping reloads tear down each other's IPC child processes and leave the specs list stale.

    15.15.0release notes

  • A transient Firefox launch failure no longer causes Cypress to exit instead of retrying the browser launch.

    15.15.0release notes

  • During cypress open config reload, the internal HTTP server no longer accepts requests before primary remote state initialization, avoiding occasional crashes in in-flight browser requests.

    15.14.2release notes

  • Waiting on multiple aliases no longer surfaces an unhandled routeId rejection when a retry short-circuits during runnable teardown.

    15.14.2release notes

  • Increased the limit for decrypted payloads to support large cy.prompt requests and responses.

    15.14.1release notes

  • Fixed a memory leak where each spec rerun accumulated an uncaughtException listener, preventing the previous Mocha runner and retained objects from being garbage collected.

    15.14.1release notes

  • The dev server now waits for the support file URL to return a successful response before signaling readiness, preventing intermittent module import errors in component tests.

    15.14.1release notes

  • Early-exit crashes now attach the fatal error to the failing test attempt instead of showing a generic failure, so Cypress Cloud displays the underlying cause.

    15.14.1release notes

  • Tests in open mode now pick up modified env values in the user's config file.

    15.14.0release notes

  • Fixed an issue where Cypress could hang if it could no longer connect to the dev server while running component tests.

    15.13.0release notes

  • When a test is isolated, the rerun button now says “Run test.”

    15.13.0release notes

  • In develop mode, closing the Electron window now exits the gulp process instead of leaving it running.

    15.12.0release notes

  • Fixes internal tags on stderr streams surfacing to the end user CLI during component testing.

    15.12.0release notes

  • Fixes the terminal displaying raw characters after sending SIGINT (e.g. Ctrl+C) to exit Cypress.

    15.12.0release notes

  • Fixes Cypress hanging when waiting on multiple intercepts and the page navigates, causing a stability change.

    15.12.0release notes

  • Executing cypress install to download and install the Cypress binary no longer outputs a Node.js DEP0169 deprecation warning.

    15.11.0release notes

  • Cancelled or incomplete login attempts now properly open a browser window or tab, without requiring a Cypress restart before trying again.

    15.11.0release notes

  • Run log headers now display the Node.js path correctly for typical GitHub Actions paths, without incorrectly displaying ANSI escape sequences for longer paths.

    15.11.0release notes

  • On Windows, extraction retries after EPERM or EACCES with a short delay to handle transient file locks.

    15.11.0release notes

  • Fixes creating a new test in Studio, including showing the test-naming form when starting from an empty spec.

    15.10.0release notes

  • The test:after:run and test:after:run:async events now fire after both a before all and after all hook fail.

    15.8.2release notes

  • The ffprobe path is set at module load time so it is available for all video operations, including on darwin-arm64.

    15.8.2release notes

  • Fixed an EPIPE error appearing in the terminal after pressing CTRL+C.

    15.8.0release notes

  • Fixed loading failures for Next.js Component Testing without a TypeScript-based Next config in versions 16.0.3 and up.

    15.8.0release notes

  • Fixed the Command Log error message so it correctly displays the expected length.

    15.8.0release notes

  • Fixed removeAttribute for attributes other than target on anchor or form elements after clicking links with target="_top" or target="_parent".

    15.8.0release notes

  • Fixed browser freezes when Cypress intercepts a synchronous XHR request using a routeHandler.

    15.8.0release notes

  • Cloud bundles are written atomically to avoid issues caused by concurrent downloads.

    15.7.1release notes

  • Updated the error message shown when the cy.prompt() bundle is deleted while in use.

    15.7.1release notes

  • Limits how many matched elements are tested for visibility when added to a command log entry, addressing a crash with rapid DOM additions and large query results.

    15.7.0release notes

  • No longer causes infinite recursion or freezes the Cypress App when called with objects containing circular references.

    15.7.0release notes

  • Fixes issues in certain cases when larger than expected config values are used while recording to Cypress Cloud.

    15.7.0release notes

  • Fixes cases where stack traces used to determine a test's invocation details are incorrect.

    15.7.0release notes

  • Prevents attempt numbers from appearing more than once in the reporter and attempts from being lost in Test Replay after top changes on test retries.

    15.7.0release notes

  • The cy.exec() type now reflects the correct yielded response type of exitCode.

    15.6.0release notes

  • Absolute file paths are now correctly determined from the source map when the source map root is updated.

    15.6.0release notes

  • Command snapshots are now correctly displayed in Studio.

    15.6.0release notes

  • Command execution no longer throws an error when the application under test overwrites window.$ with a non-function.

    15.5.0release notes

cypress 914 changes

Breaking changes 6

  • The bundled Node.js version was upgraded, which could change pluginsFile behavior when using Cypress's bundled Node.js.

    7.0.0, 9.0.0release notesrelease notes

  • It no longer yields the <body> element when matching content inside <script> or <style> tags.

    9.0.0release notes

  • Adding an existing built-in Cypress command now throws an error; use Cypress.Commands.overwrite() to change its behavior.

    9.0.0release notes

  • Passing an invalid value now throws an error instead of being ignored.

    9.0.0release notes

  • The default is now system, which uses the Node.js binary/version that launched Cypress; when Cypress was not launched via the terminal, it uses the bundled Node.js version.

    9.0.0release notes

  • Cypress no longer supports Windows 32-bit.

    9.0.0release notes

Deprecations 1

  • The configuration option is deprecated and will be removed in a future release.

    9.0.0release notes

Behavior and default changes 3

  • The Chrome browser version used during cypress run and when selecting Electron in cypress open was upgraded from 91 to 94.

    9.0.0release notes

  • Passing null as the encoding treats the file as binary and reads it as a Buffer.

    9.0.0release notes

  • Passing null as the encoding allows direct writing of buffers.

    9.0.0release notes

Tooling 1

  • Custom command implementations are now typed based on the declared custom chainables.

    9.0.0release notes

Fixes and other changes 3

  • Sticky elements within a fixed container can now be properly scrolled to during action commands.

    9.0.0release notes

  • It now correctly reflects the value from the application under test after cy.visit().

    9.0.0release notes

  • The Electron version was upgraded from 14.1.0 to 15.2.0.

    9.0.0release notes

cypress 814 changes

Breaking changes 3

  • Cypress checks browser versions and rejects unsupported versions; it supports Chrome >= 64, Firefox >= 86, and Edge >= 79.

    8.0.0release notes

  • All browsers run headlessly by default during cypress run.

    8.0.0release notes

  • Chrome launched headlessly through cypress run now uses a device pixel ratio of 1 by default, matching other browsers; the browser launch API can override it.

    8.0.0release notes

New APIs and options 1

  • Configure certificate authority and client certificates for tests on a per-URL basis.

    8.0.0release notes

Behavior and default changes 3

  • Calls within the plugins file are captured in stdout sent to the Cypress Dashboard and visible in its Output logs.

    8.0.0release notes

  • Setting this environment variable starts Cypress as a normal Node.js process rather than an Electron process.

    8.0.0release notes

  • The default screen size when running a headless browser is 1280x720 pixels.

    8.0.0release notes

Fixes and other changes 7

  • Arguments returned from a chained function are typed as any rather than incorrectly as jQuery.

    8.0.0release notes

  • delay now works correctly with a statusCode of 204.

    8.0.0release notes

  • localhost is now accepted as a valid hostname in the RouteMatcher.

    8.0.0release notes

  • The times option now works correctly with req.continue.

    8.0.0release notes

  • Using the experimental Cypress Studio should result in fewer “Studio failed to save commands” errors.

    8.0.0release notes

  • The type was updated so ConfigOptions match the JSON schema.

    8.0.0release notes

  • The type was updated as part of aligning ConfigOptions with the JSON schema.

    8.0.0release notes

cypress 734 changes

Breaking changes 16

  • Request handlers are matched starting with the most recently defined interceptor, allowing later interceptors to override earlier ones.

    7.0.0release notes

  • URL matching no longer matches a supplied string anywhere in the URL; it now requires equality or a minimatch.

    7.0.0release notes

  • Response handlers run in reverse order until res.send is called or no handlers remain.

    7.0.0release notes

  • The cy.route2 alias was removed; update usage to cy.intercept.

    7.0.0release notes

  • Component tests must be run with open-ct rather than cypress open.

    7.0.0release notes

  • Component tests must be run with run-ct rather than cypress run.

    7.0.0release notes

  • Cypress.moment has been removed; use a different datetime formatter.

    7.0.0release notes

  • Component test compilation now requires registering the dev-server:start event instead of using file:preprocessor.

    7.0.0release notes

  • Remove experimentalComponentTesting from cypress.json or Cypress will throw an error.

    7.0.0release notes

  • Installing Cypress now requires Node.js 12 or newer.

    7.0.0release notes

  • req.continue(cb) stops propagation to other event handlers, sends the request, and handles the response with cb.

    7.0.0release notes

  • The matchUrlAgainstPath property has been removed from RouteMatcher.

    7.0.0release notes

  • Falsy body values other than undefined are JSONified and sent as the body instead of being replaced with an empty string.

    7.0.0release notes

  • The delay option was removed; use delayMS instead.

    7.0.0release notes

  • Cypress fails the test on uncaught errors even when the application defines window.onerror.

    7.0.0release notes

  • An unhandled promise rejection in the application now fails the test and triggers uncaught:exception with the promise as its third argument.

    7.0.0release notes

New APIs and options 5

  • A new request-object event is available for cy.intercept response handling.

    7.0.0release notes

  • A new overload accepts url, routeMatcher, and a required handler, merging routeMatcher with url.

    7.0.0release notes

  • The type definition for cy.writeFile now allows four arguments.

    7.0.0release notes

  • The middleware option makes the supplied request handler run before non-middleware request handlers.

    7.0.0release notes

  • Different configuration values can now be passed to component tests and e2e tests.

    7.0.0release notes

Behavior and default changes 6

  • A command log entry is displayed when an uncaught exception or unhandled rejection occurs.

    7.0.0release notes

  • More JSON MIME types are parsed automatically, so some tests no longer need to call JSON.parse on request or response bodies.

    7.0.0release notes

  • The default preprocessor now targets a more modern version of ECMAScript.

    7.0.0release notes

  • The default headless browser window size is now 1920x1080 pixels for high-definition videos and screenshots.

    7.0.0release notes

  • The Cypress proxy now adds a keep-alive header to all proxy responses.

    7.0.0release notes

  • Cypress no longer forces specific NODE_OPTIONS.

    7.0.0release notes

Tooling 3

  • A new spec file can be created directly from the Desktop Test Runner.

    7.0.0release notes

  • A keyboard shortcut searches spec files in the Test Runner according to the operating system.

    7.0.0release notes

  • A dedicated alpha test runner runs component tests in the browser, enabling browser-based debugging.

    7.0.0release notes

Fixes and other changes 4

  • click no longer fails with a coordinate-history error when multiple is true.

    7.0.0release notes

  • Cypress now checks visibility correctly for elements with CSS position: sticky.

    7.0.0release notes

  • The set-cookie header type now allows string arrays.

    7.0.0release notes

  • then now shows the correct type when raw HTMLElements are provided.

    7.0.0release notes

cypress 619 changes

Breaking changes 5

  • Renamed to cy.intercept; update usages of cy.route2.

    6.0.0release notes

  • Assertions on elements absent from the DOM now fail unless asserting that the element should not.exist.

    6.0.0release notes

  • Elements with opacity: 0 on themselves or ancestors are no longer considered visible, but remain actionable.

    6.0.0release notes

  • Removed because network stubbing is now the default behavior; remove this configuration option.

    6.0.0release notes

  • HTTP status codes and reason phrases now match Node.js http.STATUS_CODES, which may affect code relying on reason phrases.

    6.0.0release notes

Deprecations 2

  • Deprecated; support will move to a plugin in a future release, and Cypress encourages using cy.intercept instead.

    6.0.0release notes

  • Deprecated; use cy.intercept to intercept requests using the Fetch API instead.

    6.0.0release notes

New APIs and options 3

  • Adds network-layer control of HTTP requests, allowing tests to intercept, modify, and wait on requests originating from the app.

    6.0.0release notes

  • Adds a --component flag to print the version of specific Cypress components, such as Electron or Node.

    6.0.0release notes

  • Adds the type of redirects to Response types.

    6.0.0release notes

Behavior and default changes 6

  • JSON request and response bodies captured by cy.intercept are automatically parsed, removing the need to call JSON.parse manually.

    6.0.0release notes

  • The type yielded by cy.wait(alias) changed to support cy.intercept.

    6.0.0release notes

  • Now displays the current Electron and bundled Node versions.

    6.0.0release notes

  • Passed to Chrome browser flags by default, writing shared memory files into /tmp instead of /dev/shm; remove custom plugin code that passes it.

    6.0.0release notes

  • The CLI now displays a warning when invalid configuration keys are passed.

    6.0.0release notes

  • The redirectedToUrl field is now optional in Response types.

    6.0.0release notes

Fixes and other changes 3

  • Using .type() and .click() on elements inside a contenteditable element now triggers events on the inside elements.

    6.0.0release notes

  • Fixed crashes and a white page when switching tabs while tests are running.

    6.0.0release notes

  • Fixed a regression that could prevent .type() from typing the entire string when focus was called away from the target element.

    6.0.0release notes

cypress 522 changes

Breaking changes 9

  • In spec files, the value of __dirname no longer includes leading slashes.

    5.0.0release notes

  • Elements with display: inline and visible child elements are no longer considered hidden.

    5.0.0release notes

  • Cypress no longer coerces esModuleInterop to true when compiling spec, support, and plugins files; set it in tsconfig.json if needed.

    5.0.0release notes

  • The configuration flag was removed because this behavior is now the default.

    5.0.0release notes

  • Cypress no longer supports file paths containing a question mark because the default webpack preprocessor does not support them.

    5.0.0release notes

  • In spec files, the value of __filename no longer includes leading slashes.

    5.0.0release notes

  • Linux systems now need libgbm-dev installed to run Cypress.

    5.0.0release notes

  • Installing Cypress now requires Node.js 10 or later.

    5.0.0release notes

  • Cypress now requires TypeScript 3.4 or later.

    5.0.0release notes

New APIs and options 3

  • Configure how many times Cypress retries a failing test.

    5.0.0release notes

  • Chain .snapshot() off cy.stub() and cy.spy() to disable snapshots during those commands.

    5.0.0release notes

  • Cypress can automatically retry a failed test before marking it as failed.

    5.0.0release notes

Behavior and default changes 1

  • TypeScript projects now load and use tsconfig.json to configure compilation of spec and support files.

    5.0.0release notes

Tooling 2

  • The type definition for Cypress's ApplicationWindow can now be extended.

    5.0.0release notes

  • A type definition for reporterOptions has been added.

    5.0.0release notes

Fixes and other changes 7

  • The last used browser is now correctly remembered when a non-default-channel browser was selected.

    5.0.0release notes

  • Running Firefox versions 75 and later no longer throws Cannot read property 'isAttached' of undefined.

    5.0.0release notes

  • Passed and failed test counts are now correct when a test passes but its afterEach fails.

    5.0.0release notes

  • Taking screenshots no longer fails when names exceed filesystem length limits.

    5.0.0release notes

  • Screenshots are now correctly taken when a test fails in an afterEach or beforeEach hook after that hook has already passed.

    5.0.0release notes

  • Calling scrollIntoView on an element in the shadow DOM no longer throws Maximum call stack size exceeded.

    5.0.0release notes

  • Rerunning tests no longer incorrectly throws Cannot set property 'err' of undefined.

    5.0.0release notes

cypress 411 changes

Breaking changes 6

  • Chai was upgraded, bringing breaking changes and new features.

    4.0.0release notes

  • Cypress no longer supports CJSX.

    4.0.0release notes

  • Errors caused when attempting to read arguments passed through config are now passed through.

    4.0.0release notes

  • Mocha was upgraded, bringing breaking changes and new features.

    4.0.0release notes

  • Installing Cypress now requires Node.js 8 or later.

    4.0.0release notes

  • Sinon.JS was upgraded, bringing breaking changes and new features.

    4.0.0release notes

New APIs and options 1

  • The nested assertion chainer property is now supported.

    4.0.0release notes

Behavior and default changes 2

  • The empty assertion is now supported for Map objects.

    4.0.0release notes

  • Appending .only to multiple tests or suites now runs all tests marked with .only.

    4.0.0release notes

Tooling 1

Fixes and other changes 1

  • The command now properly supports 0 as a value for indexes or object keys.

    4.0.0release notes