Bump cypress from 4.2.0 to 7.0.0
Created by: dependabot-preview[bot]
Bumps cypress from 4.2.0 to 7.0.0.
Release notes
Sourced from cypress's releases.
7.0.0
Released 04/05/2021
Summary:
🎉 Introducing the Cypress Component Test Runner - now in alpha. Today's release includes a brand new test runner designed to replace your Node-based component tests. Our Component Test Runner tests your components in the browser, just like a user would. And, since it runs in the browser, you get to debug your components using your favorite developer tools. Read our Component Testing Guide for more details.Breaking Changes:
Please read our Migration Guide which explains the changes in more detail and how to change your code to migrate to Cypress 7.0.
- We introduced several breaking changes to https://github.com/cypress-io/cypress/blob/HEAD[https://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADyhttps://github.com/cypress-io/cypress/blob/HEAD.https://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEADnhttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADrhttps://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADphttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEAD(https://github.com/cypress-io/cypress/blob/HEAD)https://github.com/cypress-io/cypress/blob/HEAD]https://github.com/cypress-io/cypress/blob/HEAD(https://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADahttps://github.com/cypress-io/cypress/blob/HEADphttps://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADohttps://github.com/cypress-io/cypress/blob/HEADmhttps://github.com/cypress-io/cypress/blob/HEADmhttps://github.com/cypress-io/cypress/blob/HEADahttps://github.com/cypress-io/cypress/blob/HEADnhttps://github.com/cypress-io/cypress/blob/HEADdhttps://github.com/cypress-io/cypress/blob/HEADshttps://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEADnhttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADrhttps://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADphttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEAD)https://github.com/cypress-io/cypress/blob/HEAD. See the https://github.com/cypress-io/cypress/blob/HEAD[https://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADyhttps://github.com/cypress-io/cypress/blob/HEAD.https://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEADnhttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADrhttps://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADphttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEAD(https://github.com/cypress-io/cypress/blob/HEAD)https://github.com/cypress-io/cypress/blob/HEAD]https://github.com/cypress-io/cypress/blob/HEAD(https://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADahttps://github.com/cypress-io/cypress/blob/HEADphttps://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADohttps://github.com/cypress-io/cypress/blob/HEADmhttps://github.com/cypress-io/cypress/blob/HEADmhttps://github.com/cypress-io/cypress/blob/HEADahttps://github.com/cypress-io/cypress/blob/HEADnhttps://github.com/cypress-io/cypress/blob/HEADdhttps://github.com/cypress-io/cypress/blob/HEADshttps://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEADnhttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADrhttps://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADphttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEAD)https://github.com/cypress-io/cypress/blob/HEAD docs for full usage examples. Breaking changes:
- Request handlers supplied to
cy.intercept()
are now matched starting with the most recently defined request interceptor. This allows users to override request handlers by callingcy.intercept()
again. This matches the previous behavior that was default incy.route()
. Addresses #9302.cy.intercept()
now automatically parses more JSON MIME types, including 'application/vnd.api+json'. You can now removeJSON.parse(req.body)
orJSON.parse(res.body)
from some tests that previously required it. Addresses #14763.- Falsy values (with the exception of
undefined
) supplied as the body of aStaticResponse
tocy.intercept()
will now be JSONified and sent as the body. Previously, an empty string was sent instead. Addresses #15234 and #14205.- The
matchUrlAgainstPath
RouteMatcher
property has been removed fromcy.intercept()
.- The "substring match" from
cy.intercept()
URL matching has been removed. Previously, a URL would match if it contained the supplied string anywhere. Now, the URL (including querystring) only matches if it is an equality match or a minimatch.- The
delay
option for StaticResponses used withcy.intercept()
has been removed. Please go back to using thedelayMS
option. Addresses #15255.cy.route2()
was previously aliased tocy.intercept()
. Now the aliascy.route2()
has been removed. Please update usage ofcy.route2()
tocy.intercept()
. Addressed in #14709.- Component tests have been migrated to use a dedicated test runner and are bundled differently. See the Migration Guide for full examples on how to migrate. Addressed in #14479.
- Component tests will not be executed when running
cypress open
orcypress run
. Now, they need to be executed by runningcypress open-ct
orcypress run-ct
. Addressed in #15701.experimentalComponentTesting
must be removed from yoru configuration file,cypress.json
by default, or it will throw an error. Addressed in #15701.- The
file:preprocessor
event is no longer used to compile component tests. Now, adev-server:start
event must be registered.- Cypress now catches uncaught errors and fails the test even if the application under test has defined
window.onerror
. Addresses #8802.- Cypress now fails tests if there is an unhandled promise rejection in the application under test. Unhandled rejections will trigger the
uncaught:exception
event with the promise as the third argument. Addresses #243.- Cypress now throws an error if the application under test redirects more than 20 times. The number of times allowed to redirect is configurable via the
redirectionLimit
config. Addresses #14445.- The default preprocessor now targets a more modern version of ECMAScript. Addressed in #15274.
- We now enable
contextIsolation
by default in the Electron browser. You can override this option if needed within thebefore:browser:launch
API. Addressed in #15493.Cypress.moment()
has been removed. Please migrate to a different datetime formatter. See our recipe for example replacements. Addresses #8714.- The bundled Node.js version was upgraded from
12.18.3
to14.16.0
. This could change the behavior of code within thepluginsFile
when using the bundled Node.js version of Cypress. Addressed in #15292.- Installing Cypress on your system now requires Node.js 12+. Addresses #9545.
Features:
- A command log entry is now displayed when there is an uncaught exception or unhandled rejection. Addresses #8236.
- We added several features to https://github.com/cypress-io/cypress/blob/HEAD[https://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADyhttps://github.com/cypress-io/cypress/blob/HEAD.https://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEADnhttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADrhttps://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADphttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEAD(https://github.com/cypress-io/cypress/blob/HEAD)https://github.com/cypress-io/cypress/blob/HEAD]https://github.com/cypress-io/cypress/blob/HEAD(https://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADahttps://github.com/cypress-io/cypress/blob/HEADphttps://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADohttps://github.com/cypress-io/cypress/blob/HEADmhttps://github.com/cypress-io/cypress/blob/HEADmhttps://github.com/cypress-io/cypress/blob/HEADahttps://github.com/cypress-io/cypress/blob/HEADnhttps://github.com/cypress-io/cypress/blob/HEADdhttps://github.com/cypress-io/cypress/blob/HEADshttps://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEADnhttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADrhttps://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADphttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEAD)https://github.com/cypress-io/cypress/blob/HEAD. See the https://github.com/cypress-io/cypress/blob/HEAD[https://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADyhttps://github.com/cypress-io/cypress/blob/HEAD.https://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEADnhttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADrhttps://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADphttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEAD(https://github.com/cypress-io/cypress/blob/HEAD)https://github.com/cypress-io/cypress/blob/HEAD]https://github.com/cypress-io/cypress/blob/HEAD(https://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADahttps://github.com/cypress-io/cypress/blob/HEADphttps://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADohttps://github.com/cypress-io/cypress/blob/HEADmhttps://github.com/cypress-io/cypress/blob/HEADmhttps://github.com/cypress-io/cypress/blob/HEADahttps://github.com/cypress-io/cypress/blob/HEADnhttps://github.com/cypress-io/cypress/blob/HEADdhttps://github.com/cypress-io/cypress/blob/HEADshttps://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEADnhttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADrhttps://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADehttps://github.com/cypress-io/cypress/blob/HEADphttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEAD)https://github.com/cypress-io/cypress/blob/HEAD docs for full usage examples. Addressed in #14543. New features:
- There are new events on the req object for
cy.intercept()
includingbefore:response
,response
, andafter:response
.- Response handlers (supplied via event handlers or via
req.continue(cb)
) supplied tocy.intercept()
will be called in reverse order untilres.send
is called or until there are no more response handlers.- A new option,
middleware
, has been added to theRouteMatcher
type. If true, the supplied request handler will be called before any non-middleware request handlers.- A new function,
req.continue(cb)
, is available on request objects yielded bycy.intercept()
. It is functionally the same asreq.reply(cb)
- the request will stop propagating to other event handlers, will be sent outgoing, and the response will be handled by cb.cy.intercept()
can now be called with a new overload:cy.intercept(url, routeMatcher, handler)
.routeMatcher
will be merged withurl
, and the handler is required.- https://github.com/cypress-io/cypress/blob/HEAD[https://github.com/cypress-io/cypress/blob/HEAD`https://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADyhttps://github.com/cypress-io/cypress/blob/HEAD.https://github.com/cypress-io/cypress/blob/HEADvhttps://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEADshttps://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEAD(https://github.com/cypress-io/cypress/blob/HEAD)https://github.com/cypress-io/cypress/blob/HEAD`https://github.com/cypress-io/cypress/blob/HEAD]https://github.com/cypress-io/cypress/blob/HEAD(https://github.com/cypress-io/cypress/blob/HEADahttps://github.com/cypress-io/cypress/blob/HEADphttps://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADohttps://github.com/cypress-io/cypress/blob/HEADmhttps://github.com/cypress-io/cypress/blob/HEADmhttps://github.com/cypress-io/cypress/blob/HEADahttps://github.com/cypress-io/cypress/blob/HEADnhttps://github.com/cypress-io/cypress/blob/HEADdhttps://github.com/cypress-io/cypress/blob/HEADshttps://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADvhttps://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEADshttps://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEAD)https://github.com/cypress-io/cypress/blob/HEAD can now visit pages with
application/xhtml*
content-type. Addresses #15738.- You can now pass runner specific configuration in order to pass different configuration values to
component
tests versuse2e
tests. Addressed in #15526.- There's a new keyboard shortcut (
ctrl/cmd + f
) to search spec files in the Test Runner based on your OS. Addresses #6229.- You can now create a new spec file directly from the Test Runner in the Desktop. Addressed in #15335.
- https://github.com/cypress-io/cypress/blob/HEAD[https://github.com/cypress-io/cypress/blob/HEAD`https://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADyhttps://github.com/cypress-io/cypress/blob/HEAD.https://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADkhttps://github.com/cypress-io/cypress/blob/HEAD(https://github.com/cypress-io/cypress/blob/HEAD)https://github.com/cypress-io/cypress/blob/HEAD`https://github.com/cypress-io/cypress/blob/HEAD]https://github.com/cypress-io/cypress/blob/HEAD(https://github.com/cypress-io/cypress/blob/HEADahttps://github.com/cypress-io/cypress/blob/HEADphttps://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADohttps://github.com/cypress-io/cypress/blob/HEADmhttps://github.com/cypress-io/cypress/blob/HEADmhttps://github.com/cypress-io/cypress/blob/HEADahttps://github.com/cypress-io/cypress/blob/HEADnhttps://github.com/cypress-io/cypress/blob/HEADdhttps://github.com/cypress-io/cypress/blob/HEADshttps://github.com/cypress-io/cypress/blob/HEAD/https://github.com/cypress-io/cypress/blob/HEADthttps://github.com/cypress-io/cypress/blob/HEADihttps://github.com/cypress-io/cypress/blob/HEADchttps://github.com/cypress-io/cypress/blob/HEADkhttps://github.com/cypress-io/cypress/blob/HEAD)https://github.com/cypress-io/cypress/blob/HEAD now accepts a
log
option. Addresses #15180.- The Cypress proxy now adds a
keep-alive
header to all proxy responses. Addressed in #15292- Cypress no longer forces specific
NODE_OPTIONS
. Addressed in #15292Bugfixes:
... (truncated)
Commits
-
0399a6e
release 7.0.0 [skip ci] -
815369c
feat: trigger 7.0 release -
b457010
Merge pull request #14690 from cypress-io/7.0-release -
8b7ef26
Merge branch 'develop' into 7.0-release -
1eb32cd
fix: restore previous electron window size in interactive mode (#15789) -
ddda686
Merge pull request #15742 from cypress-io/agg23/RerenderRecipe -
9360ae1
fix: don't wrap errors thrown by cy.intercept req/res handlers (#15769) -
d9b05f6
Merge branch 'develop' into agg23/RerenderRecipe -
84bfe2e
chore(create-cypress-test): Fix a bunch of small issues in wizard (#15739) -
da199da
Merge branch 'develop' into agg23/RerenderRecipe - Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by chrisbreiding, a new releaser for cypress since your current version.
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) -
@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and language -
@dependabot badge me
will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot dashboard:
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)