Kwok Wong
07/19/2022, 1:28 PMLazyColumn
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,Kwok Wong
07/19/2022, 4:02 PM