Skip to content

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 add spans around the usage value and total value that will include new data-testids. 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
Screenshot_2023-09-18_at_5.12.29_PM
After (no user-facing changes should be visible)
Screenshot_2023-09-18_at_5.12.29_PM

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.

Edited by Valerie Burton

Merge request reports

Loading