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 initcypress 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.
cy.fixture() and the fixture property of a cy.intercept() static response now fail if the resolved fixture path is outside fixturesFolder.
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.
The Cypress.dom.isType() TypeScript declaration was removed because it had no implementation.
cy.request() now reports an invalid encoding error for encoding: false, 0, or an empty string instead of crashing Cypress.
Node code in the config process, including setupNodeEvents, cy.task() handlers, and loaded plugins, now verifies TLS certificates the same way Node does.
.trigger() now rejects an empty event name, and the error displays the passed value instead of a placeholder.
Fails immediately when an intercept alias requests index
0, rather than retrying until timeout.Pass
{ hidden: true }to include elements hidden from the accessibility tree.Now waits for the navigated page to load, yields the window, and fails when the page does not load within the timeout.
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.
Cypress now merges its disabled Chrome features with values supplied in
before:browser:launch, rather than silently dropping Cypress's values.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.The result arguments supplied to after:run handlers have a changed shape; update property access in handlers.
The result arguments supplied to after:spec handlers have a changed shape; update property access in handlers.
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.
The configuration option was removed; Cypress warns if it remains, and there is no behavior change.
The migration-gate configuration option was removed in Cypress 16.0 and is no longer valid.
The minimum supported Angular version for component testing is now 21.
The minimum required Angular version is now 21.0.0; Angular 18, 19, and 20 are no longer supported.
Replaced with @angular/platform-browser.
Angular 17 is no longer supported for component testing; the minimum required Angular version is 18.0.0.
Component testing requires Angular 17.2.0 or later.
Removed from cypress/angular.
The event's second argument is now a launchOptions object rather than an array of browser arguments; use launchOptions.args to access arguments.
Starting in Cypress 14, official support covers the latest three major versions of Chrome, Firefox, and Edge.
CoffeeScript support was removed, affecting .coffee specs, support files, and fixtures.
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.
For Create React App component testing, change the framework option from create-react-app to react after selecting a bundler.
For Vue CLI component testing, change the framework option from vue-cli to vue after selecting a bundler.
This option is no longer supported; use
specPatterninside thecomponentconfiguration object.Configuration files are required, so configFile false is no longer valid in the module API; JSON config files are also unsupported.
Cookie commands use hostname rather than superdomain by default; pass an explicit domain option when cookies should be shared across subdomains.
Component tests now need a bundler; CRA users must eject to webpack or use vite, and change the framework configuration to react.
Removed; delete .end() calls.
Removed; replace calls with cy.task().
The result property
codewas renamed toexitCode; update assertions that read the old property.Use this command as the replacement for the removed cy.server, cy.route, and Cypress.server.defaults APIs.
A subsequent mount call in the same test removes the previously mounted component from the DOM.
Mounting options no longer accept cssFile, cssFiles, style, styles, stylesheet, or stylesheets; use test-imported CSS or a supportFile for styles.
Angular mounting-option providers are assigned at the module level, so they can override module providers but not providers declared in Component metadata.
Tests interacting with a second origin must use
cy.origin()because Cypress no longer injectsdocument.domaininto text/html content by default.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.
The command was removed; use cy.intercept instead.
The deprecated three-argument signature is no longer supported; use
.callsFake(fn)on the stub instead.CYPRESS_* environment variables populate env only and do not reach Cypress.expose(); pass values with --expose or copy them into config.expose.
The harness is deprecated and is no longer shipped with the Cypress binary.
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.
The temporary Angular 17 test harness is installed as
@cypress/angular; update mount imports fromcypress/angular.The package requires zone.js version 0.14.0 or newer for Angular component testing.
The Angular signals test harness has been merged into cypress/angular; migrate imports from cypress/angular-signals.
Cypress Cloud communication verifies certificate authorities and rejects unauthorized calls; networks using a self-signed CA can configure the listed CA environment variables.
The command no longer prints proxy or CYPRESS_* environment variables, making output safer to share in bug reports and CI logs.
To launch directly to the specs list, cypress open now requires --browser and either --e2e or --component.
This CLI command has been removed; use cypress open --component instead.
The plugins file is no longer supported or automatically loaded; its functionality is replaced by setupNodeEvents() and devServer configuration options.
The React 18 test harness has been merged into cypress/react; migrate imports from cypress/react18 to cypress/react.
The harness is deprecated and is no longer shipped with the Cypress binary.
This CLI command has been removed; use cypress run --component instead.
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.
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.
The experimental Cypress Studio has been removed.
Vite 4 is no longer supported for component testing; the minimum supported Vite version is 5.
The package is ESM-only and can no longer be used from a CommonJS context; move the Cypress configuration to ESM or TypeScript.
The default preprocessor no longer shims all built-ins previously provided by webpack v4; configure any additional required built-ins through webpack fallback options.
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.
Webpack 4 is no longer supported for end-to-end preprocessing; a deprecated standalone package version is available as a temporary workaround.
The undocumented firefox:force:gc and log:memory:pressure methods have been removed with no replacement.
This API can no longer overwrite readFile; use Cypress.Commands.overwriteQuery to overwrite the query instead.
Queries such as cookie and storage reads must be overwritten with overwriteQuery() rather than Cypress.Commands.overwrite().
Setting blockHosts with Cypress.config() during test execution now throws; set it in a describe, context, or it test configuration instead.
viewportWidth and viewportHeight can no longer be set through Cypress.config() during test execution; use cy.viewport() or test configuration instead.
A project cannot contain both JavaScript and TypeScript Cypress config files; Cypress reports an error when loading them together.
The API was removed; use cy.session to preserve cookies and browser storage between tests.
onElementis no longer an option todefaults; remove it from calls to the method.Removed; migrate to cy.env() or Cypress.expose().
Support for cypress.json was removed; Cypress loads JavaScript or TypeScript configuration files instead.
The API was renamed to
Cypress.ElementSelector; migrate callers to the new name.The API was removed; use cy.intercept instead.
Configure component testing dev servers by specifying a framework and bundler in this option; dev server packages are no longer directly importable.
The env key is no longer valid in per-test or suite config overrides; use expose if necessary.
This is now a testing-type-specific option. Its defaults differ by testing type, and
**/node_modules/**is automatically added and cannot be overridden.The configuration option was removed alongside cy.exec(); setting it prints a warning and is otherwise ignored.
The experimental boolean configuration option was removed and replaced by visibilityStrategy.
This configuration option has been removed; remove it and use cy.intercept() to handle fetch requests.
The experimental configuration option is ignored and produces a warning; use manageBrowserMemory instead.
The experiment flag was removed when Session and Origin became generally available.
The option was removed because its behavior— not injecting
document.domain—is now the default.The configuration option was removed; remove it and enable removeSRIAttributes if it was used for SRI.
The experimental Cypress Studio option has been removed; setting it causes Cypress to error on load.
Electron no longer allows fetch or XMLHttpRequest requests from an about:blank page; use cy.request() or navigate first with cy.visit().
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.
The
getSelectormethod has been removed from the Selector Playground API.Cypress 15 prebuilt Linux binaries no longer support distributions based on glibc below 2.31.
Cypress 14 prebuilt Linux binaries no longer support distributions based on glibc below 2.28.
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.
JIT compilation is now the default behavior for component tests; set this option to false to disable it.
JIT compilation no longer applies with vite because there is no benefit to enabling it.
The default delay between keystrokes changed from 10 to 0 milliseconds to improve performance of typing-heavy test runs.
Cypress 14 requires macOS 11 (Big Sur) or newer because of its Electron upgrade.
Replaces experimentalMemoryManagement and defaults to true, enabling browser memory management by default for users running Chromium-based browsers.
The properties and values returned by the Module API changed shape, so code reading cypress.run() results may need updated property access.
The cypress/vue mount function now returns an object containing both the VueWrapper and component instance, rather than the VueWrapper itself.
mountCallback from cypress/vue has been removed; the notes recommend using mount.
mountHook from cypress/react has been removed; the notes recommend replacing it with mount and a component.
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.
The minimum supported Next.js version for component testing is now 15.0.4.
Component testing requires Next.js 15.0.4 or newer, or Next.js 16; Next.js 14 is no longer supported.
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.
Cypress 15 supports Node.js 20, 22, and 24+, and no longer supports Node.js 18 or 23 for installing Cypress.
Cypress 14 requires Node.js 18 or newer to install Cypress and no longer supports Node.js 16 or 21.
Node.js 14 support has been removed; Node.js 16 is deprecated and users are recommended to update to at least Node.js 18.
Installing the Cypress npm package requires Node.js 14, 16, or 18 and later; Node.js 12, 15, and 17 are no longer supported.
The deprecated configuration option has been removed; Cypress uses the Node.js version it was launched with to execute setupNodeEvents.
Nuxt 2 apps can no longer be component tested out of the box because Cypress no longer ships the Vue 2 harness.
Component testing no longer supports React versions below 18.0.0; the minimum required version is 18.0.0.
The Run all specs functionality has been removed.
The Run filtered specs functionality has been removed.
Generated screenshot paths now strip common ancestor paths shared by discovered spec files or specs selected with
--specor the spec module API.A should callback throws if it invokes Cypress commands; use then to execute commands on the yielded value.
This option must be defined inside
componentore2e. Defaults no longer match CoffeeScript or CJSX; component tests matching the E2E pattern are excluded.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.
Cypress no longer ships the Svelte 3 and 4 component testing harness; the legacy harness can be installed independently via @cypress/svelte.
When enabled, Cypress resets the browser context before each test, clearing the page, cookies, localStorage, and sessionStorage across domains.
This option is no longer used; use
specPatterninside thecomponentore2econfiguration object.The minimum supported TypeScript version is 4.x.
unmount from cypress/react has been removed; the notes recommend using React's unmountComponentAtNode API.
Unsupported browser versions can no longer be run with cypress run or cypress open; Cypress displays an error instead.
Video recording is disabled by default; set video to true to continue recording.
Video compression is disabled by default, reducing run time while producing larger, higher-quality video files; enable it to reduce file size.
Generated video paths now strip common ancestor paths shared by discovered spec files or specs selected with
--specor the spec module API.This configuration option has been removed; delete passing-test videos if you want to prevent their upload to Cloud.
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.
Replaces experimentalFastVisibility, accepts 'legacy' or 'modern', and defaults to 'modern', using the browser's native Element.checkVisibility() API.
The minimum supported Vite version for component testing is now 8.
An inline viteConfig in cypress.config no longer automatically merges with vite.config.js; explicitly import and merge the configuration if needed.
Cypress no longer ships the Vue 2 component testing harness with the Cypress binary; it can be installed independently as @cypress/vue2.
Component tests using Vue CLI now need a bundler; migrate to webpack or vite.
@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.
within throws when given multiple elements as its subject; reduce the subject to one element or use aliases or each for collections.
Security 3
undici was upgraded to address an Improper Certificate Validation vulnerability reported in security scans.
Environment variable values are masked on the Project settings page.
Use cy.env() to read sensitive values asynchronously; it is read-only and requests only the keys you need.
Deprecations 5
Launching directly into component testing with this command is deprecated; use
cypress open --componentinstead.Electron is deprecated as a test browser; plan to switch to an installed browser.
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.
Setting
injectDocumentDomainto true avoids somecy.origin()calls for matching superdomains but emits a deprecation warning and will be removed in a future version.The resourceType option on cy.intercept is deprecated and its types may change or it may be removed in the future.
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.
Pass
{ native: false }to also match elements with aroleattribute when HTML has an element for that role.TypeScript now accepts an offset that sets a single axis, leaving the other at 0.
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.
Pass a timeout to cy.env() for slow secret lookups; its 4000ms default does not follow defaultCommandTimeout.
The React mount library is included in the main
cypresspackage and can be imported from this path.The Vue mount library is included in the main
cypresspackage and can be imported from this path.Cypress automatically loads a project-root cypress.config.js file when present.
Cypress automatically loads a project-root cypress.config.ts file when present.
The Selector Playground API was renamed to
Cypress.ElementSelectorto reflect use beyond the Selector Playground.Use Cypress.expose() for public, non-sensitive configuration that needs synchronous access and can be available in the browser.
Set
defaultBrowserto an installed browser to prevent Cypress from falling back to Electron when no browser is specified.Set this option to true to use external dependencies in cy.origin callbacks.
Configure public, non-sensitive values under expose instead of env when they should be available through Cypress.expose().
Pass public configuration values with --expose when running Cypress; -x is also available.
Routes every browser through the legacy network path as a temporary migration option; deprecated at introduction and warns when set.
Enable this option if you previously used experimentalSourceRewriting to work around Subresource Integrity errors.
Pass this option to cypress run to show the Runner UI during a Cloud-recorded run.
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().
Improved performance on subjects with many elements inside the shadow DOM.
Behavior and default changes 15
Child commands called directly off
cy, such ascy.click(), now show the same reworded error.Overrides cancelIdleCallback by default, preventing canceled idle callbacks from running on the next cy.tick(); explicitly listing it no longer throws an error.
When it starts a chain, cy.contains now appears as a parent command in the Command Log instead of a child command.
Now reports that the spec is running and directs users to
cypress tap statusfor progress, instead of printing the testing type and browser.When preparing a Test Replay recording fails during
cypress run, Cypress now recommends checking available disk space and temporary-directory read/write access.Cypress now uses @angular/platform-browser in place of @angular/platform-browser-dynamic; Angular 21 uses the replacement by default.
Now a retry-able query that re-reads localStorage across origins and retries chained assertions; it accepts a timeout option and uses defaultCommandTimeout.
Now a retry-able query that re-reads sessionStorage across origins and retries chained assertions; it accepts a timeout option and uses defaultCommandTimeout.
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().
The command became generally available; using require and import in its callback remains disabled by default.
The command became generally available for setting up and caching browser storage between tests.
The zoneless testing harness is now the default cypress/angular test harness.
Built-in placeholder
mountandhovercommands can now be overwritten without usingCypress.Commands.overwrite().Users with this existing experimental flag can remove it from their configuration; JIT compilation is now controlled by justInTimeCompile.
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.
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.
When the component testing dev server fails to start, Cypress explains the failure, shows the server error, and links to its documentation.
Angular version 22 is now supported in component testing, including Launchpad project detection and the @cypress/schematic Angular CLI integration.
Use this command to launch directly into component testing from the main app.
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.
cy.contains() works inside cy.document().within(); missing content reports an assertion error instead of a TypeError.
Responses compressed with x-gzip are decoded correctly when Cypress's HTTP proxy rewrites their contents, preventing corrupted pages during script injection.
Opening Cypress with both a --browser and a testing type flag no longer launches the browser twice on the major-version welcome screen.
Fixed a headed Chrome, Chromium, and Edge regression that could make the Cypress browser extension stop responding and cause @cypress/puppeteer to fail.
A run whose tests all passed no longer exits with code 1 if the browser makes a request while Cypress is shutting down.
cypress run no longer stops printing output and hangs when a test is retried after a hook timed out on the previous attempt.
The listed Cypress.dom methods now accept either a DOM element or a jQuery object, as their types already specified.
TypeScript now accepts a number, boolean, or null as the expected value of the data assertion.
The TypeScript types for getCoordsByPosition() now match its actual return value, an object with x and y rather than a number.
The TypeScript types for getElements() now match what the method accepts and returns.
The TypeScript types for getFirstDeepestElement() now match what the method accepts and returns.
TypeScript now accepts a DOM element, an array of elements, a jQuery object, or a predicate function in the match assertion.
Matching errors from cy.readFile() display an empty string as '' instead of leaving the value blank.
.rightclick() now reports buttons: 0 on pointerup and mouseup events, matching a real right click after the button is released.
Concurrent cypress run processes sharing a project folder save screenshots under distinct numbered names instead of silently overwriting one another.
Scrolling to positions such as bottom, right, bottomRight, and percentages now reaches the correct position with always-visible scrollbars.
TypeScript now types the value yielded by cy.session() as the session status: 'created', 'restored', or 'recreated', rather than null.
Cypress.dom.stringify() types now accept window and document, and make the second argument optional and limited to 'long' or 'short'.
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.
Videos from concurrent runs sharing a project folder get distinct numbered names when trashAssetsBeforeRuns is false.
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.
The error for failOnStatusCode: false with retryOnStatusCodeFailure: true now shows passed values, explains the requirement, and lists valid combinations.
Matching errors from cy.writeFile() display an empty string as '' instead of leaving the value blank.
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.
Fixed configured client certificate entries not being presented for browser-issued requests in Chrome, Chromium, and Edge.
TypeScript now types the yielded object as the plain object Cypress actually yields rather than the browser's
window.location.Fixed an issue that could prevent cy.prompt and Studio from loading.
Fixed changed cookies being sent with their earlier value on the next application navigation.
Fixed
cypress runchanging the browser thatcypress openselects by default for a project.Fixed config-file stderr output intermittently missing from terminal output when written immediately after another line.
Fixed errors with non-overwritable messages being reported as a getter-only property TypeError, hiding the original test failure.
The
searchParamsproperty is now typed, so accessing it throughcy.location()or the yielded location object no longer reports a type error.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.
The error for calling .clear() on an unsupported element now lists the accepted textarea, text-like input, and editable elements.
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.
The navigation error now explains that commands on another subdomain require cy.origin() when injectDocumentDomain is disabled, the default.
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.
TypeScript now accepts an options object before the callback, matching runtime support.
The third argument of a DOM element callback is now typed as the iterated jQuery collection rather than an array of elements.
TypeScript now accepts an options object in place of the filter argument, matching runtime support.
The corresponding synchronous-return error now links to the .then() documentation.
The yielded clock's tick method is now typed as returning the clock's new time in milliseconds instead of void.
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.
Fixed a regression that could stop output during Chrome, Chromium, or Edge runs and leave them hanging indefinitely.
When an assertion matches no element, the Command Log now shows the searched content instead of reporting
undefined.Fixed headless Electron windows being smaller than requested on Windows during
cypress run, which made failure screenshots and recorded videos smaller than expected.Fixed TypeScript configuration types so
keystrokeDelaycompiles as an option Cypress already read and validated at runtime.Fixed a Cypress server memory leak that retained state for every service worker until the browser closed, causing memory use to climb during runs.
Fixed an issue where the event handler did not run when a project was closed in cypress open mode with experimentalInteractiveRunEvents set.
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.
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.
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.
The 'top' and 'bottom' values again align only the vertical axis instead of horizontally scrolling an already-visible element's container.
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.
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.
In Electron, navigation proceeds automatically when a page's beforeunload handler requests confirmation, matching Chrome behavior and avoiding page load timeouts.
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.
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.
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.
Delay values >= 2**31 now throw a clear validation error instead of being silently ignored by setTimeout.
The flag was removed and can be deleted from configuration.
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.
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.
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.
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.
Deprecations 4
cy.exec() is deprecated and will be removed in a future major release; use cy.task() instead.
The execTimeout configuration option is deprecated alongside cy.exec(), in favor of taskTimeout.
cy.end() is deprecated and will be removed in a future release; start a new chain of commands off of cy instead.
Cypress.env() is deprecated and will be removed in a future major release; migrate to the new environment-variable access approach.
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.
The command's subcommands can print machine-readable JSON output with --json.
Adds a command for AI agents to access open-mode Cypress sessions, run specs, inspect results, and inspect the application DOM and accessibility tree.
Accepts per-axis alignment values and the single values 'start' and 'end', letting developers independently control vertical and horizontal scrolling before an action.
Added .exists as an alias of .exist for Cypress assertions.
Added .greaterThanOrEqual as an alias of .least for Cypress assertions.
Added .lessThanOrEqual as an alias of .most for Cypress assertions.
Added support for chaining .oneOf with .contain in Cypress assertions.
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.
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.
Sign up for Cypress Cloud is now supported from the Cypress desktop app, in addition to logging in.
Adds an option to enable word wrap for Studio panel code.
A <script data-cy-bootstrap> tag enables manual bootstrap script injection to work around React SSR hydration mismatches and use suppressHydrationWarning.
Adds a command line flag to allow runs to pass when no tests are found.
Adds a configuration option that disallows use of the deprecated Cypress.env() API.
Adds a mount function for zoneless Angular Component Testing.
Introduced an experiment that changes how Cypress performs visibility checks and assertions.
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.
Fixed renderer memory retention from each cy.press() call in Chromium-based browsers, reducing memory growth in specs with many calls.
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.
Hovering over a test's command list no longer triggers a style recalculation across the entire list, avoiding progressively slower interactions during long tests.
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.
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.
The App sends a smaller snapshot of project config when recording to Cypress Cloud, reducing payload size and potentially speeding up recording.
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.
Element highlighting in Command Log snapshots is significantly faster, especially for multiple elements or complex pages.
Time between specs is improved by avoiding a reset of file_systems StorageType state when executing Storage.clearDataForOrigin.
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.
Recorded runs within Argo CD and Argo Workflows have improved CI environment detection and commit metadata capture.
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.
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.
When multiple spec patterns are provided, Cypress warns about each pattern that does not match any spec files instead of silently skipping it.
Chrome and Electron tests can make cross-origin requests to local or private network addresses without browser permission prompts blocking them.
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.
The log in and sign up modals automatically start browser-based authentication when opened, removing the extra “Log in” click.
cy.prompt is now in beta and available without configuration, allowing test steps to be written in plain English instead of code.
Studio warns users before navigating away when the editor has unsaved changes.
The proxy now supports Brotli compression.
The experimentalRunAllSpecs option can now be used for component testing as well as e2e testing.
The Selector Playground is available to all users in open mode and automatically enables interactive mode to build and test selectors.
The keyboard shortcuts modal now shows the shortcut for saving Studio changes: ⌘ + s on Mac or Ctrl + s on Windows/Linux.
Chrome's autofill popup is disabled when filling address and credit card forms during test execution.
The Get code modal warns when unsaved Studio changes will be lost if the user saves generated code.
A failed cy.prompt() download now provides more context in its error message.
Cypress now prefers 64-bit browser installs over 32-bit browser installs.
The code button styles are updated, and the Get Code label on cy.prompt() is renamed to Code.
When this variable is set to 1, certain messages written to stderr are no longer bracketed with verbose tags.
Tooling 10
TypeScript 7 is supported when preprocessing TypeScript spec and support files, and by the component testing setup wizard.
Bun is recognized as a package manager, so the Cypress package can be installed and invoked with Bun.
Shipped types now reference the @types package directly so type resolution is independent of the user's installed @sinonjs/fake-timers version.
Cypress officially supports TypeScript 6.
Vite 8 is supported for component testing.
Studio now allows adding a new test when focused on a single test, supporting adding tests as you record.
The App's resolved configuration interface now displays resolved expose values, helping developers inspect their configuration.
Angular version 21 is now supported in component testing.
Next.js version 16 is supported in component testing using webpack to bundle components; Turbopack is not yet supported.
The Command Log shows a Self-healed badge when cy.prompt() steps automatically recover after the needed element is not found in the cache.
Fixes and other changes 124
The command no longer prints HTTP request lines to the attached cypress open session's terminal.
Chrome and Firefox no longer offer to translate the application under test during a run.
Test-level blockHosts overrides now take effect at runtime and are restored between specs.
The console props output labels requested environment variable names under a single Env vars label instead of numbered keys.
Fixes WebKit runs hanging when intercepted parallel requests exceed the browser's per-host connection pool.
Prevents the same attempt line from being printed twice when both beforeEach and afterEach fail during an attempt.
While cy.clock() is active, the faked performance object now implements performance.mark() instead of returning undefined.
While cy.clock() is active, the faked performance object now implements performance.measure() instead of returning undefined.
The faked performance object now reports a faked performance.timeOrigin while cy.clock() is active.
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.
Pinning a command in the Command Log no longer leaves the AUT snapshot permanently blank with the pin stuck on.
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.
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.
Stopping a run in open mode no longer clears the AUT.
The configuration validation error for an absolute
cafilepath references the correct certificate.Passing the options argument, such as
{ log: false }, no longer raises a TypeScript argument-count error.Auth matching compares the full Basic authentication password, so passwords containing a colon match correctly.
Routes with a numeric port now match requests on non-default ports.
An intermittent error reading
appliedno longer causes a cy.origin block to fail and be incorrectly reported as originating from test code.Session cookies set on the primary origin are included in the identity provider's callback request back to that origin.
Interpolated values containing
$characters or sequences are now shown verbatim instead of producing leaked placeholders or corrupted, duplicated, or dropped text.HTTP 3xx responses, including 304 Not Modified, display as successful rather than failed in the Command Log.
Inline source maps without a charset, including those emitted by esbuild, are now decoded instead of silently dropped.
When
passesRequiredis 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.cy.request()andcy.intercept()accept the HTTP QUERY method, which was previously rejected as invalid in the browser.TypeScript spec and support files now compile with the TypeScript 7 support added in 15.18.0.
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.
Commands that read from the application under test target the application rather than the command log when the application sets
window.name.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.
Memory is now managed correctly when Cypress runs inside a memory-limited container, preventing the browser from running out of memory and crashing.
Fixed a renderer crash when the application under test triggered a ResizeObserver loop while the command log was visible.
Chaining an assertion after .should('exist') on a raw DOM element now works because the existence assertion no longer replaces the subject with null.
Fixed a Windows error during test failure stack enhancement that could mask the original error.
Corrected the TypeScript type definitions' @default value for videoCompression from 32 to false.
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.
In the experimental WebKit browser, a request to focus the browser window now brings the active page to the front.
The setup wizard now reliably displays the auto-detected framework and bundler.
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.
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.
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.
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.
Chai property syntax for focus assertions no longer raises a TypeScript error when the assertion works at runtime.
Opening an unconfigured project from a git repository sub-directory, such as a monorepo package, no longer skips project setup.
The userAgent configuration option is now applied when running tests in the experimental WebKit browser.
With experimentalInteractiveRunEvents enabled, the plugin event now fires exactly once per spec run, including when cross-origin navigation reloads the runner page.
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.
Calling req.destroy() or using forceNetworkError inside an intercept handler in experimental WebKit no longer causes infinite request loops.
Firefox requests now send Secure cookies to localhost and loopback addresses over HTTP when set over HTTPS, matching browser behavior and Cypress in Chrome.
Screenshots no longer capture changing pixels from some running web animations.
Passing a cy.fixture alias preserves the file name every time the fixture is used, avoiding uploads rejected as missing a file.
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.
The resolved remote origin now matches the browser's location.origin, omitting default ports and embedded credentials.
Component tests no longer fail intermittently after many other specs have run in the same browser tab.
In experimental WebKit component test runs with video recording enabled, each spec now gets its own video and the run exits normally.
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.
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.
The config passed to plugins and setupNodeEvents now reports false in run mode and true in open mode.
After a same-origin fetch or XHR updates a cookie, subsequent navigation or reload no longer sends the previous cookie value.
Returning to a previously visited origin no longer intermittently loads the Cypress app interface instead of the application.
TypeScript types for cy.get('@alias') now resolve to Chainable<S> instead of Chainable<JQuery<HTMLElement>>.
Empty-string request and response header values are preserved; headers are removed only when deleted or set to undefined.
A stale internal unload cookie is cleared whenever the application document is served, preventing intermittent origin mismatches during navigation after switching super-domains.
Clicking an origin command now prints its origin, arguments, and yielded subject without error; an unserializable yielded subject is represented by its type.
FormData uploads with a non-lowercase Content-Type header now use the generated multipart boundary instead of sending conflicting content-type headers.
Waiting on an aliased intercepted request no longer times out when the browser connection closes before the response completes, including during navigation.
TypeScript types for cy.wait('@alias') now resolve to Chainable<S> instead of Chainable<JQuery<HTMLElement>>.
Recorded Jenkins runs now report the actual branch name without a remote prefix and correctly handle multibranch pipelines.
The CLI now returns once Cypress is ready to use instead of blocking until the GUI is closed.
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.
A renderer crash mid-spec now fails the affected spec and allows the run to continue instead of hanging until the spec timeout.
On Windows with immediate deletion configured, Cypress no longer incorrectly warns that it failed to trash existing run results when the assets were removed.
Runs with failure screenshots enabled no longer retain each failure screenshot in memory for the rest of the run, preventing progressively slower runs.
HTML markup in Sinon spy assertion messages is escaped and shown as literal text rather than rendered as live DOM in the command log.
Video recording no longer silently fails on Firefox 93 and later.
The config option now loads ECDSA (EC) PEM and PKCS#12 client certificates.
Fixed an intermittent missing-file error during cy.prompt and Studio bundle initialization.
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.
Fixed task-list output that could render one character per line in CI environments with a pseudo-TTY and no COLUMNS setting.
Clicking “back to projects” or switching projects while the initial config load is in flight no longer fails.
Deleting results.video in after:spec to retain videos only for failing specs no longer leaves an empty compressed MP4 file.
Cypress no longer aborts the process and shows a crash dialog when it receives SIGINT.
Attribute values containing CSS-special characters no longer cause an uncaught selector syntax error that crashes the runner.
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.
Transient HTTP 500 responses from Cypress Cloud are now retried for idempotent requests.
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.
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.
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.
A transient Firefox launch failure no longer causes Cypress to exit instead of retrying the browser launch.
During
cypress openconfig reload, the internal HTTP server no longer accepts requests before primary remote state initialization, avoiding occasional crashes in in-flight browser requests.Waiting on multiple aliases no longer surfaces an unhandled
routeIdrejection when a retry short-circuits during runnable teardown.Increased the limit for decrypted payloads to support large cy.prompt requests and responses.
Fixed a memory leak where each spec rerun accumulated an uncaughtException listener, preventing the previous Mocha runner and retained objects from being garbage collected.
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.
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.
Tests in open mode now pick up modified env values in the user's config file.
Fixed an issue where Cypress could hang if it could no longer connect to the dev server while running component tests.
When a test is isolated, the rerun button now says “Run test.”
In develop mode, closing the Electron window now exits the gulp process instead of leaving it running.
Fixes internal tags on stderr streams surfacing to the end user CLI during component testing.
Fixes the terminal displaying raw characters after sending SIGINT (e.g. Ctrl+C) to exit Cypress.
Fixes Cypress hanging when waiting on multiple intercepts and the page navigates, causing a stability change.
Executing cypress install to download and install the Cypress binary no longer outputs a Node.js DEP0169 deprecation warning.
Cancelled or incomplete login attempts now properly open a browser window or tab, without requiring a Cypress restart before trying again.
Run log headers now display the Node.js path correctly for typical GitHub Actions paths, without incorrectly displaying ANSI escape sequences for longer paths.
On Windows, extraction retries after EPERM or EACCES with a short delay to handle transient file locks.
Fixes creating a new test in Studio, including showing the test-naming form when starting from an empty spec.
The test:after:run and test:after:run:async events now fire after both a before all and after all hook fail.
The ffprobe path is set at module load time so it is available for all video operations, including on darwin-arm64.
Fixed an EPIPE error appearing in the terminal after pressing CTRL+C.
Fixed loading failures for Next.js Component Testing without a TypeScript-based Next config in versions 16.0.3 and up.
Fixed the Command Log error message so it correctly displays the expected length.
Fixed removeAttribute for attributes other than target on anchor or form elements after clicking links with target="_top" or target="_parent".
Fixed browser freezes when Cypress intercepts a synchronous XHR request using a routeHandler.
Cloud bundles are written atomically to avoid issues caused by concurrent downloads.
Updated the error message shown when the cy.prompt() bundle is deleted while in use.
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.
No longer causes infinite recursion or freezes the Cypress App when called with objects containing circular references.
Fixes issues in certain cases when larger than expected config values are used while recording to Cypress Cloud.
Fixes cases where stack traces used to determine a test's invocation details are incorrect.
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.
The cy.exec() type now reflects the correct yielded response type of exitCode.
Absolute file paths are now correctly determined from the source map when the source map root is updated.
Command snapshots are now correctly displayed in Studio.
Command execution no longer throws an error when the application under test overwrites window.$ with a non-function.
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.
It no longer yields the <body> element when matching content inside <script> or <style> tags.
Adding an existing built-in Cypress command now throws an error; use Cypress.Commands.overwrite() to change its behavior.
Passing an invalid value now throws an error instead of being ignored.
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.
Cypress no longer supports Windows 32-bit.
Deprecations 1
The configuration option is deprecated and will be removed in a future release.
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.
Passing null as the encoding treats the file as binary and reads it as a Buffer.
Passing null as the encoding allows direct writing of buffers.
Tooling 1
Custom command implementations are now typed based on the declared custom chainables.
Fixes and other changes 3
Sticky elements within a fixed container can now be properly scrolled to during action commands.
It now correctly reflects the value from the application under test after cy.visit().
The Electron version was upgraded from 14.1.0 to 15.2.0.
cypress 814 changes
Breaking changes 3
Cypress checks browser versions and rejects unsupported versions; it supports Chrome >= 64, Firefox >= 86, and Edge >= 79.
All browsers run headlessly by default during cypress run.
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.
New APIs and options 1
Configure certificate authority and client certificates for tests on a per-URL basis.
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.
Setting this environment variable starts Cypress as a normal Node.js process rather than an Electron process.
The default screen size when running a headless browser is 1280x720 pixels.
Fixes and other changes 7
Arguments returned from a chained function are typed as any rather than incorrectly as jQuery.
delay now works correctly with a statusCode of 204.
localhost is now accepted as a valid hostname in the RouteMatcher.
The times option now works correctly with req.continue.
Using the experimental Cypress Studio should result in fewer “Studio failed to save commands” errors.
The type was updated so ConfigOptions match the JSON schema.
The type was updated as part of aligning ConfigOptions with the JSON schema.
cypress 734 changes
Breaking changes 16
Request handlers are matched starting with the most recently defined interceptor, allowing later interceptors to override earlier ones.
URL matching no longer matches a supplied string anywhere in the URL; it now requires equality or a minimatch.
Response handlers run in reverse order until res.send is called or no handlers remain.
The cy.route2 alias was removed; update usage to cy.intercept.
Component tests must be run with open-ct rather than cypress open.
Component tests must be run with run-ct rather than cypress run.
Cypress.moment has been removed; use a different datetime formatter.
Component test compilation now requires registering the dev-server:start event instead of using file:preprocessor.
Remove experimentalComponentTesting from cypress.json or Cypress will throw an error.
Installing Cypress now requires Node.js 12 or newer.
req.continue(cb) stops propagation to other event handlers, sends the request, and handles the response with cb.
The matchUrlAgainstPath property has been removed from RouteMatcher.
Falsy body values other than undefined are JSONified and sent as the body instead of being replaced with an empty string.
The delay option was removed; use delayMS instead.
Cypress fails the test on uncaught errors even when the application defines window.onerror.
An unhandled promise rejection in the application now fails the test and triggers uncaught:exception with the promise as its third argument.
New APIs and options 5
A new request-object event is available for cy.intercept response handling.
A new overload accepts url, routeMatcher, and a required handler, merging routeMatcher with url.
The type definition for cy.writeFile now allows four arguments.
The middleware option makes the supplied request handler run before non-middleware request handlers.
Different configuration values can now be passed to component tests and e2e tests.
Behavior and default changes 6
A command log entry is displayed when an uncaught exception or unhandled rejection occurs.
More JSON MIME types are parsed automatically, so some tests no longer need to call JSON.parse on request or response bodies.
The default preprocessor now targets a more modern version of ECMAScript.
The default headless browser window size is now 1920x1080 pixels for high-definition videos and screenshots.
The Cypress proxy now adds a keep-alive header to all proxy responses.
Cypress no longer forces specific NODE_OPTIONS.
Tooling 3
A new spec file can be created directly from the Desktop Test Runner.
A keyboard shortcut searches spec files in the Test Runner according to the operating system.
A dedicated alpha test runner runs component tests in the browser, enabling browser-based debugging.
Fixes and other changes 4
click no longer fails with a coordinate-history error when multiple is true.
Cypress now checks visibility correctly for elements with CSS position: sticky.
The set-cookie header type now allows string arrays.
then now shows the correct type when raw HTMLElements are provided.
cypress 619 changes
Breaking changes 5
Renamed to cy.intercept; update usages of cy.route2.
Assertions on elements absent from the DOM now fail unless asserting that the element should not.exist.
Elements with opacity: 0 on themselves or ancestors are no longer considered visible, but remain actionable.
Removed because network stubbing is now the default behavior; remove this configuration option.
HTTP status codes and reason phrases now match Node.js http.STATUS_CODES, which may affect code relying on reason phrases.
Deprecations 2
Deprecated; support will move to a plugin in a future release, and Cypress encourages using cy.intercept instead.
Deprecated; use cy.intercept to intercept requests using the Fetch API instead.
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.
Adds a --component flag to print the version of specific Cypress components, such as Electron or Node.
Adds the type of redirects to Response types.
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.
The type yielded by cy.wait(alias) changed to support cy.intercept.
Now displays the current Electron and bundled Node versions.
Passed to Chrome browser flags by default, writing shared memory files into /tmp instead of /dev/shm; remove custom plugin code that passes it.
The CLI now displays a warning when invalid configuration keys are passed.
The redirectedToUrl field is now optional in Response types.
Fixes and other changes 3
Using .type() and .click() on elements inside a contenteditable element now triggers events on the inside elements.
Fixed crashes and a white page when switching tabs while tests are running.
Fixed a regression that could prevent .type() from typing the entire string when focus was called away from the target element.
cypress 522 changes
Breaking changes 9
In spec files, the value of
__dirnameno longer includes leading slashes.Elements with
display: inlineand visible child elements are no longer considered hidden.Cypress no longer coerces
esModuleInteroptotruewhen compiling spec, support, and plugins files; set it intsconfig.jsonif needed.The configuration flag was removed because this behavior is now the default.
Cypress no longer supports file paths containing a question mark because the default webpack preprocessor does not support them.
In spec files, the value of
__filenameno longer includes leading slashes.Linux systems now need
libgbm-devinstalled to run Cypress.Installing Cypress now requires Node.js 10 or later.
Cypress now requires TypeScript 3.4 or later.
New APIs and options 3
Configure how many times Cypress retries a failing test.
Chain
.snapshot()offcy.stub()andcy.spy()to disable snapshots during those commands.Cypress can automatically retry a failed test before marking it as failed.
Behavior and default changes 1
TypeScript projects now load and use
tsconfig.jsonto configure compilation of spec and support files.
Tooling 2
The type definition for Cypress's
ApplicationWindowcan now be extended.A type definition for
reporterOptionshas been added.
Fixes and other changes 7
The last used browser is now correctly remembered when a non-default-channel browser was selected.
Running Firefox versions 75 and later no longer throws
Cannot read property 'isAttached' of undefined.Passed and failed test counts are now correct when a test passes but its
afterEachfails.Taking screenshots no longer fails when names exceed filesystem length limits.
Screenshots are now correctly taken when a test fails in an
afterEachorbeforeEachhook after that hook has already passed.Calling
scrollIntoViewon an element in the shadow DOM no longer throwsMaximum call stack size exceeded.Rerunning tests no longer incorrectly throws
Cannot set property 'err' of undefined.
cypress 411 changes
Breaking changes 6
Chai was upgraded, bringing breaking changes and new features.
Cypress no longer supports CJSX.
Errors caused when attempting to read arguments passed through
configare now passed through.Mocha was upgraded, bringing breaking changes and new features.
Installing Cypress now requires Node.js 8 or later.
Sinon.JS was upgraded, bringing breaking changes and new features.
New APIs and options 1
The
nestedassertion chainer property is now supported.
Behavior and default changes 2
The
emptyassertion is now supported for Map objects.Appending
.onlyto multiple tests or suites now runs all tests marked with.only.
Tooling 1
Types for plugin events have been added.
Fixes and other changes 1
The command now properly supports 0 as a value for indexes or object keys.