12.8.0
Released Released on March 13, 2023
Features:
The Debug page is now able to show real-time results from in-progress runs. Addresses #25759.
Added the ability to control whether a request is logged to the command log via
cy.intercept()by passinglog: falseorlog: true. Addresses #7362.This can be used to override Cypress's default behavior of logging all XHRs and fetches, see the example.
It is now possible to control the number of connection attempts to the browser using the
CYPRESS_CONNECT_RETRY_THRESHOLDEnvironment Variable. Learn more here. Addressed in #25848.
Bugfixes:
Fixed an issue where using
Cypress.require()would throw the errorCannot find module 'typescript'. Fixes #25885.The
before:specAPI was updated to correctly support async event handlers inrunmode. Fixes #24403.Updated the Component Testing community framework definition detection logic to take into account monorepo structures that hoist dependencies. Fixes #25993.
The onboarding wizard for Component Testing will now detect installed dependencies more reliably. Fixes #25782.
Fixed an issue where Angular components would sometimes be mounted in unexpected DOM locations in component tests. Fixes #25956.
Fixed an issue where Cypress component testing would fail to work with Next.js
13.2.1. Fixes #25951.Fixed an issue where migrating a project from a version of Cypress earlier than 10.0.0 could fail if the project's
testFilesconfiguration was an array of globs. Fixes #25947.
Misc:
Removed "New" badge in the navigation bar for the debug page icon. Addresses #25925.
Removed inline "Connect" buttons within the Specs Explorer. Addresses #25926.
Added an icon for "beta" versions of the Chrome browser. Addresses #25968.
Dependency Updates:
Upgraded
mocha-junit-reporterfrom2.1.0to2.2.0to be able to use new placeholders such as[suiteFilename]or[suiteName]when defining the test report name. Addressed in #25922.