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.

Drum Machine project's 6th test fails and throws an error

See original GitHub issue

The 6th test of this project is failing every time and throws the error Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause(). in the browser console, after some research I’ve found this thread on the forum, it seems that other people have faced it too.

Affected page

https://www.freecodecamp.org/learn/front-end-development-libraries/front-end-development-libraries-projects/build-a-drum-machine

Your code

Here is the link to the pen that reproduces this issue: https://codepen.io/elidrissidev/pen/bGYbmgy

Expected behavior

The test should pass as the functionality is working when interacting with the app manually.

System

  • Device: MacBook
  • OS: macOS Catalina
  • Browser: Google Chrome
  • Version: 97.0.4692.99

Additional context

The issue seems to arise because the calls to play() and pause() are async and return a promise, but in the test they’re not handled properly.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
elidrissidevcommented, Mar 4, 2022

@TaraBryn there is another repo for it

1reaction
naomi-lgbtcommented, Feb 15, 2022

Thanks for reporting this.

The linked forum topic includes a great explanation of where the bug is likely to be occurring. A PR to solve this can be made on the testable project repo. I’ll go ahead and open this issue up for contribution.


An issue with the help wanted or first timers only label is open for contribution. The first comprehensive PR created will be reviewed and merged. We typically do not assign issues to anyone other than long-time contributors.

If you would like to contribute, and have not read the contributors docs, please do so here: https://contribute.freecodecamp.org/#/

If you have any issues with contributing, be sure to join us on the contributors channel, or on the contributors sub-forum

Read more comments on GitHub >

github_iconTop Results From Across the Web

Drum Machine Test #6 Incorrectly Fails / User Story Inaccurate
Tell us what's happening: Test # 6 fails despite the app fulfilling the user story. I press the key, and the sound plays....
Read more >
239 of the biggest, costliest startup failures of all time
From financial fraud to just running out of money, we scanned our database to identify 239 of the most expensive startup flameouts in ......
Read more >
Safety-Critical Software: 15 things every developer should know
But recent failures of safety-critical software systems have brought one of these companies and their software development practices to the ...
Read more >
Commercial Driver License Manual
This manual provides driver license testing ... be fatally injured if you are thrown from the vehicle. ... more easily correct any steering...
Read more >
DL 650, California Commercial Driver Handbook
6 -1. 6.1 – Driving Combination Vehicles Safely ... 6-1 ... If you fail the basic skills test or the road test, ......
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