Closed
Description
Reproduction example
https://codesandbox.io/s/heuristic-lake-3rk90q?file=/src/App.js
Prerequisites
- Set up any page that listens to
MouseEvent
and log thepageX
andpageY
properties of the event (as specified in the docs) - Simulate a
user.pointer
event with additionalpageX
andpageY
coords passed likeawait user.pointer({target: anyTarget, coords: { pageX: 100, pageY: 100 }})
- Expect the logs to contain the previously defined values for
pageX
andpageY
.
Expected behavior
The properties are properly passed to the mouse event and get logged correctly.
Works correctly in 14.3.
Actual behavior
The value of these properties is undefined
.
Broken as of 14.4.0.
User-event version
14.4.3
Environment
See sandbox
Additional context
When the assignProps
was changed in this commit, those two properties were omitted.