331. Keyboard Control of Buttons in Testing Library (jaketrent.com)
Make buttons controllable via the keyboard within test using testing-library.Test is Different than BrowserIn the browser, we can focus a button and press enter, and the onClick handler is triggered, and all is good.In the test environment, it's a different story. Here, we'll look at tests written f...