How can I `or` two SemanticsMatcher in a Compose t...
# compose-android
m
How can I
or
two SemanticsMatcher in a Compose test? I’m looking for something like
composeTestRule.onNode(any(hasText("A"), hasText("B")))
to match a node that either has text A or B.
d
Would this work?
Copy code
composeTestRule.onNode(hasText("A").or(hasText("B")))
m
Yes, thank you