From e7865e2a1050f12fe9a952c548a1d47ed0a3b413 Mon Sep 17 00:00:00 2001 From: Mike Plummer Date: Mon, 19 Dec 2022 08:40:57 -0600 Subject: [PATCH 1/5] Create 12.2.0 changelog --- content/_changelogs/12.2.0.md | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 content/_changelogs/12.2.0.md diff --git a/content/_changelogs/12.2.0.md b/content/_changelogs/12.2.0.md new file mode 100644 index 0000000000..3c778607e5 --- /dev/null +++ b/content/_changelogs/12.2.0.md @@ -0,0 +1,47 @@ +## 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 + 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 by selecting from the components that exist in their project. + Addresses [#24008](https://github.com/cypress-io/cypress/issues/24008). + +**Bugfixes:** + +- Fixed a regression introduced in + [Cypress 10.8.0](https://docs.cypress.io/guides/references/changelog#10-8-0) + where the `CYPRESS_EVERY_NTH_FRAME` env was not being honored, nor was it + being set at all, causing all frames to be captured which slowed down tests. + Fixes [#23830](https://github.com/cypress-io/cypress/issues/23830). +- Fixed an issue where the `query` object was not available on requests from + [`cy.intercept()`](https://docs.cypress.io/api/commands/intercept) once they + were yielded. Fixes + [#25088](https://github.com/cypress-io/cypress/issues/25088). +- Fixed a regression introduced in + [Cypress 12](https://docs.cypress.io/guides/references/changelog#12-0-0) where + [`cy.get()`](https://docs.cypress.io/api/commands/get) would ignore a `null` + value for the 'withinSubject' option. Fixes + [#25104](https://github.com/cypress-io/cypress/issues/25104). +- Fixed Typescript typings for + [`cy.nextUntil()`](https://docs.cypress.io/api/commands/nextuntil) to include + the 'filter' parameter. Fixes + [#24772](https://github.com/cypress-io/cypress/issues/24772). +- 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](https://docs.cypress.io/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 `srcRoot` + configuration would not be respected. Fixes + [#24827](https://github.com/cypress-io/cypress/issues/24827). +- Fixed an issue with Angular Component Testing where URLs within SASS/SCSS + files were not being correctly resolved. Fixes + [#24272](https://github.com/cypress-io/cypress/issues/24272). From c1f61610f8ece955e169a233908ed6c8a2cdbd79 Mon Sep 17 00:00:00 2001 From: Mike Plummer Date: Mon, 19 Dec 2022 08:46:50 -0600 Subject: [PATCH 2/5] Fix grammar --- content/_changelogs/12.2.0.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/_changelogs/12.2.0.md b/content/_changelogs/12.2.0.md index 3c778607e5..c2edfd1ce6 100644 --- a/content/_changelogs/12.2.0.md +++ b/content/_changelogs/12.2.0.md @@ -16,9 +16,9 @@ _Released 12/20/2022_ - Fixed a regression introduced in [Cypress 10.8.0](https://docs.cypress.io/guides/references/changelog#10-8-0) - where the `CYPRESS_EVERY_NTH_FRAME` env was not being honored, nor was it - being set at all, causing all frames to be captured which slowed down tests. - Fixes [#23830](https://github.com/cypress-io/cypress/issues/23830). + 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). - Fixed an issue where the `query` object was not available on requests from [`cy.intercept()`](https://docs.cypress.io/api/commands/intercept) once they were yielded. Fixes From 3dab48c972f742f1c90cd227c35900e56cd2d289 Mon Sep 17 00:00:00 2001 From: Mike Plummer Date: Mon, 19 Dec 2022 10:23:09 -0600 Subject: [PATCH 3/5] Address review comments --- content/_changelogs/12.2.0.md | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/content/_changelogs/12.2.0.md b/content/_changelogs/12.2.0.md index c2edfd1ce6..5b33d8dd85 100644 --- a/content/_changelogs/12.2.0.md +++ b/content/_changelogs/12.2.0.md @@ -9,29 +9,31 @@ _Released 12/20/2022_ 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 by selecting from the components that exist in their project. - Addresses [#24008](https://github.com/cypress-io/cypress/issues/24008). + spec file from the components that exist in their project. Addresses + [#24008](https://github.com/cypress-io/cypress/issues/24008). -**Bugfixes:** +**Performance:** -- Fixed a regression introduced in +- Fixed a regression introduced in the Electron browser in [Cypress 10.8.0](https://docs.cypress.io/guides/references/changelog#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()`](https://docs.cypress.io/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](https://docs.cypress.io/guides/references/changelog#12-0-0) where [`cy.get()`](https://docs.cypress.io/api/commands/get) would ignore a `null` - value for the 'withinSubject' option. Fixes + value for the `withinSubject` option. Fixes [#25104](https://github.com/cypress-io/cypress/issues/25104). -- Fixed Typescript typings for - [`cy.nextUntil()`](https://docs.cypress.io/api/commands/nextuntil) to include - the 'filter' parameter. Fixes - [#24772](https://github.com/cypress-io/cypress/issues/24772). - 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). @@ -42,6 +44,7 @@ _Released 12/20/2022_ - Fixed an issue with Angular Component Testing where a custom `srcRoot` configuration would not be respected. Fixes [#24827](https://github.com/cypress-io/cypress/issues/24827). -- Fixed an issue with Angular Component Testing where URLs within SASS/SCSS - files were not being correctly resolved. Fixes - [#24272](https://github.com/cypress-io/cypress/issues/24272). +- Fixed Typescript typings for + [`cy.nextUntil()`](https://docs.cypress.io/api/commands/nextuntil) to include + the `filter` parameter. Fixes + [#24772](https://github.com/cypress-io/cypress/issues/24772). From 9985b9caf8b8a948de5b2f36b4ddb4ad2a377fd0 Mon Sep 17 00:00:00 2001 From: Mike Plummer Date: Mon, 19 Dec 2022 11:07:52 -0600 Subject: [PATCH 4/5] Address review comments --- content/_changelogs/12.2.0.md | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/content/_changelogs/12.2.0.md b/content/_changelogs/12.2.0.md index 5b33d8dd85..dc9412a255 100644 --- a/content/_changelogs/12.2.0.md +++ b/content/_changelogs/12.2.0.md @@ -15,36 +15,34 @@ _Released 12/20/2022_ **Performance:** - Fixed a regression introduced in the Electron browser in - [Cypress 10.8.0](https://docs.cypress.io/guides/references/changelog#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 + [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()`](https://docs.cypress.io/api/commands/intercept) once they - were yielded. Fixes + [`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](https://docs.cypress.io/guides/references/changelog#12-0-0) where - [`cy.get()`](https://docs.cypress.io/api/commands/get) would ignore a `null` - value for the `withinSubject` option. Fixes +- 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 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](https://docs.cypress.io/guides/guides/command-line#cypress-open-global) - on newer versions of Cypress. Addressed 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 `srcRoot` +- 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()`](https://docs.cypress.io/api/commands/nextuntil) to include - the `filter` parameter. Fixes +- Fixed Typescript typings for [`cy.nextUntil()`](/api/commands/nextuntil) to + include the `filter` parameter. Fixes [#24772](https://github.com/cypress-io/cypress/issues/24772). From 3aa84472dcb9f417bd14d9895a659e66793b77c2 Mon Sep 17 00:00:00 2001 From: Mike Plummer Date: Mon, 19 Dec 2022 11:11:16 -0600 Subject: [PATCH 5/5] Add #24915 --- content/_changelogs/12.2.0.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/_changelogs/12.2.0.md b/content/_changelogs/12.2.0.md index dc9412a255..10758180fe 100644 --- a/content/_changelogs/12.2.0.md +++ b/content/_changelogs/12.2.0.md @@ -32,6 +32,9 @@ _Released 12/20/2022_ [`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).