Skip to content
masterclass Buddy

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.

Subscribe
  • click()
  • tripleClick()
  • pointer()
  • hover()
  • unhover()

Source: Convenience APIs | Testing Library. Checked 2026-11-03.