Skip to content

The document of test utils is out of date #6970

@kpaxqin

Description

@kpaxqin

In react > 0.14, the following methods will return DOMElement instead of ReactComponent:

  1. scryRenderedDOMComponentsWithClass
  2. findRenderedDOMComponentWithClass
  3. scryRenderedDOMComponentsWithTag
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions