Add attribute data-testid to components

Hi, I see we can add id property to components. I want to add a data-testid property to buttons, links etc, for automated testing purposes. Is there any way to achieve that please ?
3 Replies
Mohamed Melouk
you can use it for any component
zen69
zen69OP2y ago
Wow thanks a lot!

Did you find this page helpful?