@revoloo/cypress6
Version:
Cypress.io end to end testing tool
26 lines (22 loc) • 647 B
JavaScript
describe('react v16.0.0', () => {
context('fires onChange events', () => {
beforeEach(() => {
cy.visit('/fixtures/react-16.html')
})
it('input', () => {
cy
.get('#react-container input[type=text]').type('foo').blur()
.window().its('onChangeEvents').should('eq', 3)
})
it('email', () => {
cy
.get('#react-container input[type=email]').type('foo').blur()
.window().its('onChangeEvents').should('eq', 3)
})
it('number', () => {
cy
.get('#react-container input[type=number]').type('123').blur()
.window().its('onChangeEvents').should('eq', 3)
})
})
})