We've made some updates to ensure a consistent run experience across browsers.
Now all browsers run via cypress run run headlessly, with a device pixel ratio
of 1, and a screen size of 1280x720 by default.
Breaking Changes:
Please read our
Migration Guide which explains the changes
in more detail and how to change your code to migrate to Cypress 8.0.
When running cypress run previous to 8.0, some browsers would launch headed
while others were launched headless by default. Cypress now runs all browsers
during cypress run as headless by default. Addresses
#16832.
The default screen size when running a headless browser has been reverted back
to 1280x720 pixels (pre 7.0 behavior). Addresses
#16853.
When running the --headless Chrome browser via cypress run, the device
pixel ratio will now be 1 by default, matching the behavior of all other
browsers. This behavior can be overridden through the
browser launch API.
Addresses #17375.
Cypress now enforces version checks for browser launching and will error
during cypress run and not allow opening the browser in cypress open when
attempting to open unsupported browser versions. Cypress supports Chrome >=
64, Firefox >= 86, and Edge >= 79. Addressed in
#17355.
Arguments returned from a chained function will no longer incorrectly be of
type jQuery and instead have an any type. Fixes
#16669.
The Cypress.ConfigOptions, Cypress.ResolvedConfigOptions and
Cypress.RuntimeConfigOption types have been updated so that ConfigOptions
match the JSON schema. Addressed in
#17251.
Features:
You can now configure certificate authority (CA) and client certificates to
use within tests on a per-URL basis via a clientCertificates configuration
option. See Client certificates for
more detail.
Setting the environment variable ELECTRON_RUN_AS_NODE now starts Cypress as
a normal Node.js process rather than an Electron process. See
Running headless tests without Xvfb
for more details. Addresses
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 8.0.0.
Release notes
Sourced from cypress's releases.
... (truncated)
Commits
d1340cd
release 8.0.0 [skip ci]190294c
fix: revert "fix:res.send
ofcy.intercept
doesn't override json-related ...c2f91f6
Merge pull request #16831 from cypress-io/8.0-release62f492b
chore(tests): ff headless click_spec, ff visibility_spec (#17397)23edbc0
Merge branch 'develop' into 8.0-release8a48488
fix(breaking_change): default to headless and 1280x720 for cypress run in all...ae0c520
chore: Update Chrome (stable) to 91.0.4472.164 (#17360)113d05e
fix(studio): more resilient saving to file (#17297)8cef948
feat(BREAKING): Set DPR to 1 for Chrome headless browsers by default (#17377)97c03c1
chore: remove Firefox < 80 auto garbage collection (#17368)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)