Replace jQuery usage in the group transfer form

Overview

We should remove the remaining use of jQuery in the group transfer form and update the relevant test. We might be able to use vanilla JS, or take a similar approach used in the transfer project form

TODO

  • Replace jQuery dropdown with gl-dropdown equivalent
  • Update button type from warning to danger
  • Add confirmation modal when clicking the transfer group button

Related files:

NOTE: We might be able to remove https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/transfer_edit.js as well

Background

The following discussion from !72361 (merged) should be addressed:

  • @ekigbo started a discussion: (+1 comment)

    Here, i'm updating this spec to use the content from the group transform form, it would be nice to also remove the relevant jquery from that form, but it's outside this scope of this issue.

    This test was originally hardcoded against the transfer project html fixture, in this MR we are replacing the contents of the related html page, so updating to use the group transfer form made the most sense.

Edited by Ezekiel Kigbo