1.2.0
Released Released on December 13, 2017
Features:
Plugins can now return a
Promiseand modify the yieldedconfigto set new configuration values and environment variables. Fixes #1042 and #909 and #576.There is a new userAgent option in
cypress.json. This enables you to change theuserAgentof the browser for the entire browsing session. Fixes #364.There is a new blacklistHosts option in
cypress.jsonthat allows you to block requests made to those hosts. Blocked requests will respond with a503status code. This is useful for blocking 3rd party domains like Google Analytics. We have added a new 'Stubbing Google Analytics' recipe demonstrating this. Fixes #442.Added chai assertions in TypeScript to generate autocompletion. Fixes #1073.
Bugfixes:
Updated TypeScript definitions to more accurately match the current Cypress API. Fixes #1050. Also note that if you were extending Cypress in TypeScript the
Chainerinterface changed. Please read issue #1048 to understand what you will need to update.
Misc:
Renamed
environmentVariablestoenvin the Desktop GUI. Fixes #1052.Cypress.config() now returns a complete set of configuration values. Fixes #509.
Added TypeScript typings for bundled Cypress tools like
$,_, etc. Fixes #1046.Some error messages were made more passive. Fixes #1025.
Documentation Changes: