Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/notes/components/email_participants_warning_spec.js')
-rw-r--r--spec/frontend/notes/components/email_participants_warning_spec.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/frontend/notes/components/email_participants_warning_spec.js b/spec/frontend/notes/components/email_participants_warning_spec.js
index 34b7524d8fb..620c753e3c5 100644
--- a/spec/frontend/notes/components/email_participants_warning_spec.js
+++ b/spec/frontend/notes/components/email_participants_warning_spec.js
@@ -1,10 +1,12 @@
import { mount } from '@vue/test-utils';
+import { GlButton } from '@gitlab/ui';
+
import EmailParticipantsWarning from '~/notes/components/email_participants_warning.vue';
describe('Email Participants Warning Component', () => {
let wrapper;
- const findMoreButton = () => wrapper.find('button');
+ const findMoreButton = () => wrapper.findComponent(GlButton);
const createWrapper = (emails) => {
wrapper = mount(EmailParticipantsWarning, {
@@ -48,7 +50,7 @@ describe('Email Participants Warning Component', () => {
describe('when more button clicked', () => {
beforeEach(() => {
- findMoreButton().trigger('click');
+ findMoreButton().vm.$emit('click');
});
it('more button no longer exists', () => {