html-id-enforcer-for-autotesting
Enforce elements relevant to user-interaction to have ids.
Experimental.
Looks for elements that have events relevant to user-interaction, like 'onclick', and checks that they have 'id' attribute. Alternatively, you can provide you own check.
Tracks DOM changes and retriggers check.
Typical use.
// you get back the obsever, so you can .disconnect() once no longer needed;
React case, checks element itself to have an id or one of the ancestors within the same Component to have an id (Obviously, custom check would have to be very specific to your practices). Hint, the check can be anything, not just 'id' presence.
;