Cypress v5.1.0 Release Notes
Release Date: 2020-09-01 // over 3 years ago-
🚀 Released 9/1/2020
🔋 Features:
- Introducing experimental full network stubbing support 🎉.
- With
experimentalNetworkStubbing
enabled, thecy.route2
command is available. - By using cy.route2(), your tests can intercept, modify, and wait on any type of HTTP request originating from your app, including
XMLHttpRequest
s,fetch
requests, beacons, and subresources (like iframes and scripts). - Outgoing HTTP requests can be modified before reaching the destination server, and the HTTP response can be intercepted as well before it reaches the browser.
- See the cy.route2() docs for more information on how to enable this experiment.
- With
cy.trigger()
now accepts aneventConstructor
option for specifying the constructor with which to create the event to trigger. Addresses #5650.
🛠 Bugfixes:
- 👌 Improved warnings for when user is exceeding test limits of the free Dashboard plan. Addresses #8409.
- ➕ Added
retries
toTestOptions
types. Addresses #8405. - ➕ Added types for
specType
field onCypress.spec
. Addresses #8256. - 🛠 Fixed a typo in type definitions. Addresses #8417.
- 🔌 Cypress now resolves and loads tsconfig.json for TypeScript projects starting from the plugins directory. Addresses #8359.
- 🛠 Fixed an issue where, if npm config's
noproxy
is set, unexpected behavior could occur. Addresses #8287. - 🛠 Fixed an issue where nesting hooks within other hooks caused the test to never finish. Addresses #8350.
- 🛠 Fixed an issue in where tests would unexpectedly fail with a "Can't resolve 'async_hooks'" error. Addresses #8375.
- 🛠 Fixed an issue where return values from blob utils were mistaken for promises and could cause errors. Addresses #8365.
- 🛠 Fixed an issue with loading
.mjs
files. Addresses #8361. - 🛠 Fixed an issue causing tests to run slowly in Electron. Addresses #7930.
- Using
.should
with only chainer assertions will now throw an error. Addresses #883. cy.trigger()
now includes theview
property in the event object when appropriate. Addresses #3686.- 🛠 Fixed an issue where Cypress would not detect newer 64-bit installations of Chrome on Windows. Addresses #8425.
- 🛠 Fixed an issue where Cypress would not detect per-user Firefox installations on Windows. Addresses #8432.
⚡️ Dependency Updates:
- Introducing experimental full network stubbing support 🎉.