DirectTypeOptions

Properties

Link copied to clipboard
abstract var advanceTimers: Any?

A function to be called internally to advance your fake timers (if applicable)

Link copied to clipboard
abstract var applyAccept: Boolean?

When using userEvent.upload, automatically discard files that don't match an accept property if it exists.

Link copied to clipboard
abstract var autoModify: Boolean?

We intend to automatically apply modifier keys for printable characters in the future. I.e. A implying {Shift>}a{/Shift} if caps lock is not active.

Link copied to clipboard
abstract var delay: Double?

Between some subsequent inputs like typing a series of characters the code execution is delayed per setTimeout for (at least) delay milliseconds. This moves the next changes at least to next macro task and allows other (asynchronous) code to run between events.

Link copied to clipboard
abstract var document: Document?

The document.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

An array of keyboard keys the keyboard device consists of.

Link copied to clipboard
abstract var keyboardState: System?
Link copied to clipboard
abstract var pointerEventsCheck: Any?

The pointer API includes a check if an element has or inherits pointer-events: none. This check is known to be expensive and very expensive when checking deeply nested nodes. This option determines how often the pointer related APIs perform the check.

Link copied to clipboard

An array of available pointer keys.

Link copied to clipboard
abstract var pointerState: System?
Link copied to clipboard
abstract var skipAutoClose: Boolean?

userEvent.type automatically releases any keys still pressed at the end of the call. This option allows to opt out of this feature.

Link copied to clipboard
abstract var skipClick: Boolean?

userEvent.type implies a click at the end of the element content/value. This option allows to opt out of this feature.

Link copied to clipboard
abstract var skipHover: Boolean?

userEvent.click implies moving the cursor to the target element first. This options allows to opt out of this feature.

Link copied to clipboard
abstract var writeToClipboard: Boolean?

Write selected data to Clipboard API when a cut or copy is triggered.