MCPcopy Create free account

hub / github.com/testing-library/user-event / functions

Functions369 in github.com/testing-library/user-event

Methoddisabled
()
tests/utils/misc/isDisabled.ts:11
Methoddisabled
()
tests/utils/misc/isDisabled.ts:20
FunctiondispatchEvent
( this: Instance, target: Element, event: Event, preventDefault: boolean = false, )
src/event/dispatchEvent.ts:27
FunctiondispatchUIEvent
( this: Instance, target: Element, type: K, init?: EventTypeInit<K>, preventDefault: boolean = false
src/event/dispatchEvent.ts:8
Methoddispose
()
testenv/modules/fakeTimers.ts:42
Methoddown
(keyDef: pointerKey)
src/system/pointer/buttons.ts:14
Methoddown
(instance: Instance, button: MouseButton = 0)
src/system/pointer/pointer.ts:91
FunctioneventHandler
(event: Event)
tests/_helpers/listeners.ts:79
FunctionfileDialog
()
src/utility/upload.ts:36
FunctiongetModifierState
(k: string)
src/event/createEvent.ts:166
MethodgetObservedAttributes
()
tests/dom/customElement.ts:13
FunctiongetReal
(k: K)
tests/setup/_mockApis.ts:16
MethodgetRealSystemTime
()
testenv/modules/fakeTimers.ts:104
MethodgetTimerCount
()
testenv/modules/fakeTimers.ts:112
Functionhover
(element: Element, options: DirectOptions = {})
src/setup/directApi.ts:39
Functionhover
(this: Instance, element: Element)
src/convenience/hover.ts:4
FunctioninitClipboardEvent
( event: ClipboardEvent, {clipboardData}: ClipboardEventInit, )
src/event/createEvent.ts:111
FunctioninitFocusEvent
(event: FocusEvent, {relatedTarget}: FocusEventInit)
src/event/createEvent.ts:120
FunctioninitInputEvent
( event: InputEvent, {data, inputType, isComposing}: InputEventInit, )
src/event/createEvent.ts:126
FunctioninitKeyboardEvent
( event: KeyboardEvent, { key, code, location, repeat, isComposing, charCode, // `
src/event/createEvent.ts:187
FunctioninitMouseEvent
( event: MouseEvent, { x, y, screenX, screenY, clientX = x, clientY = y, butto
src/event/createEvent.ts:208
FunctioninitPointerEvent
( event: PointerEvent, { pointerId, width, height, pressure, tangentialPressure, t
src/event/createEvent.ts:246
FunctioninitUIEvent
(event: UIEvent, {view, detail}: UIEventInit)
src/event/createEvent.ts:137
FunctioninitUIEventModifiers
( event: KeyboardEvent | MouseEvent, { altKey, ctrlKey, metaKey, shiftKey, modifierAlt
src/event/createEvent.ts:144
Functionintercept
( this: ElementType, ...args: Params<ElementType[PropName]> )
src/document/interceptor.ts:65
MethodisKeyPressed
(keyDef: pointerKey)
src/system/pointer/index.ts:76
FunctionisTreatedAsCharacterContent
(node: Node)
src/utils/focus/cursor.ts:111
Functionkeyboard
(text: string, options: DirectOptions = {})
src/setup/directApi.ts:43
Functionkeyboard
(this: Instance, text: string)
src/keyboard/index.ts:13
FunctionmatchError
(didThrow, actual, expected)
testenv/modules/inlineSnapshot.js:55
Functionmethod
(...args: Args)
src/setup/setup.ts:130
FunctionmockImpl
(this: Instance, ...args: unknown[])
tests/setup/_mockApis.ts:42
Methodmove
(instance: Instance, position: PointerPosition)
src/system/pointer/pointer.ts:48
Functionpaste
( clipboardData?: DataTransfer | string, options?: DirectOptions, )
src/setup/directApi.ts:58
Functionpaste
( this: Instance, clipboardData?: DataTransfer | string, )
src/clipboard/paste.ts:8
FunctionpatchedBlur
(this: HTMLElement)
src/document/patchFocus.ts:68
FunctionpatchedFocus
(this: HTMLElement, options: FocusOptions)
src/document/patchFocus.ts:39
Functionpointer
( input: PointerInput, options: DirectOptions = {}, )
src/setup/directApi.ts:49
Functionpointer
( this: Instance, input: PointerInput, )
src/pointer/index.ts:36
Methodrelease
( instance: Instance, keyDef: pointerKey, position: PointerPosition, )
src/system/pointer/index.ts:137
MethodresetClickCount
()
src/system/pointer/index.ts:193
MethodrunAllTicks
()
testenv/modules/fakeTimers.ts:72
MethodrunAllTimers
()
testenv/modules/fakeTimers.ts:46
MethodrunOnlyPendingTimers
()
testenv/modules/fakeTimers.ts:50
FunctionselectOptions
( this: Instance, select: Element, values: HTMLElement | HTMLElement[] | string[] | string, )
src/utility/selectOptions.ts:6
FunctionselectOptions
( select: Element, values: HTMLElement | HTMLElement[] | string[] | string, options: DirectOptions = {},
src/setup/directApi.ts:65
FunctionselectOptionsBase
( this: Instance, newValue: boolean, select: Element, values: HTMLElement | HTMLElement[] | string[] |
src/utility/selectOptions.ts:22
Functionset
(v: string)
src/utils/edit/setFiles.ts:52
MethodsetDragImage
()
src/utils/dataTransfer/DataTransfer.ts:158
FunctionsetupMain
(options: Options = {})
src/setup/setup.ts:84
FunctionsetupSub
(this: Instance, options: Options)
src/setup/setup.ts:122
Functiontab
( options: DirectOptions & Parameters<UserEventApi['tab']>[0] = {}, )
src/setup/directApi.ts:100
Functiontab
( this: Instance, { shift, }: { shift?: boolean } = {}, )
src/convenience/tab.ts:3
FunctiontoMatchInlineSnapshot
(actual, expected)
testenv/modules/inlineSnapshot.js:6
FunctiontoThrowErrorMatchingInlineSnapshot
(callback, expected)
testenv/modules/inlineSnapshot.js:30
FunctiontripleClick
(element: Element, options: DirectOptions = {})
src/setup/directApi.ts:73
FunctiontripleClick
( this: Instance, element: Element, )
src/convenience/click.ts:21
Functiontype
( this: Instance, element: Element, text: string, { skipClick = this.config.skipClick, skipAut
src/utility/type.ts:13
Functiontype
( element: Element, text: string, options: DirectOptions & Parameters<UserEventApi['type']>[2] = {}, )
src/setup/directApi.ts:77
Methodtypes
()
src/utils/dataTransfer/Clipboard.ts:37
Methodtypes
()
src/utils/dataTransfer/DataTransfer.ts:145
Functionunhover
(element: Element, options: DirectOptions = {})
src/setup/directApi.ts:85
Functionunhover
(this: Instance, element: Element)
src/convenience/hover.ts:8
Methodup
(keyDef: pointerKey)
src/system/pointer/buttons.ts:26
Methodup
(instance: Instance, button: MouseButton = 0)
src/system/pointer/pointer.ts:107
Functionupload
( this: Instance, element: HTMLElement, fileOrFiles: File | File[], )
src/utility/upload.ts:14
Functionupload
( element: HTMLElement, fileOrFiles: File | File[], options: DirectOptions = {}, )
src/setup/directApi.ts:92
Functionvalue
(start: number, end: number)
tests/utility/clear.ts:118
MethodwebkitGetAsEntry
()
src/utils/dataTransfer/DataTransfer.ts:39
← previous301–369 of 369, ranked by callers