userEvent.click
doesn't ignore hidden elements as the documentation says
#1145
Labels
bug
Something isn't working
Reproduction example
https://codesandbox.io/s/user-event-invisible-button-xpw2kf
Prerequisites
click
function ofuserEvent
.Expected behavior
The
click
function shouldn't work on invisible HTML elements. Maybe an error should be thrown in that case.Actual behavior
Even though the documentation says
the
click
function still works on the invisible button.User-event version
14.4.3
Environment
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: