design-react-kit icon indicating copy to clipboard operation
design-react-kit copied to clipboard

[FEATURE] Offer test-id prop to all components

Open dej611 opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. This should simplify the testing task and make in general testing more resilient to UI changes

dej611 avatar Jan 08 '22 19:01 dej611

Hey, you want this to be mapped with data-testId ? Or it is a generic prop given by DRK. @dej611

sanyamdogra avatar Jan 11 '22 07:01 sanyamdogra

Yes. The idea is to provide a data-testId (or just a testId) prop that gets propagated to the wrapper DOM node of each component.

dej611 avatar Jan 11 '22 07:01 dej611