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

Karma 5.X sometimes reports "Some of your tests did a full page reload!" #10

Closed
peitschie opened this issue Oct 30, 2021 · 1 comment
Closed

Comments

@peitschie
Copy link

Describe the Bug

I have some project setups that are failing with this extension, reporting "Some of your tests did a full page reload!".
If I modify a file and save it, the subsequent run correctly discovers the tests. It's only ever the initial project open that fails.

Steps to Reproduce the Behavior

Steps to reproduce are unclear. I have similar repos that do not have this issue, and only one that is exhibiting this symptom.
Unfortunately, I cannot share the repo with this symptom for commercial reasons.

Describe the Expected Behavior

The tests should be properly discovered.

Debug Logs

Karma Test Explorer logs snippet:

[2021-10-30 00:51:11.618] [TRACE] [MultiEventHandler]: Using assigned handler for received event: run_complete
[2021-10-30 00:51:11.618] [DEBUG] [KarmaTestEventListener]: Test run completed with status 'Complete' for browsers: Chrome Headless 95.0.4638.54 (Windows 10)
[2021-10-30 00:51:11.618] [DEBUG] [KarmaTestEventListener]: Received 'run_complete' event with run Id 'lcdsed19y1d' while no requested user test capture
[2021-10-30 00:51:11.619] [DEBUG] [KarmaHttpTestRunExecutor]: Karma http request closed
[2021-10-30 00:52:02.513] [DEBUG] [Notifications]: User selected 'Show Log' for 'Error' notification: Failed to load tests - Test discovery failed: Browser Error - Some of your tests did a full page reload! (Click to show log)

Karma Server:

30 10 2021 11:51:10.855:DEBUG [reporter:KarmaTestExplorerReporter]: New Karma event: browser_error

Chrome Headless 95.0.4638.54 (Windows 10) ERROR
  Some of your tests did a full page reload!

Screenshots

image

Please Provide the Following Information

  • OS: Windows 10
  • Environment: Karma 5.2.3
  • Version: v0.2.1

Additional Context

This is possibly related to karma-runner/karma#3482. Upgrading temporarily to karma 6 appeared to fix the issue, but for various reasons I can't use this an actual fix.

lucono added a commit that referenced this issue Nov 7, 2021
Bugfixes for #7 #9 #10, and a couple of other small fixes and enhancements
@lucono
Copy link
Owner

lucono commented Nov 7, 2021

This is fixed in v0.3.0.

@lucono lucono closed this as completed Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants