Hi, we need some help with a
compose ui test.
We have a
LazyColumn
and have been managed to follow the example
here to implement the drag-and-drop operation for the list items.
In a compose UI test, we want to test the drag-and-drop behaviours using code below:
onNodeWithContentDescription("itemDesription", substring = true)
.onChild()
.performTouchInput {
down(bottomCenter)
moveTo(percentOffset(0.5f, -0.7f), delayMillis = 1000L)
up()
}
What the code would do:
1. Select an item from list (long-click)
2. Move the item one position up
However, the operation always fails with the step
moveTo
So, we are wondering whether we are using the moveTo API properly.
Any suggestions?
Regards,