Get by HTML element with React Testing Library?
I’m not sure what wrapper is in this case. But to answer your two questions: yes it’s possible to get by HTML element and no, it’s not advisable. This is how you would do it: // Possible but not advisable const { container } = render(<MyComponent />) // `container` is just a DOM node const … Read more