Drum Machine project's 6th test fails and throws an error
See original GitHub issueThe 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
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:
- Created 2 years ago
- Comments:16 (2 by maintainers)
Top 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 >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
@TaraBryn there is another repo for it
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