Drum Machine - Test #6 Wrongfully Fails

Drum Machine - Test #6 Wrongfully Fails
0

#1

Here’s my pen so far: https://codepen.io/GiaFil/pen/rZQypK

So, I’m failing this test:

When I press the trigger key associated with each .drum-pad, the audio clip contained in its child 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.).

However, when I press the keys on my keyboard the correct sound plays… Is there any mistakes in my code or is this a bug of the tests?

EDIT: Also, (maybe unrelated but may be causing the problem) I get this error from flexboxgrid : “Uncaught SyntaxError: Unexpected token .”


#2

Found the issue: the tests test for the CAPITAL letters not just pressing the key (when event.key is used). Also the test fails when I use the keyCodes as well.