The receiver scope for injecting gestures on the SemanticsNode identified by the corresponding [SemanticsNodeInteraction].
gestureClick
@Suppress("DEPRECATION")
fun gestureClick() {
composeTestRule.onNodeWithTag("myComponent").performGesture { click() }
}
gestureLShape
@Suppress("DEPRECATION")
fun gestureLShape() {
composeTestRule.onNodeWithTag("myComponent").performGesture {
down(topLeft)
moveTo(topLeft + percentOffset(0f, .1f))
moveTo(topLeft + percentOffset(0f, .2f))
moveTo(topLeft + percentOffset(0f, .3f))
moveTo(topLeft + percentOffset(0f, .4f))
moveTo(centerLeft)
moveTo(centerLeft + percentOffset(.1f, 0f))
moveTo(centerLeft + percentOffset(.2f, 0f))
moveTo(centerLeft + percentOffset(.3f, 0f))
moveTo(centerLeft + percentOffset(.4f, 0f))
moveTo(center)
up()
}
}
gestureSwipeUp
@Suppress("DEPRECATION")
fun gestureSwipeUp() {
composeTestRule.onNodeWithTag("myComponent").performGesture { swipeUp() }
}