Skip to content

Protected packages: Apply recommended matchers from testing library

What does this MR do and why?

test: Apply recommended matchers from testing library

MR includes:

  • Improving accessibility of the package protection rule table
  • Using recommened testing library method findByRole to find elements in VueWrapper

🛠 with at Siemens

MR acceptance checklist

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

MR Checklist (@gerardo-navarro)

Screenshots or screen recordings

With this MR, we add the property aria-label to the table. This improves the accessibility of the new setting block

Before After
image image

How to set up and validate locally

  1. Execute adjusted test
yarn jest spec/frontend/packages_and_registries/settings/project/settings/components/packages_protection_rules_spec.js

Related to #413641

Edited by Gerardo Navarro

Merge request reports