busola
busola copied to clipboard
Introduce data-test-ids for fields where only aria-label are available
Description
In the Cypress-based UI tests in the Istio and API Gateway there are multiple custom commands that have to use the aria-label
as a selector as no data-testid or other reliable selector is available. For example there is authorizationPolicyAddRule command in Istio tests and the apiRuleTypeJwksUrl command in API Gateway that use aria-label
.
Reasons
There are more than 30 aria-label
-based selectors in the Istio module and more than 10 in API Gateway module.
Replacing them with a data-testid might help to improve the stability of the UI tests.
Attachments