UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

28 lines (21 loc) 492 B
import './setup' Cypress.Commands.add('failAssertion', () => { expect('actual').to.equal('expected') }) Cypress.Commands.add('failException', () => { ({}).bar() }) Cypress.Commands.add('failCommand', () => { cy.get('#does-not-exist') }) describe('custom commands', { defaultCommandTimeout: 0 }, () => { it('assertion failure', () => { cy.failAssertion() }) it('exception', () => { cy.failException() }) it('command failure', () => { cy.failCommand() }) })