question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Story Editor Karma Timeout Failure

See original GitHub issue

Bug 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:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
swissspidycommented, Jan 4, 2022

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

0reactions
samwhalecommented, Dec 29, 2021

Made a quick PR to test if mocking the useDetectBlurHash hook will fix the problem 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found