Explore Library
Quiz

RTL Query Priority Best Practice

Understanding which React Testing Library query best reflects how users interact with your UI.

You're testing a submit button rendered as <button>Save</button>. Which query does React Testing Library recommend as the preferred way to select it?