In react > 0.14, the following methods will return DOMElement instead of ReactComponent:
- scryRenderedDOMComponentsWithClass
- findRenderedDOMComponentWithClass
- scryRenderedDOMComponentsWithTag
- findRenderedDOMComponentWithTag
But the guide page of test utilities still says it will return ReactComponent.
You can check props of a ReactComponent, but can't do the same thing on DOMElement, so I think we'd better make it up to date to avoid make people get confuse.
In react > 0.14, the following methods will return
DOMElementinstead ofReactComponent:But the guide page of test utilities still says it will return
ReactComponent.You can check props of a
ReactComponent, but can't do the same thing onDOMElement, so I think we'd better make it up to date to avoid make people get confuse.