Alex Styl
10/25/2025, 5:54 AMAlex Styl
10/25/2025, 5:56 AMsetContent {
Column(
Modifier
.requiredSize(100.dp)
.testTag("scrollable_content")
.verticalScroll(rememberScrollState())
) {
repeat(10) { index ->
Box(
Modifier
.testTag("item_$index")
.size(100.dp)
)
}
}
}
onNodeWithTag("scrollable_content").performTouchInput {
swipeUp(startY = bottom, endY = top) //<-- show to make this scroll to last item?
}
onNodeWithTag("item_9").assertIsDisplayed()Alex Styl
10/25/2025, 6:02 AMonNodeWithTag("scrollable_content").performTouchInput {
onNodeWithTag("item_9").performScrollTo()
}