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

Cypress crash : "TypeError: cannot read properties of undefined (reading 'message')" #889

Closed
estellecomment opened this issue Feb 6, 2024 · 2 comments

Comments

@estellecomment
Copy link
Contributor

Appeared during upgrade to 1.11.53 (#887)

All tests seem to crash on login.
Error is traced to cypress code itself, not our code, so don't know why.

image Screen Shot 2024-02-06 at 2 35 00 PM

I think a single test passed on Edge, once, and then stopped working. It could be a DB setup thing.

@estellecomment
Copy link
Contributor Author

Logging by hand with same user works.
Reverting to develop_tchap pre-upgrade : cypress passes (headless)
Cypress version was not changed by upgrade.

@estellecomment
Copy link
Contributor Author

estellecomment commented Feb 8, 2024

Looks like a general slowdown is causing timeouts everywhere, including a timeout on theme load, hardcoded to 2s, which is causing the uncaught exception :
https://github.com/matrix-org/matrix-react-sdk/blob/cdfcd37b9426def8ef85269e5af6d47afbb3d1fe/src/theme.ts#L347

Extending all timeouts seems to help (defaultCommandTimeout: 20000, for cypress:open especially)
Since I'm running locally it's a bit hard to tell what's the cause. Change in the webpack command ? My machine ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants