Replies: 1 comment
-
|
I'm having what seems like the same problem..
@smokinjoe did you ever figure this out? UPDATE: I tracked down my specific problem: #1211. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've recently updated
"@testing-library/user-event"to 14.4.3 and am updating all of our tests that were working on 13.1.xHowever, when coming across a test where I am trying to trigger the
onClickattribute of a button, relying onuser.click(buttonElement)doesn't seem to trigger theonClickwhileuser.pointer({ target: buttonElement, keys: '[MouseLeft]' })does.I'm confused as to where the line is drawn on how to test user interactions with elements that carry an
onClick. Relying onuser.pointerdoesn't seem like the correct pattern for this.Some pseudocode:
It's a little more complex than what I have here, but I'm just really confused as to what is going on.
editButtonis clearly defined if I examine it in my test - why wouldn'tuser.clickwork?Beta Was this translation helpful? Give feedback.
All reactions