Cypress v4.2.0 Release Notes
Release Date: 2020-03-16 // about 4 years ago-
๐ Released 3/16/2020
๐ Features:
- Videos can now be recorded when running Electron in
--headed
mode. Addresses #1767. - ๐จ
cypress cache list
now prints the last time the cached binary was accessed for each version present. Addresses #6682.
๐ Bugfixes:
- ๐ We fixed a regression in 3.8.3 where HTTPS requests could experience slowdown. Fixes #6659.
- ๐ We now detect some installations of Firefox that were previously undetected. Fixes #6669.
- ๐ We fixed a race condition where an asynchronous error could fail to be caught when running the plugins file process. Fixes #6570.
- ๐ We now more thoroughly ensure the parent of an element exists when recursively calling actionability checks in order to prevent some maximum call stack errors. Fixes #6707.
- ๐ Specfiles containing
&
or%
characters now correctly run instead of erroring. Fixes #4210. - โ We added support for running tests on Jira plugins even when Jira scripts were not minified. Fixes #1436.
- โ
We fixed a bug causing specs to hang after rerunning tests during
cypress open
when there was an exception if thrown in anafter
hook. Fixes #6619. - ๐จ
cypress verify
no longer incorrectly prints messaging about this being the first time using that Cypress version. Fixes #6607. - ๐ Screenshots no longer fail to be taken in Electron when Cypress
DEBUG
logs are enabled. Fixes #6662.
Misc:
- A warning is now printed when setting the reserved key
CYPRESS_INTERNAL_ENV
to a non-production value. Addresses #6436. - ๐ When DEBUG logs are printed from
cypress:launcher
, they now print a clearer log during browser detection for easier reading. Addresses #6700. - โ The Test Runner now renders ANSI colors when there is a syntax error in the spec file. Addresses #6533.
- โ The Test Runner now has an icon indicating whether the specs list parent folder is collapsed. Addresses #6277.
- ๐ There's better type information for
.click
,.dblclick
, and.rightclick
command'sposition
argument. Addresses #6341. - There's a more robust type signature for
.its()
and.invoke()
. Addresses #6431. - Using
Cypress.dom.isDetached
no longer throws a type error in TypeScript projects. Addresses #4408. - ๐ฒ Using
cy.clearLocalStorage({ log:false })
no longer throws a type error in TypeScript projects. Addresses #6615. - We added types for
Cypress.sinon
. Addresses #6720. - โ We've added the foundational work required to support experimental features in the Test Runner. Addresses #6257.
โก๏ธ Dependency Updates
- โฌ๏ธ Upgraded Chrome browser version used during
cypress run
and when selecting Electron browser incypress open
from78
to80
. Addressed in #6555. - โฌ๏ธ Upgraded
electron
from7.1.13
to8.1.1
. This bumps the bundled Chromium to 80.0.3987.141 and the bundled Node to 12.13.0. Addressed in #6555. - โฌ๏ธ Upgraded
@ffmpeg-installer/ffmpeg
from1.0.19
to1.0.20
. Addressed in #6686. - โฌ๏ธ Upgraded
minimist
from1.2.0
to1.2.2
. Addressed in #6726. - ๐ Replaced deprecated
request
withcypress-io/request
. Addressed in #6679.
- Videos can now be recorded when running Electron in