react-native-test-utils icon indicating copy to clipboard operation
react-native-test-utils copied to clipboard

Nested Selectors

Open shichongrui opened this issue 7 years ago • 4 comments

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.

shichongrui avatar Jul 13 '17 14:07 shichongrui

follow

rodolfobarretoweb avatar Nov 21 '17 18:11 rodolfobarretoweb

@shichongrui don you think PR #15 solves this?

DaKaZ avatar May 06 '19 22:05 DaKaZ

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.

shichongrui avatar May 07 '19 14:05 shichongrui

I see, so you are looking for true nesting and not just chaining

DaKaZ avatar May 07 '19 15:05 DaKaZ