We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@testing-library/user-event
Relevant code or config
it('test', () => { render(<App />) userEvent.type(document.body, "{backspace}") //error })
What you did: trying to test behavior when backspace is pressed
What happened: backspace event is not fired and there is an error saying "cannot read length of undefined"
Reproduction repository:
https://codesandbox.io/s/gracious-noyce-dso6z?file=/src/__tests__/test.js
Problem description: backspace event does not appear to fire
Suggested solution: 🤷
The text was updated successfully, but these errors were encountered:
Thanks for the report :)
Duplicate of #481 .
Will be fixed with #521, but I guess this will take some time. Until then, you can not use userEvent.type to type on non-editable elements.
userEvent.type
Sorry, something went wrong.
No branches or pull requests
@testing-library/user-event
version: "^12.1.10"Relevant code or config
What you did: trying to test behavior when backspace is pressed
What happened: backspace event is not fired and there is an error saying "cannot read length of undefined"
Reproduction repository:
https://codesandbox.io/s/gracious-noyce-dso6z?file=/src/__tests__/test.js
Problem description: backspace event does not appear to fire
Suggested solution: 🤷
The text was updated successfully, but these errors were encountered: