Tighten the vulnerability details tracked ref specs

What does this MR do and why?

Follow-up to !263709 (merged) that addresses two non-blocking review suggestions from @charlieeekroon. Spec-only, no production code changes.

  • header_spec.js: assert the exact tracked ref text (for example Branch main, Tag v1.0.0) instead of querying the screen reader label by the .gl-sr-only CSS class, per the frontend testing guide. (thread)
  • index_spec.js: remove the trackedRef shape assertion, which tests the adapter rather than index.vue. from_haml_spec.js already covers it. (thread)

Stacked on !263709 (merged). Once it merges and its branch is deleted, this MR retargets to master.

References

Screenshots or screen recordings

N/A, spec-only change.

How to set up and validate locally

N/A, spec-only change. CI covers it.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Samantha Ming

Merge request reports

Loading
Loading