Is there a way to scroll to the very last item of ...
# compose
a
Is there a way to scroll to the very last item of a column w Modifier.scrollable() in tests? (do we also need a #compose-testing channel maybe?)
Test:
Copy code
setContent {
            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()
ok sorted. made it pass with:
Copy code
onNodeWithTag("scrollable_content").performTouchInput {
            onNodeWithTag("item_9").performScrollTo()
        }