react-a11y icon indicating copy to clipboard operation
react-a11y copied to clipboard

How to test relations between tags

Open goffreder opened this issue 10 years ago • 1 comments

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

goffreder avatar May 25 '15 22:05 goffreder

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.

kloots avatar May 26 '15 15:05 kloots