oday
09/23/2022, 11:51 AMonView(
allOf(
withText("Amsterdam"),
withId(R.id.name),
hasSibling(allOf(withText("The Netherlands"), withId(R.id.country)))
)
).check(matches(isDisplayed()))
I am trying:
composeTestRule.onAllNodes(
withText("Amsterdam"),
withId(R.id.name),
hasSibling()
).assertAll(isDisplayed())
but yea it needs a SemanticMatcher, not a Matcheroday
09/23/2022, 12:02 PMcomposeTestRule.onAllNodesWithText(
"Amsterdam"
).assertAll(hasAnySibling()).assertIsDisplayed()
something like this ?