There are changes to how "slow" tests are determined and displayed in Cypress.
Addresses #18496.
Added a slowTestThreshold
configuration option to customize when tests are considered "slow" during
cypress run. A test that runs slower than the given threshold will display
in orange text in the default 'spec' reporter. This configuration can be set
in your Cypress config file or via specific
test configuration.
The default slow test threshold was changed from 75ms (Mocha's default) to
10000ms for e2e tests and 250ms for component tests. To restore the old
behavior, you can add "slowTestThreshold": 75 to your Cypress config file.
All tests will show the time the test ran in milliseconds during
cypress run with the default 'spec' reporter.
Users can pass an overwrite: true option to Cypress.Screenshot.defaults to
change default behavior to overwrite existing screenshots without having to
set overwrite for each cy.screenshot() command. Addresses
#7955.
Bugfixes:
Fixed a regression introduced in 8.6.0 where videos recorded in
Electron to the Dashboard were not playable in the Firefox or Safari browser
and were not compatible with QuickTime player in MacOS.
Fixed a regression introduced in 8.6.0 so that the warning about the
projectRoot directory not being writeable will now display correctly. Fixes
#18485.
Improved the error message when running Cypress without non-root permissions.
Fixes #18445.
An error now throws when invalid options are passed to the selectorPriority
configuration option of Cypress.SelectorPlayground.defaults. Valid values
are data-*, id, class, tag, attribute, or nth-child. Fixes
#7745.
Dependency Updates:
Pinned resolution of ua-parser-js to 0.7.24 to avoid dependency resolution
to the compromised package versions. Please read the
security advisory and
take actions advised as soon as possible. Addressed in
#18611
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 8.2.0 to 8.7.0.
Release notes
Sourced from cypress's releases.
... (truncated)
Commits
2a7bfc9
release 8.7.0 [skip ci]776b730
feat: Add 'slowTestThreshold' and fix this.slow() inside specs (#18496)c027f28
chore: Update Chrome (beta) to 96.0.4664.18 (#18604)252be9e
chore(server): align test folder structure to src folder structure (#18597)dcefd77
fix: pin ua-parser-js to non compromised version (#18611)ffdb188
Revert "pin ua-parser-js to non compromised version"1bf9406
pin ua-parser-js to non compromised version5f94cad
Merge pull request #18573 from cypress-io/fix-7745-validate-selector-priority...1ed4e57
Merge branch 'develop' into fix-7745-validate-selector-priority-config94a3261
chore: Update Chrome (stable) to 95.0.4638.54 (#18563)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)