8.7.0
Released Released on October 24, 2021
Features:
There are changes to how "slow" tests are determined and displayed in Cypress. Addresses #18496.
Added a
slowTestThresholdconfiguration option to customize when tests are considered "slow" duringcypress run. A test that runs slower than the given threshold will display in orange text in the default 'spec' reporter. This configuration can be set in your Cypress config file or via specific test configuration.The default slow test threshold was changed from 75ms (Mocha's default) to 10000ms for e2e tests and 250ms for component tests. To restore the old behavior, you can add
"slowTestThreshold": 75to your Cypress config file.All tests will show the time the test ran in milliseconds during
cypress runwith the default 'spec' reporter.
Users can pass an
overwrite: trueoption toCypress.Screenshot.defaultsto change default behavior to overwrite existing screenshots without having to setoverwritefor eachcy.screenshot()command. Addresses #7955.
Bugfixes:
Fixed a regression introduced in 8.6.0 where videos recorded in Electron to the Dashboard were not playable in the Firefox or Safari browser and were not compatible with QuickTime player in MacOS.
Fixed a regression introduced in 8.6.0 so that the warning about the
projectRootdirectory not being writeable will now display correctly. Fixes #18485.Improved the error message when running Cypress without non-root permissions. Fixes #18445.
An error now throws when invalid options are passed to the
selectorPriorityconfiguration option ofCypress.SelectorPlayground.defaults. Valid values aredata-*,id,class,tag,attribute, ornth-child. Fixes #7745.
Dependency Updates:
Pinned resolution of
ua-parser-jsto0.7.24to avoid dependency resolution to the compromised package versions. Please read the security advisory and take actions advised as soon as possible. Addressed in #18611