The experience when opening a new project via cypress open has been improved. Addressed in #15826.
The scaffolded example files have been updated to include examples tests of the TodoMVC project.
You can now easily delete all of the scaffolded example files directly from the Test Runner GUI.
There's now a button to create a new spec file when no spec files are found in the project.
A new onboarding banner with be present with helpful links for new users and new projects.
The incoming request object yielded to request handler functions passed to cy.intercept() (req) now has a req.query property, which is a getter/setter for the query parameters on the request URL. Addresses #16327.
You can now pass an ArrayBuffer as a request / response body with cy.intercept(). Addresses #16722
Bugfixes:
Cypress no longer hangs intermittently when using webpack 5. Fixes #15447.
It is no longer necessary to return the config from the plugins function when using the dev-server:start event for component testing. Fixes #16860.
cy.intercept() now correctly sets the response body as a string instead of an ArrayBuffer when it contains multi-byte characters. Fixes #16292.
cy.intercept() won't corrupt certain binary responses. Fixes #16722.
On Windows, the Cypress executable is now code signed by "Cypress.io, Inc.". This fixes spawn UNKNOWN errors when launching Cypress with code signing required by policy on Windows. Fixes #2543
We now warn on EPERM errors when accessing the project directory instead of erroring. Fixes #16933.
Cypress now better handles running when browsers with unconventional versions are present on the machine. Fixes #15485.
Expanded the types for CyHttpMessages.BaseMessage.headers to support the value being an array of strings. Fixes #16734.
The Test Runner has a new 'Docs' menu with links and prompts specific to helping you get started writing tests, set up in CI, and running tests in the Dashboard. Addressed in #16433.
cy.request() now accepts a generic in TypeScript for specifying the type of the request body. Addresses #9109.
Bugfixes:
Cypress will not longer crash with a hasBinary infinite recursive call. Fixes #16476.
The --config-file option now correctly handles absolute paths. Fixes #6136.
cy.location(<key>) will now retry if the remote location returns an empty string, which is possible during otherwise harmless redirects. Fixes #16463.
Cypress now passes a flag to Chrome browsers to prevent update notifications from displaying in some cases. Fixes #16693.
TypeScript will now properly error when attempting to use the chai <value>.should() syntax. Fixes #16548.
Dependency Updates:
Replaced deprecated listr with listr2. Addressed in #16663.
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](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps cypress from 5.1.0 to 7.6.0.
Release notes
Sourced from cypress's releases.
... (truncated)
Commits
39542ef
release 7.6.0 [skip ci]157a3b9
chore: add showedOnBoardingModal back to allowed state keys (#17086)8f6d55a
feat: cy.intercept provides req.query. (#16916)2bfe264
refactor: remove project token, unused since 0.19.0 (#17039)4c864e3
fix: better handle unconventional browser version (#16990)8e11b2d
chore(server,server-ct): share initPlugins and spec watcher via Server Base c...da3e49b
feat: updated scaffolding, new project & user banners, ability to remove scaf...03ab08d
fix: warn on EPERM for project directory just like EACCES (#16934)56bcbb6
fix(webpack-preprocessor): hanging issues with webpack 5 (#15611)fafc7b0
Merge branch 'master' into developDependabot 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](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)