Skip to content

Replace trigger with emit in test

Illya Klymov requested to merge xanf-vtu-30-trigger-emit into master

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

Merge request reports