9.3.0
Released Released on January 17, 2022
Features:
Added a new Cypress command, called
.selectFile(), to select a file or files in an HTML5 input element or simulate dragging a file or files into the browser. The API is similar tocypress-file-uploadand we have provided a migration guide for previous users of that plugin. For more details, see our blog post. Fixes #19524 and #170.Exposed the
Bufferpolyfill, asCypress.Buffer, to enable working with binary data. Addressed in #19524.Added the
CYPRESS_DOWNLOAD_PATH_TEMPLATEenvironment variable which can be set to a string template for building the download URL for the Cypress binary. This environment variable is useful for users who are downloading the Cypress binary from a proxy that is not one-to-one with the Cypress's default download url. More information can be found in the Install Binary documentation. Fixes #15697.
Bugfixes:
Fixed an issue where the
--specCLI parameter was not working properly when passing multiple glob patterns that are separated by commas. Fixes #16102.Fixed an issue with how the
CYPRESS_VERIFY_TIMEOUTenvironment variable was read so it can set in a project'spackage.jsonor its.npmrc. Fixes #19559.
Dependency Updates:
Upgraded
graceful-fsfrom4.2.0to4.2.9. This upgrade resolves issues observed with using graceful-fs v4.2.0 with resolve v1.21+. Addressed in #19676 and resolves #19610.NOTE: This upgrade to
graceful-fsbreaks Cypress's compatibility with Yarn 2. We have observed errors with Yarn2.4.2withgraceful-fs4.2.9. Before this change, Cypress had minimal Yarn 2 support (see #6377). Between Yarn 3 fixing multiple bugs and the migration path from Yarn 2 to Yarn 3 being minimal, we felt the best step forward was to support and recommend Yarn 3 over Yarn 2.
Upgraded
electronfrom15.2.0to15.3.4. Addressed in #19351.