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
TypeError: win.Event is not a constructor when entering text #5778
Comments
@ShaminKarim We had a similar issue testing one of our apps. In our case, it was our app causing the issue, as we had some old code which declared an Might be worth checking in your app. Simple test is to load up your app in Chrome, open the Dev Tools, and use the console to spit out (Cypress dependency on the window.Event function was, I believe, introduced in v3.5.0, via this PR: #4870). |
@rlaneve Thanks for the detailed response. This error message is less than ideal regardless of if the Application is overwriting event, but this would be helpful in recreating if that is the case. @ShaminKarim Could you click on the yellow error in the Command Log with DevTools open and paste of screenshot of where the stack of the error is coming from? Thanks! |
Hey! Any news for the fix? |
It's impossible to fix this problem without the problematic html example. It might be because the program has overridden If someone meets the similar problem, please share with us the html file or app. |
Current behavior:
Whenever I try to enter text during my test run, using .type, I come across a "TypeError: win.Event is not a constructor" error.
Desired behavior:
Enter the desired text when running the script.
Steps to reproduce: (app code and test code)
Versions
Cypress 3.6.1
The text was updated successfully, but these errors were encountered: