-
Notifications
You must be signed in to change notification settings - Fork 254
Closed
Labels
accuracyImproves the accuracy of how behavior is simulatedImproves the accuracy of how behavior is simulatedreleased
Description
Reproduction example
https://codesandbox.io/s/cool-leftpad-3djsvy?file=/README.md
Prerequisites
- Render a container element and a child element (
<div id="container"><div id="child">Content</div></div>
) - Use
await userEvent.hover(screen.getByText("Content"));
to trigger apointerenter
event
Expected 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
"@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)
Additional context
Originally discussed in #944
cc: @ph-fritsche
sfc-gh-selee
Metadata
Metadata
Assignees
Labels
accuracyImproves the accuracy of how behavior is simulatedImproves the accuracy of how behavior is simulatedreleased