Releases: cypress-io/cypress
Releases · cypress-io/cypress
0.11.9
Released 10/03/2015
Features:
- Added
.zip
as acceptable fixture extension. Content is sent back asbase64
. - Added docs to nav, consolidated
organize
intotests
. - Added favicon.
- Added tooltips everywhere.
- Created new debugging command: .pause() which will pause executing commands and allow you to resume or tep into the next command one at a time.
- You can now stop and restart tests from the UI.
- Added
cy.Blob
utilities forblob
/string
/base64
conversion. Useful for manually handling uploads.
Bugfixes:
- "Cannot revert DOM while tests are running" now removes itself correctly.
- Aliased DOM objects are now correctly stored on the test's
ctx
as instances of your jQuery (if one exists).
Misc:
- Updated UI styles / tests list / run all.
- Fixed alt tray icon so it shows up correctly on click.
0.11.8
Released 09/25/2015
Features:
- Added cy.request() command which can issue XHR requests. The request is generated outside of the rowser, and bypasses all CORS restrictions. Great for talking to an API for seeding, querying, building, etc.
Bugfixes:
- Prevented edge case with cy.fixture() where it would not be able to be cancelled without throwing an nhandled rejection error.
0.11.7
0.11.6
Released 09/25/2015
Bugfixes:
- Viewport is now properly restored to the default width / height after on subsequent runs. Previously it would retain the last viewport sized sed until there was a new viewport command.
cy.should('contain', '...')
now correctly escapes quotes and single quotes.- Assertion messages are no longer truncated, and instead will scale down by reducing the
font-size
andline-height
after they exceed 110 characters. So you'll now always see the full assertion message. - Fixed some scenarios where assertions would not be logged as a child command.
- Assertions based around the
window
ordocument
object no longer causechai
to bomb on formatting their object structures (due to yclic references) and instead now will show up as<window>
and<document>
.
Misc:
- cy.window() now logs out to the
Command Log
and additionally verifies upcoming assertions. - cy.document() now logs out to the
Command Log
and additionally verifies upcoming assertions. - Removed
numElements
label on assertions which indicated the number of elements found if > 1. This was annoying and redundant since the inked command already had this number.
0.11.5
Released 09/20/2015
Features:
- The
Linux
version of Cypress now works correctly for GUI Desktop versions (tested on Ubuntu Desktop). Previously it would only worked duringcypress run
in server versions. Thetray
used in OSX does not work with theLinux
, so inLinux
we just use a standard window + menu. - Added Desktop Icon.
Bugfixes:
- Cypress now forces the initial cy.visit() not to be cached by the browser. This was incorrectly being ached which meant when you changed the cy.visit() it would not actually go out and fetch the new contents. reviously you had to check
Disable Cache
in theNetwork Tab
inside of Chrome to prevent this bug. Unfortunately this has a significant erformance drawback. If you use a cy.visit() before each test you will notice a degrade in performance ecause this request is no longer cached. This is a temporary problem until Cypress implements a more sophisticated caching strategy which ptimizes these concerns. There is a lot to improve in this arena but it will take more time before it's implemented. - .should() will no longer throw an error when it is used as a
parent command
and has a callback unction signature, and that callback function throws outside of an assertion. Instead now it logs correctly, handles the error, and displays his error for you.
Misc:
- Many additional tests added to the multi-os deployment process.
- When Cypress opens other windows they are now auto-focused.
0.11.4
Released 09/17/2015
Features:
- .should() now accepts a callback function which will be retried until it does not throw. The callback unction will be retried in the exact same way as passing regular string-based chainers to .should(). aving a callback function gives you an opportunity to massage the expected subject such as comparing multiple elements, creating an array of ext or classes, etc.
Deprecations:
cy.wait(function)
has been deprecated and you can safely rename this command to .should().
Misc:
- All of the docs surrounding assertions, .should(), and .and() have been updated to reflect the new API.
0.11.3
Released 09/16/2015
Features:
- When XHR's are aborted Cypress will display the stack trace indicating where in your app the XHR was aborted. Additionally it will display s
(aborted)
in the command log.
Bugfixes:
0.11.2
0.10.8
0.10.7
Released 08/16/2015
Features:
- Port can now be specified as a CLI argument and will override any values stored in
cypress.json
.
Misc:
- When running through the CLI, Cypress will now display an error if the server's port is currently in use. Previously this would not output an rror and the process would just hang.