Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[keyboard] Can't trigger control+backspace #1159

Open
ybrusentsov opened this issue Sep 14, 2023 · 0 comments
Open

[keyboard] Can't trigger control+backspace #1159

ybrusentsov opened this issue Sep 14, 2023 · 0 comments
Labels
bug Something isn't working needs assessment This needs to be looked at by a team member

Comments

@ybrusentsov
Copy link

Reproduction example

https://codesandbox.io/p/sandbox/xenodochial-snow-pcy89v?file=/src/App.test.js:12,1-14,31

Prerequisites

  1. Render input <input defaultValue="1234" />
  2. Try to apply "crtl+backspace" keyboard event to input:
user.keyboard('{Control>}{Backspace}{/Control}')

Expected behavior

Input value should be cleared

Actual behavior

Only one char from input's value is deleted

User-event version

14.5.0

Environment

Testing Library framework: @testing-library/react@14.0.0

JS framework: react@18.2.0

Test environment: jest@29.7.0

DOM implementation: jest-environment-jsdom@29.7.0

Additional context

No response

@ybrusentsov ybrusentsov added bug Something isn't working needs assessment This needs to be looked at by a team member labels Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs assessment This needs to be looked at by a team member
Projects
None yet
Development

No branches or pull requests

1 participant