Consider adding a data- attribute to the element that is responsible for test interactions and reveals the intent of the element, e.g. data-delete-button.
This allows the class and id attributes to have minimal responsibilities. It reduces the likelihood that a class added solely for testing gets roped into styling responsibilities at a later date.
Would agree with @eliotsykes I tend to use data-attributes, others use prefixed classes e.g. js-users-table it you do prefer classes with js prefix, make sure your don’t apply any styling to them, I’ve found that to be a good rule to follow when working in teams.
Snake: +1. According to one blog I read recently (don’t remember where) you should automatically add a class with a test- prefix on every component and view and don’t use it for styling, making it easier for teammates who might come along and want to write tests aside from yours able to do so without having to go back and edit code.