12.6.0

Released Released on February 14, 2023

Features:

  • Added a new CLI flag, called --auto-cancel-after-failures, that overrides the project-level "Auto Cancellation" value when recording to the Cloud. This gives Cloud users on Business and Enterprise plans the flexibility to alter the auto-cancellation value per run. Addressed in #25237.

  • It is now possible to overwrite query commands using Cypress.Commands.overwriteQuery. Addressed in #25078.

  • Added Cypress.require() for including dependencies within the cy.origin() callback. This change removed support for using require() and import() directly within the callback because we found that it impacted performance not only for spec files using them within the cy.origin() callback, but even for spec files that did not use them. Addresses #24976.

  • Added the ability to open the failing test in the IDE from the Debug page before needing to re-run the test. Addressed in #24850.

Bugfixes:

  • When a Cloud user is a part of multiple Cloud organizations, the Connect to Cloud setup now shows the correct organizational prompts when connecting a new project. Fixes #25520.

  • Fixed an issue where Cypress would fail to load any specs if the project specPattern included a resource that could not be accessed due to filesystem permissions. Fixes #24109.

  • Fixed an issue where the Debug page would display a different number of specs for in-progress runs than the in-progress specs reported in Cypress Cloud. Fixes #25647.

  • Fixed an issue in middleware where error-handling code could itself generate an error and fail to report the original issue. Fixes #22825.

  • Fixed an regression introduced in Cypress 12.3.0 where custom browsers that relied on process environment variables were not found on macOS arm64 architectures. Fixed in #25753.

Misc:

  • Improved the UI of the Debug page. Addresses #25664, #25669, #25665, #25666, and #25667.

  • Updated the Debug page sidebar badge to to show 0 to 99+ failing tests, increased from showing 0 to 9+ failing tests, to provide better test failure insights. Addresses #25662.

Dependency Updates: