I have a box that is selectable, so I want to add this box two test ids, one to test the type of the box and the other if it is selected. Should I add two data-testid attributes or two keywords in one data-testid? what is the best practice for this when it comes to Cypress or react-testing-library?
<div data-testid="box-user" data-testid="box-user-active">
vs
<div data-testid="box-user box-user-active">
I know there are other ways to check if the box is selected, but there are plenty of other use cases when adding two test ids would make things much easier.