5.5.0

Released Released on October 25, 2020

Features:

  • cy.viewport() has a new macbook-16 preset. Addresses #8889.

  • .type() now fires the beforeInput event during typing. Note: Firefox does not support the beforeinput event. Addresses #7088.

Bugfixes:

  • Updated the Cypress proxy layer to proxy HTTPS traffic from non-AUT origins. Addressed in #8827.

    • This fixed an issue with cy.route2() where HTTPS requests to a non-AUT origin would not be intercepted as expected.

  • cy.route2() now properly handles passing a method as its first argument. Fixes #8729.

  • Fixed an issue with cy.route2() where a "Cannot set property response of undefined" error would occasionally occur. Fixes #8858.

  • Headers field names passed to cy.route2() now case-insensitively match against the field names of incoming HTTP requests. Fixes #8921.

  • Routes that stub fixtures for binary resources (including images) made with cy.route2() now serve the correct mime-type and content. Fixes #8623.

  • When experimentalNetworkStubbing is enabled, using cy.visit() to URLs that redirect and set Transfer-Encoding: chunked will no longer fail in Cypress with a "Parse Error". Fixes #8497.

  • cypress.run() through the Module API now has a status property in the results matching the correct CLI types ("failed" or "finished"). Addresses #8798.

  • When a value containing an e character is passed to the --ci-build-id flag, Cypress now properly reads it as a string. Fixes #8874.

Misc:

  • Updated type definitions to allow for passed either runMode or openMode to retries alone. Addresses #8869.

Dependency Updates:

  • Upgraded electron from 10.1.3 to 10.1.5. Addressed in #8927 and #8975.

    • This addresses a Chrome security issue, CVE-2020-15999. Addresses #8922.

  • Upgraded color-string from 1.5.3 to 1.5.4. Addressed in #8945.

  • Upgraded pretty-bytes from ^5.3.0 to ^5.4.1. Addressed in #8964.