data-testid or other test attributes for use with testing tools like Playwright, Cypress, or Selenium:
Guides
Testing
Add test attributes to Subframe components.
All components pass through props to the top-level element. Add
For reusable test IDs, create wrapper components that include them by default.
Last modified on May 5, 2026

