-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change event not firing on email input in React 16 #816
Comments
Downgrading to |
For me with |
I'll take a look at this / fix it and we'll release We added a bunch of react tests in Appreciate you all creating a reproducible example. The new tests for react 16 are here: https://github.com/cypress-io/cypress/blob/develop/packages/driver/test/cypress/integration/e2e/react-16_spec.coffee This uses an html fixture here: https://github.com/cypress-io/cypress/blob/develop/packages/driver/test/cypress/fixtures/react-16.html |
We are also experiencing this issue within our own Dashboard Service project which uses React 15 on Cypress version 1.0.2. Failing, reproducible spec here: https://github.com/cypress-io/cypress-dashboard/blob/develop/cypress/integration/users_spec.coffee#L266 |
@brian-mann Thanks for the answer! What would be a good reproducible example? I've pasted code and test samples? Should I fork the repo and add failing test case? |
I left a comment on this issue on the already closed issue that supposedly solved it, but didn't receive a response. I'm not too familiar with github issues, so I guess I should have just opened a new one? :) Anyway, I have the same problem, using React 16 and Cypress 1.0.2. |
Fixed in |
Great, thank you 🙇 |
1.0.2
Is this a Feature or Bug?
Bug
Current behavior:
When running test via headless Electron change event is not fired for
email
type input. Fortext
input it works correctly. Alsotext
andinput
work correctly in standard Chrome.Desired behavior:
Cypress should fire change event.
How to reproduce:
Run test
cypress run
on following app: https://stackblitz.com/edit/react-eadssh?file=index.js (need to export it and run locally, embedding doesn't seem to work)Test code:
Additional Info (images, stack traces, etc)
related tickets:
failing with input type
![input-email](https://user-images.githubusercontent.com/119451/32045401-6b19a07e-ba40-11e7-8e0f-bb245903b693.gif)
email
all good with
![input-text](https://user-images.githubusercontent.com/119451/32045423-77555ef0-ba40-11e7-8b12-b43aae24e69c.gif)
text
input typeThe text was updated successfully, but these errors were encountered: