3.1.5
Released Released on January 29, 2019
Bugfixes:
Fixed issue where the
onLoadevent was never being called when calling cy.visit() on the url Cypress is currently navigated to. Fixes #1311.Fixed regression introduced in 3.1.4 that caused an
InvalidStateErrorwhen visiting a page with an XHR request with aresponseTypeother thantextor''. Fixes #3008.Fixed several issues in Chrome* versions
>=72in the Cypress proxy that caused usingcy.visit()withlocalhostto fail, or usinglocalhostinside of thebaseUrlconfiguration option. Fixes #1872 and #3252 and #1777.Fixed another issue in Chrome* versions
>=72where a scrollable command log would cause the entire application to be scrollable. Fixes #3253.Fixed not correctly passing the
timeoutoption for cy.request(). This should fix some instances where largetimeoutvalues would causeESOCKETTIMEDOUTerrors. Fixes #2669.Fixed issue where Cypress would inject a script tag before the
<!DOCTYPE>declaration when the document only contained the doctype declaration. Fixes #2617.The error message when visiting a site with an invalid content-type now prints the correct content-type of the response Cypress received from the web server. Fixes #3101.
Fixed issue where an internal
layout.htmlfile would inadvertently get loaded instead of the spec file. Fixes #2891.Fixed issue where the Chromium browser was not detected in Linux due to Cypress not distinguishing between Chrome and Chromium browsers with the same version. Fixes #1400.
Fixed issue of Cypress being unable to play videos with
autoplay. We now pass the--no-user-gesture-requiredcommand line switch to Chrome. Fixes #2376.We now pass the Chromium command line switches
--use-fake-ui-for-media-streamand--use-fake-device-for-media-streamto Chrome by default in order to better support testing webcam functionality. Fixes #2704.Updated filenames allowed for screenshots to allow more characters that are valid. Fixes #3052.
Fixed TypeScript error caused by
dtslintdependency introduced in 3.1.4. Fixes #3024 and #3136.Improved error message displayed for
cypress cacheto not display[object Object]and made--helplabels more descriptive. Fixes #2589.Using .clear() on inputs of type 'date' is now working. Fixes #2738
Fixed issue where
eventwas undefined when using anonloadevent handler. Fixed #2859
Misc:
Improved errors shown when opening a project in the Desktop Application. The design is more readable and the error's stack trace is now expandable. Addresses #2955.
Improved experience of search in Desktop Application when there are no results. Addresses #3146.
Updated tooltip content so that it no longer flows outside of the tooltip in the Test Runner when displaying longer routes. Fixes #2980.
Added word labels beside icons in Desktop Application for 'Support' and 'Docs' links. Addresses #3091.
Updated the CLI to no longer silence important stdout from
cypress version,cypress cache listetc commands. Addresses #2705.Fixed incorrect type definition for options usage for .then(). Addresses #3075.
Fixed incorrect JSDoc comments in type definition for .focus() and better formatted comments in type definitions. Addresses #2975 and #2954.
Updated error messages to include single quotes when displaying written test code. Addresses #2684
Documentation Changes:
Added example on how to use a fake video for webcam testing to Browser API doc.
Dependency Updates