3.2.0
Released Released on March 14, 2019
Features:
cy.visit() has been expanded to allow options
url,method,body, andheaders. This allows cy.visit() to be called with aPOSTmethod or with headers likeAccept-LanguageorAuthorization. Fixes #1500, #1904 and #908.cy.request() now allows any valid HTTP
methodto be used includingTRACE,COPY,LOCK,MKCOL,MOVE,PURGE,PROPFIND,PROPPATCH,UNLOCK,REPORT,MKACTIVITY,CHECKOUT,MERGE,M-SEARCH,NOTIFY,SUBSCRIBE,UNSUBSCRIBE,SEARCH, andCONNECT. Addresses #1302The
--browserargument of the Command Line and thebrowserargument of the Module API have been updated to allow passing a<path>. Addresses #1026.cy.type() now accepts
{home}and{end}special character sequences to move the cursor to the start or end of a line. Addresses #2033.The Cypress Chrome extension now has a static ID of
caljajdfkjjjdehjdoimjkkakekklcck. This allows Cypress to be added to your allowed extensions for those working under corporate policies that prohibit extensions. Addresses #3673, #1239 and #2494.
Bugfixes:
Problems logging in through GitHub in the Test Runner have been fixed. The GitHub login window no longer shows the browser support banner and the "Authorize cypress-io" button is no longer disabled. Fixes #1251.
Fixed an issue when testing applications using older versions of jQuery. They now no longer throw
item.first is not a function. Fixes #2927.Cypress now detects more instances of
browserinstallations. Fixes #3183 and #3218.Fixed issue with loading fixture files containing more than one
.in their filename while not specifying the file extension. We are also displaying a clearer warning when a fixture file cannot be found. Fixes #1402.All third party
@typeshave been moved from CypressdependenciesintodevDependencies. This should fix situations where user's type dependencies were conflicting with Cypress's third party type definitions. Fixes #3371 and #1227.Cypress.config('baseUrl')has been updated to no longer strip singular/at the end of urls and instead only strip instances of multiple/. Fixes #3540.The prompt to "Restore pages?" is no longer displayed within Chrome upon restarting a crashed Chrome window. Addresses #2048.
cy.wrap() no longer throws an error when a non-jQuery wrapped DOM element is passed in as an argument. Fixes #3549.
Fixed issue where all arguments passed to
setTimeoutorsetIntervalwere not properly passed on to the target function. Fixes #3592..filter() has been updated so that when called with a function, the options are now properly read. Fixes #3315.
Cypress's recognition of websites attempting framebusting has been updated to include framebusting code wrapped within
(). #3267When
.its()returnsundefinedit no longer errors. It will now follow the same logic as all other commands and only fail when directly by a .should() command with an assertion that is not met. Fixes #1531.When cy.wrap() is followed directly by a .should() command,
cy.wrap()will now retry when its argument evaluates toundefineduntil it meets the requirements of the assertion or thecy.wrap()command times out. Fixes #3241.
Misc:
We now display a warning when passing an argument to
--specthat is not surrounded by quotes""recommending that the argument instead be surrounded by quotes. In some cases, not providing quotes can cause the arguments to be read in a way that is likely not its intended use. Addresses #3318 and #2298.The number of logs printed when installing Cypress in Docker has been reduced. Partially addresses #1243.
The seeded Kitchen Sink examples have some new examples showing how to add a message to assertions, how to compare the text content of two elements, and how to make assertions about
dataattributes. The examples also have some small typo fixes. Fixes #502. Addressed in #3272, #3287, and #3700.We now only mount internal servers on
loopback. Addresses #3712.The instructions in Cypress's update window now include
yarnupdate instructions alongsidenpm. Addresses #2871.The spec file's font weight has been increased within the Test Runner for better readability. Addressed in #3065.
We improved the error message displayed when a record key is unrecognized during
cypress run. Addresses #1449.We improved the typings when using
Cypress.onto listen forwindow.alertevents to allow forSinon.stub. Fixes #3451.Fixed typo in typing for .trigger options. Addressed in #3588.
Documentation Changes:
New Retryability doc #1278
Updated
--browserandbrowserargs to acceptpath#1419Document how to accept or reject project transfers #1474
Updated docs on explain how to run Chrome and Chromium browsers #1339
Added
{home}and{end}character sequences tocy.type()doc. Also wrote better description of what{downarrow}and{uparrow}character sequences actually do. #1347Added all newly supported HTTP methods to cy.request() doc.
Add new section to Troubleshooting doc explaining how to allow the Cypress Chrome extension.
Fixed code example for google analytics stubbing #1454
Dependency Updates
Upgraded
@cypress/commit-infofrom2.1.1to2.1.2. #3327.Upgraded
@cypress/xvfbfrom1.2.3to1.2.4. #3328.Upgraded
@ffmpeg-installer/ffmpegfrom1.0.15to1.0.17. #3329.Upgraded
cachedirfrom1.3.0to2.1.0. #3660.Upgraded
chalkfrom2.4.1to2.4.2. #3362.Upgraded
chokidarfrom1.6.0to1.7.0. #3363.Upgraded
coffee-scriptfrom1.12.5to1.12.7. #3365.Upgraded
commanderfrom2.11.0to2.19.0. #3366.Upgraded
common-tagsfrom1.4.0to1.8.0. #3368.Upgraded
compressionfrom1.7.2to1.7.3. #3379.Upgraded
cookiefrom0.2.4to0.3.1. #3380.Upgraded
cookie-parserfrom1.4.3to1.4.4. #3443.Upgraded
dependency-treefrom6.4.0to6.5.0. #3381.Upgraded
electron-context-menufrom0.8.0to0.11.0. #3383.Upgraded
electron-packagerfrom9.0.1to9.1.0. #3384.Upgraded
electron-positionerfrom3.0.0to3.0.1. #3385.Upgraded
errorhandlerfrom1.1.1to1.5.0. #3386.Upgraded
expressfrom4.16.2to4.16.4. #3409.Upgraded
extract-zipfrom1.6.6to1.6.7. #3410.Upgraded
globfrom7.1.2to7.1.3. #3412.Upgraded
is-cifrom1.0.10to1.2.1. #3414.Upgraded
lodashfrom4.17.4to4.17.11. #3344.Upgraded
mocha-junit-reporterfrom1.17.0to1.18.0. #3417.Upgraded
momentfrom2.23.0to2.24.0. #3433.Upgraded
morganfrom1.3.0to1.9.1. #3434.Upgraded
node-uuidfrom1.4.1to1.4.8. #3436.Upgraded
parse-domainfrom2.0.0to2.1.7. #3437.Upgraded
requestfrom2.87.0to2.88.0. #3444.Upgraded
request-progressfrom0.3.1to0.4.0. #3445.Upgraded
request-promisefrom4.1.1to4.2.4. #3446 and #3476.Upgraded
return-deep-difffrom0.2.9to0.3.0. #3447.Upgraded
sendfrom0.14.2to0.16.2. #3448.Upgraded
ssl-root-casfrom1.2.5to1.3.1. #3449.Upgraded
supports-colorfrom5.1.0to5.5.0. #3464.Upgraded
throughfrom2.3.6to2.3.8. #3465.Upgraded
tmpfrom0.0.31to0.0.33. #3466.Upgraded
trashfrom4.0.0to4.3.0. #3478.Upgraded
underscore.stringfrom3.3.4to3.3.5. #3480.Upgraded
yauzlfrom2.8.0to2.10.0. #3481. Potentially fixes #3515.We also updated many dependencies used for development and removed some unused dependencies.