0.18.1
Released Released on December 10, 2016
Notes:
There is a new recipe showcasing these new features.
We are adding several other recipes to show examples of all the ways you can use
cy.request()to improve your tests.
Features:
cy.request()can now have its automatic redirect following turned off by passing{followRedirect: false}. Fixes #308.cy.request()now has aqsoption that automatically appends query params to theurlproperty. Fixes #321.cy.request()now follows redirects exactly like a real browser. Previously if youPOSTed to an endpoint and it redirected to aGETthency.request()would not follow it due to themethodchanging. It now follows method changing redirects by default. Fixes #322.cy.request()now accepts theformoption which will convert thebodyvalues to urlencoded content and automatically set thex-www-form-urlencodedheader. This means you can now usecy.request()to bypass your UI and login with standard form values. Fixes #319.When
cy.request()fails, it now outputs the full request / response information. This behaves more similar tocy.visit()failures. Fixes #324.cy.request()now prints all of the underlying HTTP request / response information into the Dev Tools' console (when clicking on the Command Log). This means that you will see everything you would normally see from theNetworktab as if the request were made from the browser. We even print redirect information. Fixes #325.
Bugfixes:
Cypress' internal
babelwill no longer attempt to load your project's.babelrc. This helps avoid potential version conflicts. Fixes #312.We no longer watch the
supportFilewhile runningcypress run. Fixes #329.watchForFileChangesis now correctly respected in regards to watching all files, including thesupportFile. Fixes #336.There is no longer an error when scaffolding a new Cypress project. Fixes #326.
The Runner UI no longer appears to be "running" when there is a spec bundle error in the
supportFile.Cypress now correctly exits during
cypress runinlinuxwhen the browser fails to connect. Fixes #333.Cypress now correctly exits during
cypress runinlinuxwhen there is a spec bundle error. Fixes #337.Cypress now retries up to 3 times for the browser to connect during
cypress run. The warning / error messages were also updated to be clearer. Partially addresses #334.
Misc:
Deprecated
failOnStatusproperty forcy.request()and renamed tofailOnStatusCode. Fixes #323.Removed the
cookiesoption fromcy.request()because cookies are now always get/set on requests. This option really never made any sense to have. Fixes #320.Better data reporting when recording builds in CI.
We now collect "global" errors that may prevent any tests from running. We will be displaying these in our future CI platform.