Hi, I'm looking for an effective way to perform a ...
# compose-android
m
Hi, I'm looking for an effective way to perform a scroll in UI tests for
LazyList
that contains an element with a tag set by
Modifier.testTag()
. Unfortunately,
performScrollToNode()
only works within the direct children of a given node. If my view hierarchy looks something like this:
Copy code
LazyColumn
  | Item1
  | Item2
  | Item3
    | SomeRow
       | SomeColumn
           | Text with given testTag
Then, unfortunately, the function will end in failure with a message saying it couldn't find the test tag.
z
Does it work if you write a custom semantics matcher that matches a direct child that has a descendant that matches?
m
I am a dumb ass. The documentation says it all. The method does not return the node. All I needed to do was to asserts if the desired node is visible after scroll and then perform a click action