Follow-up from "Add support for using data-testid attribute in e2e test framework"
Description
Our data-test
and data-qa-selector
match different cases (snake_case
and kebab-case
) in our QA tests.
By not using an exact match between production code and the corresponding test our reviews become more difficult, and we are more likely to introduce defects and miss changes when searching for elements in our code.
Original Discussion
The following discussion from !120750 (merged) should be addressed:
-
@mrincon started a discussion: Follow up: I'd like to change the way we match here so we always migrate the exact
test-id
regarless of the type.
Edited by Miguel Rincon