Replace trigger with emit in test
What does this MR do?
This MR closes #191430 (closed)
getFirstRemoveButton()
returns GlButton
instance so when shallowMount
is used, we should use $emit
instead of trigger
.
The current behavior is incompatible with future release of @vue/test-utils
, this MR makes it compatible with both current & future version