Open illandril opened 4 months ago
What:
Set button and buttons values appropriately for PointerEvent (https://github.com/testing-library/user-event/issues/1083)
button
buttons
PointerEvent
Why:
Allows PointerEvent handlers that rely on button and/or buttons values to be properly tested
How:
Keep track of the buttons state in Pointer in a way that mimics browser behavior
Checklist:
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
What:
Set
button
andbuttons
values appropriately forPointerEvent
(https://github.com/testing-library/user-event/issues/1083)Why:
Allows
PointerEvent
handlers that rely onbutton
and/orbuttons
values to be properly testedHow:
Keep track of the
buttons
state in Pointer in a way that mimics browser behaviorChecklist: