0.17.2
Released 09/06/2016
Notes:
- After this update if you are seeing
<iframe>origin errors please let us know by opening an issue. We will screen-share with you to diagnose the issue. We're no longer aware of any situation where this should happen, so if you're experiencing these bugs, please help us track them down.
Features:
- Attempting to cy.visit() a non
text/htmlresource will now throw a specific error message instead of bombing on page injection with an<iframe> origin error. You have to visit actualhtml, you cannot visit something like a.jsonor.png. If you're wanting to visit an API route on your backend that does something like set cookies (thus avoiding loading your UI) you can just use cy.request() for this since it will now automatically get and set cookies under the hood. Fixes #211.
Bugfixes:
- Fixed a regression in
0.17.1that was incorrectly settingCacheheaders. This could cause a situation where you received an<iframe>origin error. Additionally we now setNo-Cacheheaders whenever we inject content, but otherwise respect the headers coming from web servers. When using Cypress as the file server, we setetagsbut prevent caching. - Most likely fixed a bug that was crashing Cypress due to
Cannot set headers after they've been sent. We were unable to write a test for this since we could not recreate the error, but analyzed how it may happen and fixed the code there. {% open_an_issue %} if you see this error, it will be obvious since Cypress will literally crash. - We stopped minifying
vendor.js(for real this time). More optimizations to come around this. - Prevented accidentally setting
domaincookies when they were reallyhostOnlycookies, thus duplicating the number of cookies sent on requests. Kudos to @bahmutov for finding this one. Fixes #207. - Fixed some edge cases in
cypress-core-extensionwhere it threw errors when attempting toexecuteScripton a tab withabout:blankorchrome://urls. - We've fixed some underlying issues with cy.go() during
cypress run. It always worked fine in real Chrome. Previously there were some situations where it would not navigate forward / back correctly.
Misc:
- No longer force cy.visit() to navigate to
about:blankprior to navigating to the real url. Fixes #208. - cy.writeFile() can now accept an empty string. Fixes #206.
- Improved error messages for cy.readFile() and cy.writeFile().
- The full file path is now included in console output for cy.readFile() and cy.writeFile().
- The Kitchen Sink and
example_spec.jshave been updated to reflect the newest changes and features of0.17.1.