Abstract repeatedly used logic into functions
What does this MR do and why?
The mr_widget_security_reports_spec
file grew a lot as a result of many separate MRs. This MR refactors the file and abstracts commonly used logic into functions.
Screenshots or screen recordings
Nothing visual, only test file got refactored.
How to set up and validate locally
- Run
yarn jest
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.
Related to #383545 (closed)