@revoloo/cypress6
Version:
Cypress.io end to end testing tool
22 lines (18 loc) • 418 B
JavaScript
import './setup'
describe('cy.spread', { defaultCommandTimeout: 0 }, () => {
it('assertion failure', () => {
cy.wrap([1, 2, 3]).spread(() => {
expect('actual').to.equal('expected')
})
})
it('exception', () => {
cy.wrap([1, 2, 3]).spread(() => {
({}).bar()
})
})
it('command failure', () => {
cy.wrap([1, 2, 3]).spread(() => {
cy.get('#does-not-exist')
})
})
})