UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

22 lines (18 loc) 419 B
import './setup' describe('cy.wrap', { defaultCommandTimeout: 0 }, () => { it('assertion failure', () => { cy.wrap(() => { expect('actual').to.equal('expected') }).then((fn) => fn()) }) it('exception', () => { cy.wrap(() => { ({}).bar() }).then((fn) => fn()) }) it('command failure', () => { cy.wrap(() => { cy.get('#does-not-exist') }).then((fn) => fn()) }) })