devfolioco / react-otp-input

:heavy_check_mark: OTP Input Component for React
http://devfolioco.github.io/react-otp-input
MIT License
664 stars 426 forks source link

Add custom prop for test tools/libraries able select react-otp-input inputs #96

Closed aleksandrmaksimoviclt closed 3 years ago

aleksandrmaksimoviclt commented 4 years ago
sparkingdark commented 4 years ago

can you tell elaborately like is it for testing purpose?

afkatja commented 3 years ago

+1 on this To create a snapshot test, we need to add a custom prop data-test-id to the element. But this is just one scenario; actually, it would be nice to have support for other custom additional props.