Refactor loading logic and `.vm` spy in specs
What does this MR do and why?
Follow-up from !144095 (comment 1771962862) and !144095 (comment 1776742507)
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.
Screenshots or screen recordings
No visual changes
How to set up and validate locally
- Open Rails console
bin/rails console
- Enable the feature flag
Feature.enable(:ui_for_organizations)
- Navigate to
/-/organizations/default
- Click the three dots next to a project and select
Delete
- Confirm in the modal
Edited by Peter Hegman