cypress-react-selector
cypress-react-selector copied to clipboard
Be able to compare props.children [featrue request]
I am not sure whether crs can compare children props, but it doesn't seem like it does.
I tried selecting a specific button with .react('Button', { props: { children: 'Upload !' } }, but it couldn't find anything, looking at the getReact output, there is no children in the logged props object.
Would be cool to be able to select buttons and stuff by the string they display :D
+1 on this feature request.