10.9.0

Released Released on September 26, 2022

Features:

  • Added support for requiring dependencies within the cy.origin() callback. See the cy.origin() docs for more information.

  • Added support for visiting cross-origin pages outside of a cy.origin() callback. See the cy.origin() and cy.visit() docs for more information and caveats. Addresses #21485, #22282, #21300, and #23236.

  • Added support for re-using session data cached by cy.session() across specs via the cacheAcrossSpecs option. Addresses #17710.

  • Added support for advanced dev server configuration via an async function that can optionally modify the dev server config. Addresses #23302.

  • Launch options returned from the before:browser:launch event can now include an env key that can be used to pass environment variables to the browser when it is launched. Addressed by #23624.

  • Component tests that fail now display a code frame of the source location of the error within the Cypress reporter. Addresses #21720.

Bugfixes:

  • The spec results printed stdout after a test run now show the path to the spec and not just the file name. Fixes #22304.

  • The viewport dropdown in the Cypress App now displays the correct text. Fixes #23789.

  • Compile errors are now surfaced in the command log during tests for Angular and Next projects. Fixes #23219.

  • The error "Automatic publicPath is not supported in this browser" will no longer be displayed when using Webpack 5 and dynamic imports. Fixes #18435.

  • The correct source control link is now sent to the Cypress Dashboard for failed specs when the cypress config file is not the project root. Fixes #22971.

  • The error "Invalid left-hand-side in assignment" will no longer be thrown when the experimentalModifyObstructiveThirdPartyCode flag is enabled. Fixes #23647.

  • it.skip now functions correctly in Angular component tests. Fixes #23409.

  • The tsConfig build option is now respected for Angular component tests. Fixes #23673.

  • Configuring a custom browser no longer logs a warning when trying to use that browser. Addressed in #23446.

Misc:

  • Improved the accessibility of a few components within the Cypress Launchpad and App. Addressed in #23745.

  • Improved the UI of the Sessions instrument panel in the Cypress reporter. Addresses #21400.