react-download-link icon indicating copy to clipboard operation
react-download-link copied to clipboard

Add role and testId properties to ease testing with libraries like testing-library

Open owentar opened this issue 4 years ago • 0 comments

In order to make this component easy to test with libraries like @testing-library we need to introduce support for role and data-testid properties (at least).

Also introduced some unit test to double check these changes (using jest). Also upgraded babel lib to latest.

NOTE: if needed, I can split this in 2 different PR's. One to upgrade babel and another one for the introduction of the actual props.

owentar avatar May 28 '21 12:05 owentar