Open ChrisLane opened 1 year ago
Hi @ChrisLane,
Thank you for sharing this idea with us.
This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open.
Bump
For the example JSX below
If I want to make some assertions on a
TodoList
component that contains aTodoItem
withpriority="Medium"
, I would have to filterTodoList
components based on the values in.child()
or.findReact("TodoItem").withProps({priority: "Medium"})
I think it would be cleaner if if could instead select a component based on whether a function returns true. For example:
Would this be a possible improvement that could be incorporated into the project?