Story Editor Karma Timeout Failure
See original GitHub issueBug Description
All of the Karma tests are failing due to a timeout issue!
This started last week. I believe the issue stems from commit c6798df96
to main - PR #9952. I’ve documented my findings here: https://github.com/google/web-stories-wp/pull/10045 as @BrookeGraham and I attempted to debug while most of the team’s out on holiday PTO. At this point, it needs fresh perspective.
Expected Behaviour
Karma tests should run and ideally pass, but at least get them running again 😃
Steps to Reproduce
Screenshots
Additional Context
- Plugin Version:
- WordPress Version:
- Operating System:
- Browser:
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Karma/Jasmine times out without running tests - Stack Overflow
I've tried changing captureTimeout and browserNoActivityTimeout based on reading solutions from people with similar problems, but it doesn't seem to work. My ...
Read more >PhantomJS failed 2 times (timeout). Giving up. · Issue #84
Karma is starting on http://localhost:9876/ which appears to be free. This repros with 1.0.0 and ^0.2 of karma-phantomjs-launcher but not ~0.1.
Read more >Configuration File - Karma
The captureTimeout value represents the maximum boot-up time allowed for a browser to start and connect to Karma. If any browser does not...
Read more >Karma - a Javascript Test Runner - Methods & Tools
Karma is an open source software testing tool for JavaScript, Node.js and AngularJS.
Read more >Karma Tests Disconnect, Particularly When Running Tests on ...
This is generally related to timeouts in Karma. This issue does seem to be prevalent when running Karma tests using any cloud-based selenium ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Things seem to look better now after merging #10016, there’s now just some unhandled promise rejection error in the eyedropper causing Karma tests to fail (but unfortunately display as passed):
https://github.com/google/web-stories-wp/runs/4702243393?check_suite_focus=true#step:6:3424
There should definitely be a
catch
here:https://github.com/google/web-stories-wp/blob/86af98c8e9784e9a0c1aac60c2d162cdbac668f9/packages/story-editor/src/components/eyedropper/index.js#L83-L94
Made a quick PR to test if mocking the
useDetectBlurHash
hook will fix the problem 😄