Skip to main content

Interface: UserEventInstance

Defined in: user-event.ts:30

Instance returned by userEvent.setup() with bound options.

Properties

clear()

clear: (element) => Promise<void>

Defined in: user-event.ts:38

Clears the text content of an input element

Parameters

ParameterType
elementWidget

Returns

Promise<void>


click()

click: (element) => Promise<void>

Defined in: user-event.ts:32

Simulates a click on the element

Parameters

ParameterType
elementWidget

Returns

Promise<void>


dblClick()

dblClick: (element) => Promise<void>

Defined in: user-event.ts:34

Simulates a double-click on the element

Parameters

ParameterType
elementWidget

Returns

Promise<void>


type()

type: (element, text) => Promise<void>

Defined in: user-event.ts:36

Types text into an input element

Parameters

ParameterType
elementWidget
textstring

Returns

Promise<void>