Hi all, so i'm trying to create testFixtures for s...
# compose
m
Hi all, so i'm trying to create testFixtures for some of design components. We would typically use embedded test tags to identify certain parts of the control. For instance, we have an accordian control with two slots: • Title • Expanded Body When the title is clicked, the accordian expands. I'd like to be able to do certain things once the user identifies the accordian component:
Copy code
onNodeWithTag("MyAccordian").assertExpanded()
onNodeWithTag("MyAccordian").performClickAccordianTitle()
But i'm struggling to use SemanticsNodeInteraction to find child elements. I also thought of maybe using a robot pattern where you pass the selector so that you can use something like a "hasAnyAncestor" combined with a selector on the test tag. I'm curious what others are doing for this sort of thing.