-
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
Opening Firefox on MacOS results in Cannot read property 'on' of undefined
error
#6356
Comments
Can you include the test code to run in Firefox to see this error please? This is likely relevant to the bug as just opening Cypress on our systems with any of our example and test repos does not produce this. |
I also ran into this issue. Closing all instances of firefox and restarting the test runner fixed the issue for me Versions |
I face this issue as well. The ui test runner is crashed after starting the test. I also tried with an example spec files generated by Cypress and still found a crash. OS: macOS 10.14.6 Mojave |
I got the same error, too. Here's the snippet of the output after I picked Firefox 72. I got this output from
I got the same error even after switching repo and closing all instances of Firefox. Here's one of the repo: https://github.com/clarmso/xkcd-throw-calculator-cypress Cypress 4.0.0 |
Cannot read property 'on' of undefined
error
I am also seeing this error upon opening Firefox during I am running I did not test run Firefox in MacOS after that commit, so it may be something involved with a commit after or with the merge/build. Notably when I open Firefox, there is a blank new tab as the first tab and then this second tab shown below. Full debug logs: WorkaroundFirefox Developer Edition seems to open fine for me, so you could potentially download this release candidate to run in Firefox in the meantime. https://www.mozilla.org/firefox/developer/ |
I have the same issue on GitHub Actions but with Ubuntu 18.04. |
Just to add further complication to the mix, I have just upgraded our works test suite to cypress 4.0.0 and on Every test is passing correctly, with expection to those which required |
Additional datapoint: I encountered the same crash as @fr0 when I trigger cypress and Firefox is already open. After closing Firefox, I was able to successfully run my test suite. edit: Further Additional Context: as @jennifer-shehane first pointed out: with Developer Edition you can open multiple windows at the same time. So, it appears this bug is limited (for the time being) to Firefox 72. |
Just tested this and I get the same issue with firefox open, prior to opening cypress. |
@jennifer-shehane I just reproduce the error on Ubuntu 16.04, so the error isn't specific to Mac OS. |
This error is easy to reproduce by opening Firefox in two side-by-side Cypress's in GUI mode. Since they share a profile, it will fail, because Firefox will not have opened Marionette at the right port. |
The code for this is done in cypress-io/cypress#6370, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
cypress open
select Firefox 72
start test
Firefox window opens to a blank page
Error happens, then cypress exits with Firefox still open
Versions
Cypress 4.0.0
Mac OS
Firefox 72.0.2 (64-bit)
The text was updated successfully, but these errors were encountered: