I can’t get test 6 to pass. Test 5 passes, but only after all buttons are manually triggered at least once, either via keyboard or clicking each button.
Do I need to associate the keypresses with clicking each button in a different way or something?
Huh. I see that the test runs with an event.keyCode of 81, which is what I expected based on my research (every resource I found said “Q” would have a key code of 81), but whenever I logged event.keyCode when I pressed my own keyboard, it was 113. Not sure why. (Does it have to do with the fact that I’m on Ubuntu? And/or the fact that I’m using Firefox? )
Regardless, the tests pass if I instead switch over event.code (which looks like KeyQ, KeyW, etc.), so thanks for your help lasjorg!
Btw in case anybody else has this issue, I’m using the inspect element console to see the contents of the event object with console.log(event). Very handy that I can see all props/methods of an object that way.