React Testing Library · Method
userEvent.dblClick
userEvent.dblClick simulates two left-button clicks on one element. In current user-event, call it on a user instance and await the returned promise.
Last updated
Syntax
dblClick(element: Element): Promise<void>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
click()tripleClick()pointer()hover()unhover()