Component tests can now be launched via the Module API by passing testingType: 'component' via the new testingType property. The testingType will default to e2e. Addresses #16302.
cy.intercept() now accepts a times option in the RouteMatcher. times will specify the number of times that a particular cy.intercept() should be applied. Addresses #4460 and #8531.
cy.intercept() now accepts invocation using cy.intercept(url, routeMatcher, handler), where url is a regular expression. Previously, this only worked if url was a string. Addresses #16390.
Cypress will now automatically get environment variables for LayerCI when recording to the Dashboard. Addresses #16101.
Setting the env var DEBUG=cypress:server:record:ci-info will print commit information and CI provider information that's sent to the Dashboard as debug logs. Addresses #16236.
Cypress can now use the certificate authority specified in NPM config if CYPRESS_DOWNLOAD_USE_CA is specified. See "Using a custom CA" for more information. Addresses #8825.
Bugfixes:
Cypress will no longer incorrectly redirect the AUT window to /__/ when location.href is set to a relative path within the call stack of an XHR event handler. Fixes #3975 and #7439.
Cypress now properly handles when a form submit or anchor tag target is set to _top or _parent so that it no longer redirects the parent frame. Fixes #1244.
Fixed a regression in 6.5.0 that could cause Cypress to crash with a RangeError: Maximum call stack size exceeded at _deconstructPacket error. Most commonly, this occurred when handling network errors with cy.request(). Fixes #15101.
Fixed a regression in 7.0.0 that caused the Test Runner to crash with an ERR_INVALID_ARG_TYPE type error when testing a binary file upload. Fixes #15898 and #16223.
When verifying Cypress, we now listen for the 'close' event instead of the 'exit' event in an effort to fix some situations where the browser cannot be found even though it is on the system. Addressed in #16312.
Fixed a regression in 6.5.0 that caused a node warning about .then() only accepting functions to display. Fixes #15281.
cy.intercept() now adds a access-control-expose-headers: '*' header by default for CORS requests unless overridden. Fixes #15050.
Improved the way that cy.intercept() and cy.route() requests with multiple aliases are displayed in the command log. Addressed in #16382.
Cypress.cookies.debug(true) will now correctly show cookie-related messages on the console. Fixes #15032.
cy.log() will now show all arguments, not only the first 2. Fixes #16068.
.select() now correctly selects option elements with values that have characters. Fixes #16045.
The e2e and component configuration values will now correctly show when previewing resolved configuration in the Test Runner. Fixes #16282.
When passing the —quiet flag, Cypress will no longer print uploading output to Stdout. Fixes #16268.
When pressing the / hotkey in Firefox, Cypress will select the SpecList's SearchInput as it does in other browsers. Fixes #16309.
Cypress will now detect the default installation location of the Visual Studio Code editors on Windows machines. Fixes #15080.
Changing files extensions when creating a new test file should no longer add extra dots to the filename on Windows machines. Fixes #16131.
Dependency Updates:
Upgraded classnames from 2.2.6 to 2.3.1. Addressed in #8337.
Upgraded color-string from 1.5.4 to 1.5.5. Addressed in #16362.
Upgraded lodash from 4.17.19 to 4.17.21. Addressed in #16406.
Upgraded registry-js from 1.13.0 to 1.15.0. Addressed in #16409.
Upgraded url-parse from 1.4.7 to 1.5.0. Addressed in #16408.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps cypress from 7.2.0 to 7.3.0.
Release notes
Sourced from cypress's releases.
Commits
30d781f
release 7.3.0 [skip ci]70bc98a
Merge branch 'master' into developa534b17
feat(intercept): support regexp matcher with middleware intercepts (#16390)6bc7e7d
fix: use 'ca' and 'cafile' npm config options for binary download (#8877)ee69541
fix: report studio usage to Dashboard (#16318)52abd80
fix(deps): update dependency url-parse to version 1.5.0 🌟 (#16408)2f9095e
chore(deps): update dependency registry-js to version 1.15.0 🌟 (#16409)0492174
chore: release create-cypress-tests-v1.1.13e3b9df
chore(deps): removeunderscore
andbackbone
as dev dependencies (#16407)2b0add1
fix: AUT Redirect bug on form / anchor target (#16394)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)