diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 09:45:46 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 09:45:46 +0000 |
commit | a7b3560714b4d9cc4ab32dffcd1f74a284b93580 (patch) | |
tree | 7452bd5c3545c2fa67a28aa013835fb4fa071baf /spec/frontend/user_lists/components/add_user_modal_spec.js | |
parent | ee9173579ae56a3dbfe5afe9f9410c65bb327ca7 (diff) | |
download | gitlab-ce-a7b3560714b4d9cc4ab32dffcd1f74a284b93580.tar.gz |
Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42
Diffstat (limited to 'spec/frontend/user_lists/components/add_user_modal_spec.js')
-rw-r--r-- | spec/frontend/user_lists/components/add_user_modal_spec.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/frontend/user_lists/components/add_user_modal_spec.js b/spec/frontend/user_lists/components/add_user_modal_spec.js index c9ad40ed228..cd04836a8c4 100644 --- a/spec/frontend/user_lists/components/add_user_modal_spec.js +++ b/spec/frontend/user_lists/components/add_user_modal_spec.js @@ -1,4 +1,5 @@ import { mount } from '@vue/test-utils'; +import { nextTick } from 'vue'; import AddUserModal from '~/user_lists/components/add_user_modal.vue'; describe('Add User Modal', () => { @@ -30,7 +31,7 @@ describe('Add User Modal', () => { it('should clear the input after emitting', async () => { click('confirm-add-user-ids'); - await wrapper.vm.$nextTick(); + await nextTick(); expect(wrapper.find('#add-user-ids').element.value).toBe(''); }); @@ -42,7 +43,7 @@ describe('Add User Modal', () => { it('should clear the input after cancelling', async () => { click('cancel-add-user-ids'); - await wrapper.vm.$nextTick(); + await nextTick(); expect(wrapper.find('#add-user-ids').element.value).toBe(''); }); |