react-native-test-utils
react-native-test-utils copied to clipboard
Nested Selectors
Having nested selectors would allow drilling down into a specific components render tree. Where trying to find a <Text>
component inside of a render tree would require adding a testID
or some other identifying prop to that <Text>
component to target it, Having nested selectors would allow one to do something like Avatar > Text
to target only <Text>
components inside of the <Avatar>
component.
follow
@shichongrui don you think PR #15 solves this?
It definitely provides a solution for this. I'm ok closing this if people think that will solve their use cases. I'd like to also see nesting working from the css selector. So someone could do Avatar Text
or something of that sort.
I see, so you are looking for true nesting and not just chaining