API Reference / @gtkx/testing / TypeOptions
Type Alias: TypeOptions
TypeOptions =
object
Defined in: packages/testing/dist/user-event/text.d.ts:3
Options for userEvent.type.
Properties
initialSelectionEnd?
optionalinitialSelectionEnd?:number
Defined in: packages/testing/dist/user-event/text.d.ts:9
End offset of the initial selection (defaults to the start offset).
initialSelectionStart?
optionalinitialSelectionStart?:number
Defined in: packages/testing/dist/user-event/text.d.ts:7
Select from this offset before typing, replacing the selected range with the typed text.
shouldFocus?
optionalshouldFocus?:boolean
Defined in: packages/testing/dist/user-event/text.d.ts:5
Focus the widget before typing; defaults to true.