Assigning test IDs to components
Use Balance core utilities to assign predictable test IDs for automated tests.
@balance-web/core exports some utilities to help assign test ids to components to make it easier to create automated tests. Check the below code sample on how to create in-app components that allows test ids.
Loading demo…
All balance input components support the data attribute out of the box using a similar approach.