To interact with a UI element from a test, apply a data-testid
attribute to that element in app code, then find by test ID.
To interact with a UI element from a test, first choice are accessible selectors like role, label, placeholder, then HTML5 and ARIA selectors based on title or alt text. Use data-testid
as a last resort. This is the view put forth by @testing-library: