I have a button with no proper ID and I was wondering if I could this data-testid tag.
<button data-testid="copyShareLinkBtn_15106950" >Share</button>
The number is auto-generated with react so I want to use a wildcard.
I’ve tried this but it’s not working.
[data-testid^=copyShareLinkBtn_]
Any help would be greatly appreciated. Thanks