Notes:
Overview:
- You can now run your tests in the [Electron browser] and will see it as an option in the browser dropdown. The Electron browser is a version of Chrome that ships with Electron. It's the browser used when running Cypress headlessly, so it may be useful for debugging issues that only occur during headless runs. (https://on.cypress.io/guides/browser-management#section-electron-browser)! Addresses #452
Features:
- Added
resolveOn
option tocy.visit
that specifies which event to resolvecy.visit
on. The option acceptsload
orDOMContentLoaded
. Addresses #440 - New traversal commands
cy.nextAll
,cy.nextUntil
,cy.parentsUntil
,cy.prevAll
, andcy.prevUntil
have been added. Addresses #432
Bugfixes:
- An error is now thrown if an
undefined
value is mistakenly passed intocy.wait
. Previously, it would set the command timeout to an unimaginably large number of ms. Fixes #332 - Fixed issue where the contents of
state.json
were emptied, which would cause a crash and loss of state information. Fixes #473 Fixes #474
Misc:
- Error handling for invalid arguments passed to
cy.wait
has been improved and will now suggest valid arguments that are acceptable. - Browsers in the browser dropdown now have colored icons, which help visually distinguish the variants of Chrome.