Skip to content

API Reference / @gtkx/testing / PointerInput

Type Alias: PointerInput ​

PointerInput = "click" | "down" | "up" | `[Mouse${"Left" | "Middle" | "Right"}]` | `[Mouse${"Left" | "Middle" | "Right"}>]` | `[/Mouse${"Left" | "Middle" | "Right"}]`

Defined in: packages/testing/src/user-event/pointer.ts:15

A pointer action token, as in Testing Library: a full click ([MouseLeft], [MouseRight], [MouseMiddle]), a button press ([MouseLeft>]) or a button release ([/MouseLeft]). click, down and up are the left button. The left button clicks the widget as click does; the right and middle buttons reach only the click gestures listening for them, such as a GtkGestureClick with button={Gdk.BUTTON_SECONDARY} that opens a context menu.