performEvent

Delivers the event event builds for the matched node, then awaits idle.

The node is resolved from the query, so event is handed the live component the query names, and the harness awaits idle once the event has been delivered, failing the same way org.jetbrains.compose.swing.test.ComposeSwingTest.awaitIdle does. Every gesture in this file is that shape.

Build event with the node as its source, so its getSource agrees with the component it is delivered to.

onNodeOfType<JTable>().performEvent { table ->
MouseEvent(table, MouseEvent.MOUSE_MOVED, System.currentTimeMillis(), 0, 4, 4, 0, false)
}

Return

this interaction, for chaining a further gesture or assertion.

Parameters

event

builds the single event this call delivers; a gesture of several events is several calls, each an event-queue cycle apart.

Throws

if the query does not resolve to a single node.