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

JS Karma error: Some of your tests did a full page reload! #9943

Closed
alexgibson opened this issue Feb 19, 2021 · 3 comments
Closed

JS Karma error: Some of your tests did a full page reload! #9943

alexgibson opened this issue Feb 19, 2021 · 3 comments
Labels
Bug 🐛 Something's not working the way it should

Comments

@alexgibson
Copy link
Member

alexgibson commented Feb 19, 2021

Description

Occasionally when I run npm run test locally, Karma will throw an error saying Some of your tests did a full page reload! and abort the test run. I think there's a bug in one of our tests that only occurs depending on the order in which they run (which is intentionally randomised). I can't see any tests that call window.location.reload(), so it must be triggered by some other means (maybe a click or form submission). This is a fun doozy.

Steps to reproduce

Run npm run test multiple times until the error occurs.

Expected result

The test run should always finish.

Actual result

The test run sometimes gets aborted early with the above error.

Environment

Firefox & Chrome, macOS

@alexgibson alexgibson added the Bug 🐛 Something's not working the way it should label Feb 19, 2021
@Abhra303
Copy link
Contributor

May be it is not a bedrock's bug. It can be a karma bug. btw This was an issue before version 6.0.0. See this.
@alexgibson are you still getting this error?

@alexgibson
Copy link
Member Author

Good to know @Abhra303 thanks! We're on version 6 now, so let's keep an eye on this bug and we can close it if the problem seems to be gone :)

@alexgibson
Copy link
Member Author

Going to close this and we can re-open if we still see it happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something's not working the way it should
Projects
None yet
Development

No branches or pull requests

2 participants