-
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
.type
in Cypress 3.1.0 seems to not trigger input
#2555
Comments
Possibly introduced with these "fixes" in cypress 3.0.3
|
@jbreckman Are you having these issues when running in Chrome 6*? |
I'm experiencing the same problem on our Angular 5 app - and was able to mitigate by chaining a
|
@kthy all browsers seemed affected. Try on Cypress 3.0.1... worked for us! |
Unfortunately we'll have to close this issue if no reproducible example is provided. Can anyone provide a way to reproduce this? |
Example HTML code to be tested: <input type="text" oninput="console.log(event)"> Cypress test code: cy.get('input').type('1') Result: Console shows one event:
Manual Test without Cypress: Enter 1 into the input. Tested with Cypress 3.1.3 and Chrome 71 on Windows 10. Cypress does not trigger an input event (https://developer.mozilla.org/en-US/docs/Web/API/InputEvent) |
We just upgraded to from 3.0.1 to 3.1.5 and tests that could clear and type into a "time" input box no longer do so. What information do you need to help you? screen movie? code? |
we upgraded to 3.2.0 and the issue is still present. Good news is I figured out how to successfully downgrade. Going back to 3.0.1 |
Firing |
We have an AngularJS app that suddenly started failing a few cypress tests. It seems that with cypress 3.1.0, when we call
type
on an input that is bound in angular, AngularJS doesn't pick the changes up.Calling
.trigger('input')
directly seems to help.We have a handful of extensions and angular plugins installed and I'm not sure if those are contributing to the problem. We are on 3.0.1 for now and it is working fine.
Sorry for not providing a smaller/easier to test use case. This is mostly here in case anyone else is experiencing similar problems.
The text was updated successfully, but these errors were encountered: