Skip to content
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

Hitting TypeError: Cannot read property 'browser' of undefined and other errors #7968

Closed
bahmutov opened this issue Jul 13, 2020 · 6 comments · Fixed by #7984
Closed

Hitting TypeError: Cannot read property 'browser' of undefined and other errors #7968

bahmutov opened this issue Jul 13, 2020 · 6 comments · Fixed by #7984
Labels
type: bug v4.10.0 🐛 Issue present since 4.10.0

Comments

@bahmutov
Copy link
Contributor

bahmutov commented Jul 13, 2020

Cypress v4.10.0 and develop branch

$ yarn dev --project ~/git/cypress-react-unit-test
  • opened a spec, for example cypress/component/advanced/mocking-axios/1-users.spec.js

The spec runs fine (I suggest keeping DevTools open)

  • now hit the "Run All Tests" button multiple times quickly

And get pretty quickly to errors in the DevTools, sometimes the tests are hanging, sometimes they fail

first error: normalizeAll

Code

second error: stop

third error: Cannot read property 'browser' of undefined

Code

@cypress-bot cypress-bot bot added the stage: ready for work The issue is reproducible and in scope label Jul 14, 2020
@jennifer-shehane jennifer-shehane added type: bug and removed stage: ready for work The issue is reproducible and in scope labels Jul 14, 2020
@jennifer-shehane
Copy link
Member

Yah, I was able to reproduce the normalizeAll error, but didn't see the ones after. Added the build step since that was missing from descriptions.

@jennifer-shehane jennifer-shehane added v4.10.0 🐛 Issue present since 4.10.0 stage: ready for work The issue is reproducible and in scope labels Jul 14, 2020
@bahmutov
Copy link
Contributor Author

Here is a screen recording where I am just hitting the button at different speeds and getting all 3 errors one after another.

https://www.dropbox.com/s/5o0c1ecl9uzk0fj/three-amigos.mp4?dl=0

@bahmutov
Copy link
Contributor Author

Bonus: I could even get browser error that claimed it was from the application code

Screen Shot 2020-07-14 at 8 33 12 PM

or

Screen Shot 2020-07-14 at 8 34 12 PM

@jennifer-shehane
Copy link
Member

oh yah, there are some misattributions of where errors comes from that I've seen. 😕

@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review and removed stage: work in progress labels Jul 20, 2020
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jul 20, 2020

The code for this is done in cypress-io/cypress#7984, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot cypress-bot bot added stage: pending release and removed stage: needs review The PR code is done & tested, needs review labels Jul 20, 2020
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jul 21, 2020

Released in 4.11.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v4.11.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jul 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug v4.10.0 🐛 Issue present since 4.10.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants