Attribute for UI elements
Context
Data attributes for UI elements are needed for smoother and accurate automated tests.
proposal
-
An attribute defining that this div has the name of the book . example -
data-test-id="Book-name"
-
An attribute defining that this span has the name of the organisation. example -
data-test-id="org-name"
-
An attribute defining the type of the icon. example-
data-test-id="wholebook-icon/chapter-processed-icon"