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
resolveOnoption tocy.visitthat specifies which event to resolvecy.visiton. The option acceptsloadorDOMContentLoaded. Addresses #440 - New traversal commands
cy.nextAll,cy.nextUntil,cy.parentsUntil,cy.prevAll, andcy.prevUntilhave been added. Addresses #432
Bugfixes:
- An error is now thrown if an
undefinedvalue 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.jsonwere emptied, which would cause a crash and loss of state information. Fixes #473 Fixes #474
Misc:
- Error handling for invalid arguments passed to
cy.waithas 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.