Bump cypress from 4.2.0 to 6.2.0
Created by: dependabot-preview[bot]
Bumps cypress from 4.2.0 to 6.2.0.
Release notes
Sourced from cypress's releases.
6.2.0
Released 12/21/2020
Features:
- You can now listen to
before:run
andafter:run
events in the plugins file. See thebefore:run
andafter:run
docs for more information. Addressed in #14238 and #14263.- You can now listen to
before:spec
andafter:spec
events in the plugins file. See thebefore:spec
andafter:spec
docs for more information. Addressed in #9646 and #14178.- The
Timed out retrying
error message now displays the amount of time Cypress retried. Addresses #5781.Bugfixes:
- Getting an alias of
cy.intercept()
usingcy.get()
will no longer always yieldnull
. Fixes #9306.cy.intercept()
will now automatically responds to CORS preflight requests (HTTPOPTIONS
requests) that match defined routes. Fixes #9599.- Response errors from
forceNetworkError
can now be awaited usingcy.intercept()
andcy.wait()
. Fixes #9062.- Using
cy.log()
inside.then()
no longer breaks the subject value in the command chain. Fixes #8084.- Using
Cypress.Commands.overwrite
to overwrite.then()
now preserves the properthis
context and sets aliases correctly. Fixes #5101.- Using
Cypress.Commands.overwrite
to overwritecy.route()
orcy.intercept()
and wait on its alias now properly works. Fixes #3890 and #9580.- Cypress no longer fails to find specs if you set the fixtures folder to be the same as the integration folder. Fixes #14226.
Misc:
scrollBehavior
is now an allowed type when passed as test configuration. Addresses #9643.- The
FileObject
type for the file argument of thefile:preprocessor
event now includes theEventEmitter
type. Addresses #9276.Dependency Updates:
- Upgraded
electron
from11.0.2
to11.0.3
. Addressed in #9409.6.1.0
Released 12/07/2020
Features:
- There's a new
scrollBehavior
configuration option that controls the viewport position when an element is scrolled prior to action commands. Possible values are'top'
,'bottom'
,'center'
,'nearest'
, andfalse
, with'top'
being the default.scrollBehavior: false
disables scrolling altogether.scrollBehavior
can be specified in global configuration, test configuration or individual action commands viaoptions
. Addresses #871 and #4356.- The Tests tab in the Test Runner now orders folders before files. This matches the ordering of most IDEs' file explorers. Addresses #7334.
Bugfixes:
- Responses stubbed from
cy.intercept()
will now automatically setAccess-Control-Allow-Origin
andAccess-Control-Allow-Credentials
to permissive values unless explicitly overridden. Fixes #9264.- The
Cannot read property "fireChangeEvent" of undefined
error will no longer throw during a race condition when usingcy.intercept()
. cypress-io/cypress#9170- HTTP responses that cannot have a body (like HTTP 304 and HTTP 204) can now be awaited using
cy.intercept()
. Fixes #8934 and #8999.- We fixed an issue where HTTP redirects could not be awaited using
cy.intercept()
unless dynamically intercepted. Addressed in #9097.- Tests will no longer hang in certain situations when there's an error in a
before()
hook. Fixes #9162.- We no longer strip
/
from URLs when they are explicitly passed with query paramaters. Fixes #9360.Deprecations:
Deprecations still work as before but will be removed from Cypress in a future release. We encourage you to update your code now to remove uses of deprecations.
Cypress.moment
has been deprecated and will be replaced in a future release. Consider migrating to a different datetime formatter. Addresses #8714.
Commits
-
1fcbd5b
release 6.2.0 [skip ci] -
1ab81f1
ci: Use eslint plugin to catch .only in tests (#9624) -
9a25fd0
feat: Add after:run event (#14263) -
d6c0bcf
feat: Add before:run event (#14238) -
4669b8e
fix(net-stubbing): match cy.intercept(url) globs against url+path (#14241) -
05b4516
chore: Handle deleted videos (#9595) -
68a4016
test: fix percy flake for 'loading tests' display (#14254) -
2616721
Merge branch 'master' into develop -
705ee3a
chore: release @cypress/react-v4.16.1 -
506af90
Merge branch 'master' into develop - 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)