
Stop querying found elements when testing react
Use Testing Library's within() to query nested elements in one readable line and avoid repeating yourself

Use Testing Library's within() to query nested elements in one readable line and avoid repeating yourself