-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
- Operating System: Mac os X and Linux
- Cypress Version: 0.19.2 (app) and 0.13.1 (cli)
- Browser/Browser Version: Chrome 58
Are you requesting a feature or reporting a bug?
Bug
Our cypress tests started to fail when we bumped react from 15.5.4 to 15.6.1. We debugged the problem and came to the conclusion that onChange
doesn't fire as it should when the input field is being manipulated using .type('some text')
.
cli + headless chrome: broken
app + real chrome: broken
user interacting with the browser: working
React component:
<input
className="input-text"
onChange={() => {
// this will executed with react 15.5.4, but not with 15.6.1
}}
value={this.props.value}
type="text"
data-stock-url />
and this is how we are manipulating it
cy.visit('https://...')
.get('[data-stock-url]').type('https://google.com/stock/123')
onChange doesn't fire anymore. The problem went away when we downgraded back to 15.5.4.
Not sure if related, but react-dom's CHANGELOG says:
which is suspicious. Is cypress' type()
relying on an implementation detail that is not true anymore?