0.17.1
Released 08/31/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:
- defaultCommandTimeout now works correctly. The driver was still referencing the old
commandTimeoutvalue. - The
__cypress.initialcookie should now be removed during any cy.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 default
encodingand for everything else it will default toutf8. Fixes #200. - cy.fixture() now accepts
encodingas a 2nd optional argument. - We now display a keyboard 'modifiers' column when clicking on a .type() in the Command Log.