Hi,
The last two tests will not pass >
User Story #6: When I press the trigger key associated with each .drum-pad
, the audio clip contained in its child audio
element should be triggered (e.g. pressing the Q
key should trigger the drum pad which contains the string Q
, pressing the W
key should trigger the drum pad which contains the string W
, etc.).
User Story #7: When a .drum-pad
is triggered, a string describing the associated audio clip is displayed as the inner text of the #display
element (each string must be unique).
When I run the test I can see that it is not displaying the correct text, but when I do it myself it does. I’m assuming this has something to do with repeatedly pressing keys in fast succession in the test. I have tried with removing the settimeout’s (the ones to not display the text after timeout), but that did not help. Any help appreciated.
Im also still stuck on this one >
Any help as always is greatly appreciated
Your code so far
deployed at
https://drump-machine.herokuapp.com/
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36
Challenge: Build a Drum Machine
Link to the challenge: