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
https://codesandbox.io/s/cool-leftpad-3djsvy?file=/README.md
<div id="container"><div id="child">Content</div></div>
await userEvent.hover(screen.getByText("Content"));
pointerenter
The container element should also get the pointer event.
The container element does not get an event.
14.1.1
"@testing-library/jest-dom": "^5.16.1", "@testing-library/react": "^12.1.2", "@testing-library/user-event": "^14.0.0", "babel-jest": "^27.4.5", "jest": "^28.0.3"
See https://github.com/Parnswir/user-event-14-hover-reproduction for working example with v13.5 (Parnswir/user-event-14-hover-reproduction@9d64c4c) and broken example with v14 (Parnswir/user-event-14-hover-reproduction@3a24bf0)
Originally discussed in #944
cc: @ph-fritsche
The text was updated successfully, but these errors were encountered:
This is happening for me too - similar example to reproduce it https://github.com/frabcus/user-event-hover-child-bug with a test without the nested element (works) and with (doesn't work).
Sorry, something went wrong.
@all-contributors add @Parnswir bug
@ph-fritsche
I've put up a pull request to add @Parnswir! 🎉
🎉 This issue has been resolved in version 14.4.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
Successfully merging a pull request may close this issue.
Reproduction example
https://codesandbox.io/s/cool-leftpad-3djsvy?file=/README.md
Prerequisites
<div id="container"><div id="child">Content</div></div>
)await userEvent.hover(screen.getByText("Content"));
to trigger apointerenter
eventExpected behavior
The container element should also get the pointer event.
Actual behavior
The container element does not get an event.
User-event version
14.1.1
Environment
See https://github.com/Parnswir/user-event-14-hover-reproduction for working example with v13.5 (Parnswir/user-event-14-hover-reproduction@9d64c4c) and broken example with v14 (Parnswir/user-event-14-hover-reproduction@3a24bf0)
Additional context
Originally discussed in #944
cc: @ph-fritsche
The text was updated successfully, but these errors were encountered: