You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Events like fireEvent.keyDown don't have any documentation.
The obvious way (for me at least) to fire these events would be fireEvent.keyDown('Enter'), but through looking at the code I found out that you have to do fireEvent.keyDown(someElement, { key: 'Enter' }), where someElement can be any element on the page, and is therefore very unintuitive. Key events really have no connection to an element.
Could this be, if not changed, at least clarified in documentation here and in react-testing-library?