This is my first post so I’m sorry if I haven’t linked the code correctly, the repo I’ve been using for this challenge is here https://github.com/rxb870/DrumMachine to view the code (I’ve been working locally rather than using codepen).
The test " 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)." consistently fails, I’ve different ways of getting the internal text, displaying it etc but never seems to work. Though from a user perspective, it works, the test for that clip is displayed by clicking the button or with a keydown.
I’ve looked through the test suite, the test seems to trigger each click event on each drum-pad and then grab the #display element’s inner text, then checks whether any are the same.
I can’t see why this doesn’t pass for my code, the display element get’s a unique string in it’s innerText for each event. Is it something really simple and obvious that I’m missing?