Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12.2.0 Changelog #4938

Merged
merged 5 commits into from
Dec 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions content/_changelogs/12.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
## 12.2.0

_Released 12/20/2022_

**Features:**

- Added the ability to match on `resourceType` with
[`cy.intercept()`](https://docs.cypress.io/api/commands/intercept), and to see
mike-plummer marked this conversation as resolved.
Show resolved Hide resolved
the resource type of an intercepted request as `req.resourceType`. Addresses
[#14525](https://github.com/cypress-io/cypress/issues/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](https://github.com/cypress-io/cypress/issues/24008).

**Performance:**

- Fixed a regression introduced in the Electron browser in
[Cypress 10.8.0](#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](https://github.com/cypress-io/cypress/issues/23830).

**Bugfixes:**

- Fixed an issue where the `query` object was not available on requests from
[`cy.intercept()`](/api/commands/intercept) once they were yielded. Fixes
[#25088](https://github.com/cypress-io/cypress/issues/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](https://github.com/cypress-io/cypress/issues/24272).
- Fixed a regression introduced in [Cypress 12](#12-0-0) where
[`cy.get()`](/api/commands/get) would ignore a `null` value for the
`withinSubject` option. Fixes
[#25104](https://github.com/cypress-io/cypress/issues/25104).
- Fixed an issue where an unhandled promise rejection would display an
incomplete error message in the command log. Fixes
[#24915](https://github.com/cypress-io/cypress/issues/24915).
- Fixed an issue where the incorrect Cypress version could be shown in the
migration wizard. Fixes
[#25138](https://github.com/cypress-io/cypress/issues/25138).
- Fixed an issue where the Cypress migration wizard would fail to run in
[global mode](/guides/guides/command-line#cypress-open-global) on newer
versions of Cypress. Addressed in
[#25138](https://github.com/cypress-io/cypress/issues/25138).
- Fixed an issue with Angular Component Testing where a custom
[`sourceRoot`](https://angular.io/guide/workspace-config#project-configuration-options)
configuration would not be respected. Fixes
[#24827](https://github.com/cypress-io/cypress/issues/24827).
- Fixed Typescript typings for [`cy.nextUntil()`](/api/commands/nextuntil) to
include the `filter` parameter. Fixes
[#24772](https://github.com/cypress-io/cypress/issues/24772).