When this spec is run in a certain order, there appeared to be a timing
issue with opening the "Merge when pipeline succeeds" drop-down menu. We
now explicitly wait for any pending requests to complete before clicking
the drop-down.
Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/6770