Closed as not planned
Description
Reproduction example
https://codesandbox.io/s/v14-userevent-keyboard-escape-14jq5t
Prerequisites
- using
@testing-library/user-event@13
, create a test that does something when pressing'{Escape}'
(e.g. close a dialog). v13 CodeSandbox - ✅ notice all tests pass
- upgrade to v14. To migrate, make the tests async and
await
theuserEvent.keyboard()
call. v14 CodeSandbox - 🔴 notice the test using
userEvent.keyboard()
fails
Expected behavior
userEvent.keyboard('{Escape}')
should still work in v14
Actual behavior
It doesn't—unless I'm missing something?
User-event version
14.2.0
Metadata
Metadata
Assignees
Labels
No labels