Skip to content

userEvent.keyboard('{Escape}') not working in v14 #969

Closed as not planned
Closed as not planned
@robinmetral

Description

@robinmetral

Reproduction example

https://codesandbox.io/s/v14-userevent-keyboard-escape-14jq5t

Prerequisites

  1. using @testing-library/user-event@13, create a test that does something when pressing '{Escape}' (e.g. close a dialog). v13 CodeSandbox
  2. ✅ notice all tests pass
  3. upgrade to v14. To migrate, make the tests async and await the userEvent.keyboard() call. v14 CodeSandbox
  4. 🔴 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions