Drum Machine project works as required but test fails

Hi all

I am having a bit of a problem with the Drum machine project.
The application works as required based on the user stories supplied, by the test for user story 6 fails for some reason i do not understand.

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.).

Here is the link to my codepen.

Drum Machine (codepen.io)

I would greatly appreciate any help on this please.

When I test manually, the sounds only play on “q” and not “Q.” The test sends “Q.”

Thanks Jeremy. That was the issue.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.