-
Notifications
You must be signed in to change notification settings - Fork 252
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
Problem with using v14 for keyboard behaviour to replicate pressing tab in the browser #1018
Comments
Looks like a duplicate of #1002 |
Works for me in 14.3.0 |
@kksy fixed your test: https://codesandbox.io/s/flamboyant-liskov-kcccjd?file=/src/App.spec.js |
@robinh-jsx Could you provide more information, maybe a reproduction example? There was no particular change to either handling of |
Thanks @ph-fritsche I completely missed the Promise return. Regarding @robinh-jsx comment, |
All APIs in |
@all-contributors add @kksy docs |
I've put up a pull request to add @kksy! 🎉 |
Reproduction example
https://codesandbox.io/s/ecstatic-rubin-yygg77?file=/src/App.spec.js
Prerequisites
Expected behavior
Button element should have focus. This works when using version 13.5.0
userEvent.tab()
Actual behavior
Button does not have focus or is not the active element in the page
User-event version
14.4.1
Environment
Testing Library framework:
@testing-library/[email protected]
JS framework:
[email protected]
Test environment:
jest sandbox version
DOM implementation:
jsdom sandbox version
Additional context
I believe that this missing feature prevents us from testing keyboard accessibility in an easy way
The text was updated successfully, but these errors were encountered: