-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
userEvent.keyboard always releases pressed key with playwright provider #6082
Comments
Hmm, you are right. It should only be released in https://github.com/testing-library/user-event/blob/main/src/utility/type.ts#L40 |
Interestingly enough, your code also doesn't work with |
Hi @sheremet-va, thanks for the fix! It works as expected when using the
Any plan to support the |
Alternatively, IMHO it would be better if vitest kept the state of pressed keys. Since the interaction using playwright/webdriver is not emulated, the key actually reamains unreleased forever 😅 |
Interesting! I didn't know how I agree it should work more like
Currently |
I think what happens with In Vitest currently it's scoped to the same
|
Describe the bug
I am trying to use the new Interactive API to test the behavior of a button.
It seems that every keyboard command is automatically released even when using the
{Enter>}
syntax.Reproduction
https://github.com/edoardocavazza/vitest-keyboard
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: