Skip to content

Bump cypress from 3.2.0 to 3.3.0

Hannes Heine requested to merge pr629head into pr629base

Created by: Tirokk

dependabot-preview[bot] Authored by dependabot-preview[bot] Merged


Bumps cypress from 3.2.0 to 3.3.0.

Release notes

Sourced from cypress's releases.

3.3.0

Released 5/17/2019

Features:

  • Cypress now automatically reads from your system's HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variables and proxies traffic accordingly through Cypress based on these values. This includes network traffic within your application under test, when downloading Cypress, and when accessing 'Runs' within the Test Runner. Please read our new Proxy Configuration doc to understand more about proxy configuration in Cypress. Fixes #672, #733, #939, #1039, #1459, #1469, #1470, #1541, #1608, #2295, #3855, #3865, #1401 and #3857.
  • Your project's current proxy settings now display in the Settings of the Test Runner. Addresses #3856.
  • Support for have.focus, not.have.focus, be.focused and not.be.focused assertions have been added. Addresses #97.
  • We now offer a separate 32bit and 64bit build for Windows. Addresses #716, #787, #2095, #706.
  • Requests that go through cy.visit() or cy.request() are now automatically retried under the hood when the request fails. This more closely reflects Chrome's default behavior on requests. Addresses #4013, #898 and #1013.
  • cy.visit() and cy.request() now support new options retryOnStatusCodeFailure and retryOnNetworkFailure to allow changing Cypress's automatic request retry on status codes and network errors. Addresses #4013, #898 and #1013.
  • .type() now supports the special character sequences {insert}, {pageup}, and {pagedown}. Addresses #3845.
  • We now indicate which XHRs match which alias in the Command Log on .wait() when they match an alias multiple times. Addresses #477.
  • The console log when clicking on the cy.visit() command now displays its resolved options arguments. Addresses #3721.
  • There's a new 'canceled' XHR status shown on the Command Log to indicate the difference between calling xhr.abort() and the browser canceling the request due to page navigation. Addresses #3973.
  • The Electron browser now runs Chrome Version 61. Addresses #4000.
  • Running Cypress via cypress run now supports scripts of type="module". Fixes #3696.
  • Exposed Cypress.isCy() method to check if a value is a valid instance of cy or a cy chainable. Fixes #3822.

Bugfixes:

  • Fixed a regression introduced in 3.2.0 that caused an error to throw when visiting domains with certain public suffixes. Fixes #3717.
  • When running Cypress with NODE_OPTIONS environment variables set, Cypress no longer issues an incorrect 0 exit code. #1676
  • Fixed a regression introduced in 3.2.0 that caused .its() to no longer retry when it yields undefined. #3837
  • Fixed a regression introduced in 3.2.0 that caused cy.fixture() to throw a EISDIR error if a directory had the same name as a file within that same directory. Fixes #3739.
  • user-agent headers sent as arguments to cy.request() and cy.visit() are now properly sent. Fixes #3873 and #3719.
  • We changed Cypress's implementation to no longer rely on internal XHR events when the browser navigates. This fixes a a bug in Chrome 71+ that could cause XHRs to pend forever. Fixes #3973 and #4130
  • We greatly improved the speed of proxied requests through our network layer. Fixes #3192 and #1469.
  • If an error occurs during cypress verify, we now kill the verification process after 10 seconds and print the error message. This should prevent some situations where Cypress would hang during installation or verification and never exit. Fixes #819.
  • Cypress automatically retries cypress verify and cypress run commands by starting its own XVFB server on Linux if the first attempt fails due to possible DISPLAY misconfiguration. Addresses #4034.
  • Cypress now properly handles typing JavaScript object prototype methods (like hasOwnProperty) into .type(). Fixes #3423.
  • We now set the form option to true if the Content-Type header equals application/x-www-form-urlencoded and json is not already set by a user. This fixes a situation where Cypress would try to parse the body as a string, resulting in a confusing error message. Fixes #2923.
  • cy.contains() now correctly handles comma delimited arguments passed to the selector argument. Fixes #2407.
  • Passing a browser path containing spaces now works properly when passed to the --browser argument. Fixes #3979
  • Fixed display of tooltips when selecting elements from the Selector Playground so that they display at the correct coordinates when scrolling. Fixes #1351.
  • The lists of spec files now display at the correct indentation level when they are nested more than 5 directories deep. Fixes #3652.
  • Cypress now properly parses environment variables with empty values. Fixes #3742.
  • Assertions running outside of a test are now properly handled in Cypress instead of throwing internal errors. Fixes #3926.
  • Cypress.log() now throws an error when not properly passed an object as its argument. Addresses #3658.
  • Cypress.log() no longer throws when called before any other Cypress commands. Fixes #3658.

Misc:

  • We now better support capturing environment variables within Azure DevOps. Addresses #3657.
  • Cypress now only scans for spec changes when the watcher sees changes, rather than polling to scan. Addresses #3069.
  • The ability to open the context menu to see "Inspect Element" has been reenable in the Electron browser. Addresses #4002.
  • We no longer package non-Windows ffmpeg builds with Windows builds, resulting in a 35-40% reduction in zipped size and a 36-43% reduction in unzipped size of download. Addresses #3888.
  • When an HTTP request is received by the proxy layer, by default, we send it with a Connection: keep-alive header so that the connection will be reused if possible. Addresses #3857.
  • Improved accessibility of Test Runner for screen readers. Addresses #3850.
  • Cypress type definition now allow a timeout option in cy.hash(). Fixes #3844.
... (truncated)
Commits

Dependabot compatibility score

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 ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major 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)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • 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)

Finally, you can contact us by mentioning @dependabot.

Merge request reports