Refactor security policy tests to use behavior assertions

What does this MR do and why?

Refactor security policy tests to use behavior assertions

Update Jest tests to verify component behavior instead of API request parameters, making tests more resilient to implementation changes.

Relates to #553610 (closed)

References

Screenshots or screen recordings

Before After
No visual changes

How to set up and validate locally

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.

Related to #553610 (closed)

Edited by Alexander Turinske

Merge request reports

Loading