Tell us what’s happening:
Describe your issue in detail here.
I’m still trying to figure out why I’m failing User Story #7: even though the
display changes when I click the buttons : 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).
The error message says something about how each string must be unique. I’m noticing you have two “Open-HH” in there (one in each bank). Just guessing here, but maybe that is triggering the error?
I’ve not tested it but I think it might be a problem that you add the keydown event listener inside the Drumpad and not inside App. So right now you have nine event listeners that all fire at the same time, but you should only have one event listener
but the sound plays very well when it’s on bank one . Even though i added the event listener in the drumpad component. I’m sure it has something to do with bank two
I think the test is expecting the buttons to be the elements with the .drum-pad class. If I remove the div container and move the attributes to the button it passes.
It passes the test case alright when it’s on bank one, but when i switch to bank 2 by clicking the toggle button, i fail the test case because the keys “s”, “d”, “c” don’t work really well. They tend to play different sounds but when it’s on bank one, the keys all work perfectly
Ok checked again, @bbsmooth already posted (almost) the solution, the problem is the double naming of “Closed-HH” and “Open-HH”. If you give those clips different names in bank 2, the tests pass.