Unflake (and unquarantine) test by ensuring listener is ready
What does this MR do and why?
open-modal was firing in these failed tests (the artifact HTML shows the dropdown panel had been opened, and closed, and the click_button would have failed if it didn't find a valid target), but the listener hadn't been setup yet.
See:
- Thursday 2026-08-06 23:43 UTC - `gitlab-org/git... (gitlab-org/quality/engineering-productivity/master-broken-incidents#27936 - closed)
- https://gitlab.com/gitlab-org/quality/test-failure-issues/-/work_items/5978+
- https://gitlab.com/gitlab-org/quality/test-failure-issues/-/work_items/4245+
We ensure initInviteMembersModal has completed before emitting the event; that in turn ensures InviteMembersModal is initialised, which calls eventHub.$on('open-modal', ...) on mount. (I didn't know this before, but I also confirmed that mounted will definitely fire before initVueApp returns in both Vue 2 and 3.)
Screenshots or screen recordings
Spec only.
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.