8.6.0

Released Released on October 10, 2021

Features:

  • cy.screenshot() now accepts overwrite: true as an option to overwrite existing screenshots with the same file name. Addresses #7955.

  • cy.select([]) can now be used to clear any selected options in a multi-value select. Addresses #4318.

  • Using cy.pause() when using cypress run --headed --no-exit will now pause a test. Addresses #4044.

Bugfixes:

  • Fixed a regression introduced in 8.2.0 where certain XMLHttpRequests would not display their response bodies in the DevTools Console when clicked. Fixes #17656.

  • Fixed a regression in 8.3.0 where capturing videos in Chrome versions earlier than 89 would result in choppy videos and skipped frames. Fixes #18021.

  • Cypress displays the correct error when certain custom error types are thrown within a test. Fixes #18259.

  • The Cypress App will no longer crash when passed a --spec: {} from the CLI and instead error when passed an invalid object argument. Fixes #3957.

  • Logging a plain object no longer results in the error "Cannot convert object to primitive value". Fixes #18143.

Misc:

  • Updated the cy.request() error message when conflicting failOnStatusCode and retryOnStatusCodeFailure options are passed to be clearer. Fixes #18271.

Dependency Updates:

  • Upgraded the Chromium browser version used during cypress run and when selecting Electron browser in cypress open from 91.0.4472.164 to 93.0.4577.58.

  • Upgraded electron from 13.2.0 to 14.1.0. Addressed in #18318 and #18384.