Update data-testids for Code Suggestions Usage Statistics Card
What does this MR do and why?
The changes made in this MR will be used to help prepare for writing E2E tests in https://gitlab.com/gitlab-org/customers-gitlab-com/-/issues/6879
This MR:
- Refactors
usage_statistics
to addspan
s around the usage value and total value that will include newdata-testid
s. This will allow our test automation to more easily select these values without needing to do extra transformations, such as removing the/
, etc. - Adds a
data-testid
to the code suggestions purchase tab for future E2E tests. - Updates frontend specs to account for new changes.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before |
---|
After (no user-facing changes should be visible) |
---|
How to set up and validate locally
Please see instructions in !130864 (merged) in order to view this component locally
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Valerie Burton