cypress-io / cypress-example-recipes

Various recipes for testing common scenarios with Cypress
https://on.cypress.io/examples
3.42k stars 1.34k forks source link

chore(deps): update dependency cypress to v9.5.2 #766

Closed renovate[bot] closed 2 years ago

renovate[bot] commented 2 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
cypress 9.3.1 -> 9.5.2 age adoption passing confidence

Release Notes

cypress-io/cypress ### [`v9.5.2`](https://togithub.com/cypress-io/cypress/releases/v9.5.2) *Released 3/14/2022* **Bugfixes:** - Fixed an issue with `.type()` where click events could be fired on the incorrect target element because the target focus changed within a key-down event handler callback. Fixed in [#​20525](https://togithub.com/cypress-io/cypress/pulls/20525). - Fixed a regression in [9.5.0](https://docs.cypress.io/guides/references/changelog#​9-5-0) where ANSI colors were not removed from the FireFox warning message about the `chromeWebSecurity` configuration option having no effect on the Firefox browser. Fixes [#​20496](https://togithub.com/cypress-io/cypress/issues/20496). - Updates were made to the pre-release build setup such that Cypress will use a unique cache folder for each [pre-release installation](https://docs.cypress.io/guides/getting-started/installing-cypress.md#Install-pre-release-version) on a machine. This removes the need to run `cypress clear cache` before installing a new pre-release version of Cypress or before installing a new released version of Cypress after a pre-release version had been installed. Addressed in [#​20296](https://togithub.com/cypress-io/cypress/pulls/20296). **Misc:** - Updates were made to explicitly disable the `Origin-Agent-Cluster` header for proxied responses to ensure `document.domain` can continue to be set with Chrome v106+. This was necessary because Chrome is planning to make [`document.domain` immutable](https://developer.chrome.com/blog/immutable-document-domain/) in v106+ to relax the same-origin policy by interpreting the `Origin-Agent-Cluster` as `true`, whereas it is currently interpreted as `false`. Addresses [#​20147](https://togithub.com/cypress-io/cypress/issues/20147). **Dependency Updates:** - Upgraded `url-parse` dependency from `1.5.6` to `1.5.9` to address these NVD security vulnerabilities, [CVE-2022-0639](https://nvd.nist.gov/vuln/detail/CVE-2022-0639), [CVE-2022-0686](https://nvd.nist.gov/vuln/detail/CVE-2022-0686) and [CVE-2022-0691](https://nvd.nist.gov/vuln/detail/CVE-2022-0691). Addressed in [#​20386](https://togithub.com/cypress-io/cypress/pull/20386) and [#​20439](https://togithub.com/cypress-io/cypress/issues/20439). ### [`v9.5.1`](https://togithub.com/cypress-io/cypress/releases/v9.5.1) [Compare Source](https://togithub.com/cypress-io/cypress/compare/v9.5.0...v9.5.1) *Released 2/28/2022* **Bugfixes:** - Added a `ready` event to the Plugins process to ensure all plugins have successfully started before the configuration is loaded and the tests start. Fixed in [#​19792](https://togithub.com/cypress-io/cypress/issues/19792). - This fixes an issue where the plugin is never executed and leaves Cypress stuck in the initialization phase, where the user can only view the loading spinner. - This enables support for node's experimental `--loader` flag for plugins. - Made a change to the DNS lookup to improve test performances and reliability on MacOS machines that leverage the VMWare CBCloud SaaS solution. Before this change, random test failures were observed, as well as hanging tests and initially pending HTTP and HTTPS responses. Fixed in [#​20062](https://togithub.com/cypress-io/cypress/issues/20062). - Fixed a regression in [9.5.0](https://docs.cypress.io/guides/references/changelog#​9-5-0) where ANSI colors were not removed from the `cy.fixtures()` error code frame. Fixes [#​20208](https://togithub.com/cypress-io/cypress/issues/20208). - Fixed a regression in [9.5.0](https://docs.cypress.io/guides/references/changelog#​9-5-0) where the test config override errors were formatted incorrectly. Fixes [#​20208](https://togithub.com/cypress-io/cypress/issues/20208). - Fixed an issue where Cypress would throw an error when reporting or wrapping errors with booleans or numbers. Fixes [#​19561](https://togithub.com/cypress-io/cypress/issues/19561). **Dependency Updates:** - Upgraded `url-parse` dependency from `1.5.2` to `1.5.6` to avoid authorization bypass through user-controlled key to address this [NVD security vulnerability](https://nvd.nist.gov/vuln/detail/CVE-2022-0512). Addressed in [#​20270](https://togithub.com/cypress-io/cypress/issues/20270). ### [`v9.5.0`](https://togithub.com/cypress-io/cypress/releases/v9.5.0) [Compare Source](https://togithub.com/cypress-io/cypress/compare/v9.4.1...v9.5.0) *Released 2/15/2022* **Features:** - Enhancements were made to the error experience in both run mode and open mode to improve readability and provide meaningful stack traces. Addressed in [#​20124](https://togithub.com/cypress-io/cypress/issues/20124). - Updated the `cy.request()` log message to hide the origin when it matched the browser origin to make debugging easier. This reduces the length of the log message that could be partially hidden if a long url is requested. Addressed in [#​20009](https://togithub.com/cypress-io/cypress/issues/20009). - Updates were made to log the `ShadowRoot` and `Document` elements as HTML elements. Previously these would be logged as enumerated objects, which were difficult to evaluate. Addressed in [#​20049](https://togithub.com/cypress-io/cypress/issues/20049). - Updated the terminal output generated in Cypress run mode to de-emphasis the `node` path in the run header. Addressed in [#​20120](https://togithub.com/cypress-io/cypress/issues/20120). **Bugfixes:** - Fixed an issue where files attached during `.selectFile()` could have the wrong `File` prototype. Fixes [#​20003](https://togithub.com/cypress-io/cypress/issues/20003). - Updated `.select()` to only dispatch the `change` and `input` events when the selected option is not the currently selected option. This change aligns `.select()` with the browser. Fixes [#​19494](https://togithub.com/cypress-io/cypress/issues/19494). - Updated `.type(' ')` to align with the W3C standards where a click event should be dispatched when the Space key is pressed and the current focus is on a state-changing element with type `button`, `image`, `submit` or `reset`. Fixes [#​20067](https://togithub.com/cypress-io/cypress/pull/20067). ### [`v9.4.1`](https://togithub.com/cypress-io/cypress/releases/v9.4.1) [Compare Source](https://togithub.com/cypress-io/cypress/compare/v9.4.0...v9.4.1) *Released 1/31/2022* **Bugfixes:** - Fixed a regression in [9.4.0](https://docs.cypress.io/guides/references/changelog#​9-4-0) where the line endings in the public NPM package prevented some users from running Cypress. Fixes [#​19986](https://togithub.com/cypress-io/cypress/issues/19986). ### [`v9.4.0`](https://togithub.com/cypress-io/cypress/releases/v9.4.0) [Compare Source](https://togithub.com/cypress-io/cypress/compare/v9.3.1...v9.4.0) *Released 1/31/2022* **Features** - Enhancements were made to `.selectFile()` after receiving feedback after its initial release in [9.3.0](https://docs.cypress.io/guides/references/changelog#​9-3-0). - The default behavior was updated to automatically infer the mime type of files based on their extension to correctly encode file uploads. Addressed in [#​19751](https://togithub.com/cypress-io/cypress/issues/19751). - Added the `mimeType` property so you can explicitly set the mime type on files using the `mimeType` property. Addressed in [#​19751](https://togithub.com/cypress-io/cypress/issues/19751). - Updated file contents types to allow either a [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) instance or a `Cypress.Buffer` instance, where previously file contents were expected to only be an instance of `Cypress.Buffer`. Addressed in [#​19751](https://togithub.com/cypress-io/cypress/issues/19751). - Updated `.selectFile()` to retain the fileName of files read from disk to work with aliases. Addressed in [#​19803](https://togithub.com/cypress-io/cypress/issues/19803). **Bugfixes:** - Fixed a regression in [9.3.0](https://docs.cypress.io/guides/references/changelog#​9-3-0) to correctly parse the `--spec` CLI parameter for glob patterns containing a range. Fixes [#​19783](https://togithub.com/cypress-io/cypress/issues/19783). - Fixed regression in [9.2.1](https://docs.cypress.io/guides/references/changelog#​9-1-1) where the `--openssl-legacy-provider` flag was not being passed to the plugins' child process when the user's system Node version was Node 17+ built with OpenSSL v3+ which resulted in Cypress crashing when trying to run tests. Fixes [#​19712](https://togithub.com/cypress-io/cypress/issues/19712). - Update `cy.type('{enter}')` to align with the W3C standards where a click event should be dispatched when the Enter key is pressed and the current focus is on astate-changing element with type `button`, `image`, `submit` or `reset`. Fixes [#​19541](https://togithub.com/cypress-io/cypress/issues/19541).

Configuration

šŸ“… Schedule: "after 2am and before 3am on sunday" in timezone America/New_York.

šŸš¦ Automerge: Enabled.

ā™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

šŸ”• Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by WhiteSource Renovate. View repository job log here.