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:

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.

Merge request reports

Loading