performScrollTo
public fun SemanticsNodeInteraction.performScrollTo(): SemanticsNodeInteraction
Scrolls the closest enclosing scroll parent by the smallest amount such that this node is fully visible in its viewport. If this node is larger than the viewport, scrolls the scroll parent by the smallest amount such that this node fills the entire viewport. A scroll parent is a parent node that has the semantics action SemanticsActions.ScrollBy (usually implemented by defining scrollBy).
This action should be performed on the node that is part of the scrollable content, not on the scrollable container.
Return
The SemanticsNodeInteraction that is the receiver of this method
Throws: AssertionError
if there is no scroll parent, or if a scroll is needed but mainClock.autoAdvance is set to false. Compose scroll actions rely on clock frames to execute scroll animations, so scrolling cannot make progress when clock auto-advancement is disabled.