Protected containers: Resolve duplicate test assertions
requested to merge gitlab-community/gitlab:441345-gerardo-navarro-protected-contaioners-project-settings-ui-list-protection-rules-follow-up-adjust-duplicate-test-assertion into master
What does this MR do and why?
- Resolve duplicate test assertions in container protection rules test
- Make assertion more specific to avoid false positives
- This MR wants to address the suggestion from another MR
Changelog: other
/cc @ekigbo
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)
-
Changelog entry added, if necessary -
Documentation created/updated via this MR -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Tested in all supported browsers -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the javascript style guides -
Conforms to the database guides
Screenshots or screen recordings
On adjusted test for frontend .
How to set up and validate locally
- Execute the test
yarn jest spec/frontend/packages_and_registries/settings/project/settings/components/container_protection_rules_spec.js
Related to #441345
Edited by Gerardo Navarro