Question

Help creating a heap event with a different id and react numbers

  • 4 March 2024
  • 0 replies
  • 17 views

Badge

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


0 replies

Be the first to reply!

Reply