Released 08/31/2016
Features:
- You can now pass keyboard modifiers such as
ctrl
,cmd
,shift
, andalt
to.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>
ordocument
as 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 oldcommandTimeout
value.- The
__cypress.initial
cookie 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/html
headers 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 defaultencoding
and for everything else it will default toutf8
. Fixes #200. cy.fixture()
now acceptsencoding
as a 2nd optional argument.- We now display a keyboard 'modifiers' column when clicking on a
.type()
in the Command Log.