abhinaba-ghosh / cypress-react-selector

:zap: cypress plugin to locate react elements by component, props and state

Home Page:https://www.cypress.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Be able to compare props.children [featrue request]

Twiggeh opened this issue · comments

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.