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 commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebase will rebase this MR
$dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts
Bumps [cypress](https://github.com/cypress-io/cypress) from 3.8.3 to 8.7.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/cypress-io/cypress/releases">cypress's releases</a>.</em></p>
<blockquote>
<h2>8.7.0</h2>
<p><em>Released 10/25/2021</em></p>
<p><strong>Features:</strong></p>
<ul>
<li>There are changes to how "slow" tests are determined and displayed in Cypress.
Addresses <a href="https://github.com/cypress-io/cypress/pull/18496">#18496</a>.
<ul>
<li>Added a <a href="https://docs.cypress.io/guides/references/configuration#Timeouts"><code>slowTestThreshold</code></a>
configuration option to customize when tests are considered "slow" during
<code>cypress run</code>. 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
<a href="https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Test-Configuration">test configuration</a>.</li>
<li>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 <code>"slowTestThreshold": 75</code> to your Cypress config file.</li>
<li>All tests will show the time the test ran in milliseconds during
<code>cypress run</code> with the default 'spec' reporter.</li>
</ul>
</li>
<li>Users can pass an <code>overwrite: true</code> option to <code>Cypress.Screenshot.defaults</code> to
change default behavior to overwrite existing screenshots without having to
set <code>overwrite</code> for each <code>cy.screenshot()</code> command. Addresses
<a href="https://github.com/cypress-io/cypress/issues/7955">#7955</a>.</li>
</ul>
<p><strong>Bugfixes:</strong></p>
<ul>
<li>Fixed a regression introduced in <a href="https://docs.cypress.io/guides/references/changelog#8-6-0">8.6.0</a> 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.</li>
<li>Fixed a regression introduced in <a href="https://docs.cypress.io/guides/references/changelog#8-6-0">8.6.0</a> so that the warning about the
<code>projectRoot</code> directory not being writeable will now display correctly. Fixes
<a href="https://github.com/cypress-io/cypress/issues/18485">#18485</a>.</li>
<li>Improved the error message when running Cypress without non-root permissions.
Fixes <a href="https://github.com/cypress-io/cypress/issues/18445">#18445</a>.</li>
<li>An error now throws when invalid options are passed to the <code>selectorPriority</code>
configuration option of <code>Cypress.SelectorPlayground.defaults</code>. Valid values
are <code>data-*</code>, <code>id</code>, <code>class</code>, <code>tag</code>, <code>attribute</code>, or <code>nth-child</code>. Fixes
<a href="https://github.com/cypress-io/cypress/issues/7745">#7745</a>.</li>
</ul>
<p><strong>Dependency Updates:</strong></p>
<ul>
<li>Pinned resolution of <code>ua-parser-js</code> to <code>0.7.24</code> to avoid dependency resolution
to the compromised package versions. Please read the
<a href="https://github.com/advisories/GHSA-pjwm-rvh2-c87w">security advisory</a> and
take actions advised as soon as possible. Addressed in
<a href="https://github.com/cypress-io/cypress/pull/18611">#18611</a></li>
</ul>
<h2>8.6.0</h2>
<p><em>Released 10/11/2021</em></p>
<p><strong>Features:</strong></p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/cypress-io/cypress/commit/2a7bfc900a7bacac56028d2d60fa00a4ab37c1a9"><code>2a7bfc9</code></a> release 8.7.0 [skip ci]</li>
<li><a href="https://github.com/cypress-io/cypress/commit/776b7301fd1ccedca1999ca744fbf4c67b3857a1"><code>776b730</code></a> feat: Add 'slowTestThreshold' and fix this.slow() inside specs (<a href="https://github.com/cypress-io/cypress/issues/18496">#18496</a>)</li>
<li><a href="https://github.com/cypress-io/cypress/commit/c027f28f38930f9d1e534d3bbca19483538b2243"><code>c027f28</code></a> chore: Update Chrome (beta) to 96.0.4664.18 (<a href="https://github.com/cypress-io/cypress/issues/18604">#18604</a>)</li>
<li><a href="https://github.com/cypress-io/cypress/commit/252be9e26e6a9d46b9269ea88efeffa5b0cd30db"><code>252be9e</code></a> chore(server): align test folder structure to src folder structure (<a href="https://github.com/cypress-io/cypress/issues/18597">#18597</a>)</li>
<li><a href="https://github.com/cypress-io/cypress/commit/dcefd77b052b2deec0b9ad0bd29cb16635f50d94"><code>dcefd77</code></a> fix: pin ua-parser-js to non compromised version (<a href="https://github.com/cypress-io/cypress/issues/18611">#18611</a>)</li>
<li><a href="https://github.com/cypress-io/cypress/commit/ffdb1882556ef055122716552a60c04ad82fbf52"><code>ffdb188</code></a> Revert "pin ua-parser-js to non compromised version"</li>
<li><a href="https://github.com/cypress-io/cypress/commit/1bf9406668e8a0c962e49edb253488e091934c60"><code>1bf9406</code></a> pin ua-parser-js to non compromised version</li>
<li><a href="https://github.com/cypress-io/cypress/commit/5f94cad3cb4126e0567290b957050c33e3a78e3c"><code>5f94cad</code></a> Merge pull request <a href="https://github.com/cypress-io/cypress/issues/18573">#18573</a> from cypress-io/fix-7745-validate-selector-priority...</li>
<li><a href="https://github.com/cypress-io/cypress/commit/1ed4e5792ebe2f30f8ef70952b150a84692a6c87"><code>1ed4e57</code></a> Merge branch 'develop' into fix-7745-validate-selector-priority-config</li>
<li><a href="https://github.com/cypress-io/cypress/commit/94a32611ae5a485b8292bed69044f20b562702c9"><code>94a3261</code></a> chore: Update Chrome (stable) to 95.0.4638.54 (<a href="https://github.com/cypress-io/cypress/issues/18563">#18563</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/cypress-io/cypress/compare/v3.8.3...v8.7.0">compare view</a></li>
</ul>
</details>
<br />
---
<details>
<summary>Dependabot commands</summary>
<br />
You can trigger Dependabot actions by commenting on this MR
- `$dependabot rebase` will rebase this MR
- `$dependabot recreate` will recreate this MR rewriting all the manual changes and resolving conflicts
</details>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps cypress from 3.8.3 to 8.7.0.
Release notes
Sourced from cypress's releases.
... (truncated)
Commits
2a7bfc9release 8.7.0 [skip ci]776b730feat: Add 'slowTestThreshold' and fix this.slow() inside specs (#18496)c027f28chore: Update Chrome (beta) to 96.0.4664.18 (#18604)252be9echore(server): align test folder structure to src folder structure (#18597)dcefd77fix: pin ua-parser-js to non compromised version (#18611)ffdb188Revert "pin ua-parser-js to non compromised version"1bf9406pin ua-parser-js to non compromised version5f94cadMerge pull request #18573 from cypress-io/fix-7745-validate-selector-priority...1ed4e57Merge branch 'develop' into fix-7745-validate-selector-priority-config94a3261chore: Update Chrome (stable) to 95.0.4638.54 (#18563)Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebasewill rebase this MR$dependabot recreatewill recreate this MR rewriting all the manual changes and resolving conflicts$dependabot recreate
⚠️
dependabotis recreating merge request. All changes will be overwritten! ⚠️✅
dependabotsuccessfuly recreated merge request!added 5 commits
master10a07afa- Chore(deps-dev): bump cypress from 3.8.3 to 8.7.0Compare with previous version
resolved all threads
mentioned in commit
a29ff07ae8