UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

36 lines (31 loc) 631 B
import './setup' describe('cy.visit', () => { it('onBeforeLoad assertion failure', () => { cy.visit('/index.html', { onBeforeLoad () { expect('actual').to.equal('expected') }, }) }) it('onBeforeLoad exception', () => { cy.visit('/index.html', { onBeforeLoad () { ({}).bar() }, }) }) it('onLoad assertion failure', () => { cy.visit('/index.html', { onLoad () { expect('actual').to.equal('expected') }, }) }) it('onLoad exception', () => { cy.visit('/index.html', { onLoad () { ({}).bar() }, }) }) })