Skip to content

How to test relations between tags #42

Open

Description

@goffreder

I was trying to test that every input tag has its correspondent label tag. How can I do this in a DOM-less environment?

Activity

  1. kloots commented on May 26, 2015

    @kloots
    Collaborator

    My initial thought would be we could make such an assertion after the component has rendered using a componentDidMount callback. This is the approach I took for implementing logging of DOM element references.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions