@revoloo/cypress6
Version:
Cypress.io end to end testing tool
29 lines (23 loc) • 533 B
JavaScript
import './setup'
describe('uncaught errors', { defaultCommandTimeout: 0 }, () => {
it('sync app exception', () => {
cy.visit('/index.html')
cy.get('.trigger-sync-error').click()
})
it('async app exception', () => {
cy.visit('/index.html')
cy.get('.trigger-async-error').click()
cy.wait(10000)
})
it('async exception', () => {
setTimeout(() => {
({}).bar()
})
cy.wait(10000)
})
it('async exception with done', (done) => {
setTimeout(() => {
({}).bar()
})
})
})