UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

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