12.2.0

Released Released on December 19, 2022

Features:

  • Added the ability to match on resourceType with cy.intercept(), and to see the resource type of an intercepted request as req.resourceType. Addresses #14525.

  • Users working in React Component Testing projects can now generate a basic spec file from the components that exist in their project. Addresses #24008.

Performance:

  • Fixed a regression introduced in the Electron browser in Cypress 10.8.0 where the CYPRESS_EVERY_NTH_FRAME environment variable was not being set appropriately causing all frames to be captured which slowed down tests. Fixes #23830.

Bugfixes:

  • Fixed an issue where the query object was not available on requests from cy.intercept() once they were yielded. Fixes #25088.

  • Fixed an issue with Angular Component Testing where urls within SASS/SCSS files were not being correctly resolved which could result in incomplete styling. Fixes #24272.

  • Fixed a regression introduced in Cypress 12 where cy.get() would ignore a null value for the withinSubject option. Fixes #25104.

  • Fixed an issue where an unhandled promise rejection would display an incomplete error message in the command log. Fixes #24915.

  • Fixed an issue where the incorrect Cypress version could be shown in the migration wizard. Fixes #25138.

  • Fixed an issue where the Cypress migration wizard would fail to run in global mode on newer versions of Cypress. Addressed in #25138.

  • Fixed an issue with Angular Component Testing where a custom sourceRoot configuration would not be respected. Fixes #24827.

  • Fixed TypeScript typings for cy.nextUntil() to include the filter parameter. Fixes #24772.