0.17.1
Released Released on August 30, 2016
Features:
You can now pass keyboard modifiers such as
ctrl,cmd,shift, andaltto.type(). In addition we've added support for not "releasing" these keys so they can affect other actions such as.click(). Addresses #196.You can now type into the
<body>ordocumentas opposed to previously having to target a valid focusable element. This is useful in situations where you're testing keyboard shortcuts and do not want to target a specific element. Addresses #150.There is a new command
cy.readFile()that reads files on your file system and changes the subject to the contents. Addresses #179.There is a new command
cy.writeFile()that creates and/or writes contents to files on your file system. Addresses #179.
Bugfixes:
defaultCommandTimeoutnow works correctly. The driver was still referencing the oldcommandTimeoutvalue.The
__cypress.initialcookie should now be removed during anycy.visit(), which should fix some edge cases with the proxy accidentally injecting content when it shouldn't. We also added a ton more e2e tests covering these edge cases and other behavior.The proxy now restricts its injection to only
Content-Type: text/htmlheaders so it will not accidentally inject into the wrong responses.
Misc:
All
cy.fixture()extensions are now supported and Cypress will no longer throw on extensions it doesn't recognize. For known fixture extensions we'll continue to apply a defaultencodingand for everything else it will default toutf8. Fixes #200.cy.fixture()now acceptsencodingas a 2nd optional argument.We now display a keyboard 'modifiers' column when clicking on a
.type()in the Command Log.