cypress-io/cypress
### [`v6.2.0`](https://togithub.com/cypress-io/cypress/releases/v6.2.0)
[Compare Source](https://togithub.com/cypress-io/cypress/compare/v6.1.0...v6.2.0)
_Released 12/21/2020_
**Features:**
- You can now listen to `before:run` and `after:run` events in the plugins file. See the [`before:run`](https://on.cypress.io/before-run-api) and [`after:run`](https://on.cypress.io/after-run-api) docs for more information. Addressed in [#14238](https://togithub.com/cypress-io/cypress/issues/14238) and [#14263](https://togithub.com/cypress-io/cypress/issues/14263).
- You can now listen to `before:spec` and `after:spec` events in the plugins file. See the [`before:spec`](https://on.cypress.io/before-spec-api) and [`after:spec`](https://on.cypress.io/after-spec-api) docs for more information. Addressed in [#9646](https://togithub.com/cypress-io/cypress/issues/9646) and [#14178](https://togithub.com/cypress-io/cypress/issues/14178).
- The `Timed out retrying` error message now displays the amount of time Cypress retried. Addresses [#5781](https://togithub.com/cypress-io/cypress/issues/5781).
**Bugfixes:**
- Getting an alias of [`cy.intercept()`](https://on.cypress.io/intercept) using [`cy.get()`](https://on.cypress.io/get) will no longer always yield `null`. Fixes [#9306](https://togithub.com/cypress-io/cypress/issues/9306).
- [`cy.intercept()`](https://on.cypress.io/intercept) will now automatically responds to CORS preflight requests (HTTP `OPTIONS` requests) that match defined routes. Fixes [#9599](https://togithub.com/cypress-io/cypress/issues/9599).
- Response errors from `forceNetworkError` can now be awaited using [`cy.intercept()`](https://on.cypress.io/intercept) and [`cy.wait()`](https://on.cypress.io/wait). Fixes [#9062](https://togithub.com/cypress-io/cypress/issues/9062).
- Using [`cy.log()`](https://on.cypress.io/log) inside [`.then()`](https://on.cypress.io/then) no longer breaks the subject value in the command chain. Fixes [#8084](https://togithub.com/cypress-io/cypress/issues/8084).
- Using [`Cypress.Commands.overwrite`](https://on.cypress.io/custom-commands#Overwrite-Existing-Commands) to overwrite [`.then()`](https://on.cypress.io/then) now preserves the proper `this` context and sets aliases correctly. Fixes [#5101](https://togithub.com/cypress-io/cypress/issues/5101).
- Using [`Cypress.Commands.overwrite`](https://on.cypress.io/custom-commands#Overwrite-Existing-Commands) to overwrite [`cy.route()`](https://on.cypress.io/route) or [`cy.intercept()`](https://on.cypress.io/intercept) and wait on its alias now properly works. Fixes [#3890](https://togithub.com/cypress-io/cypress/issues/3890) and [#9580](https://togithub.com/cypress-io/cypress/issues/9580).
- Cypress no longer fails to find specs if you set the fixtures folder to be the same as the integration folder. Fixes [#14226](https://togithub.com/cypress-io/cypress/issues/14226).
**Misc:**
- `scrollBehavior` is now an allowed type when passed as test configuration. Addresses [#9643](https://togithub.com/cypress-io/cypress/issues/9643).
- The `FileObject` type for the file argument of the `file:preprocessor` event now includes the `EventEmitter` type. Addresses [#9276](https://togithub.com/cypress-io/cypress/issues/9276).
**Dependency Updates:**
- Upgraded `electron` from `11.0.2` to `11.0.3`. Addressed in [#9409](https://togithub.com/cypress-io/cypress/issues/9409).
Renovate configuration
:date: Schedule: "after 10pm every weekday,every weekend,before 5am every weekday" (UTC).
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
6.1.0
->6.2.0
Release Notes
cypress-io/cypress
### [`v6.2.0`](https://togithub.com/cypress-io/cypress/releases/v6.2.0) [Compare Source](https://togithub.com/cypress-io/cypress/compare/v6.1.0...v6.2.0) _Released 12/21/2020_ **Features:** - You can now listen to `before:run` and `after:run` events in the plugins file. See the [`before:run`](https://on.cypress.io/before-run-api) and [`after:run`](https://on.cypress.io/after-run-api) docs for more information. Addressed in [#14238](https://togithub.com/cypress-io/cypress/issues/14238) and [#14263](https://togithub.com/cypress-io/cypress/issues/14263). - You can now listen to `before:spec` and `after:spec` events in the plugins file. See the [`before:spec`](https://on.cypress.io/before-spec-api) and [`after:spec`](https://on.cypress.io/after-spec-api) docs for more information. Addressed in [#9646](https://togithub.com/cypress-io/cypress/issues/9646) and [#14178](https://togithub.com/cypress-io/cypress/issues/14178). - The `Timed out retrying` error message now displays the amount of time Cypress retried. Addresses [#5781](https://togithub.com/cypress-io/cypress/issues/5781). **Bugfixes:** - Getting an alias of [`cy.intercept()`](https://on.cypress.io/intercept) using [`cy.get()`](https://on.cypress.io/get) will no longer always yield `null`. Fixes [#9306](https://togithub.com/cypress-io/cypress/issues/9306). - [`cy.intercept()`](https://on.cypress.io/intercept) will now automatically responds to CORS preflight requests (HTTP `OPTIONS` requests) that match defined routes. Fixes [#9599](https://togithub.com/cypress-io/cypress/issues/9599). - Response errors from `forceNetworkError` can now be awaited using [`cy.intercept()`](https://on.cypress.io/intercept) and [`cy.wait()`](https://on.cypress.io/wait). Fixes [#9062](https://togithub.com/cypress-io/cypress/issues/9062). - Using [`cy.log()`](https://on.cypress.io/log) inside [`.then()`](https://on.cypress.io/then) no longer breaks the subject value in the command chain. Fixes [#8084](https://togithub.com/cypress-io/cypress/issues/8084). - Using [`Cypress.Commands.overwrite`](https://on.cypress.io/custom-commands#Overwrite-Existing-Commands) to overwrite [`.then()`](https://on.cypress.io/then) now preserves the proper `this` context and sets aliases correctly. Fixes [#5101](https://togithub.com/cypress-io/cypress/issues/5101). - Using [`Cypress.Commands.overwrite`](https://on.cypress.io/custom-commands#Overwrite-Existing-Commands) to overwrite [`cy.route()`](https://on.cypress.io/route) or [`cy.intercept()`](https://on.cypress.io/intercept) and wait on its alias now properly works. Fixes [#3890](https://togithub.com/cypress-io/cypress/issues/3890) and [#9580](https://togithub.com/cypress-io/cypress/issues/9580). - Cypress no longer fails to find specs if you set the fixtures folder to be the same as the integration folder. Fixes [#14226](https://togithub.com/cypress-io/cypress/issues/14226). **Misc:** - `scrollBehavior` is now an allowed type when passed as test configuration. Addresses [#9643](https://togithub.com/cypress-io/cypress/issues/9643). - The `FileObject` type for the file argument of the `file:preprocessor` event now includes the `EventEmitter` type. Addresses [#9276](https://togithub.com/cypress-io/cypress/issues/9276). **Dependency Updates:** - Upgraded `electron` from `11.0.2` to `11.0.3`. Addressed in [#9409](https://togithub.com/cypress-io/cypress/issues/9409).Renovate configuration
:date: Schedule: "after 10pm every weekday,every weekend,before 5am every weekday" (UTC).
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: 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.