What happens differently between user.click
and element.click
?
#1278
Unanswered
angrybacon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I understand that the documented and recommended way seems to be the following:
I still have many tests written that way though:
But struggle to see any practical difference in my tests, and while the documentation covers well
fireEvent
vs.userEvent
already, it doesn't mention the elementclick
method. What would be the preferred option when dealing with simple click events eg. test that callbacks aren't called on disabled buttons, called otherwise, etcBeta Was this translation helpful? Give feedback.
All reactions