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/pages/profiles/password_prompt | |
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/pages/profiles/password_prompt')
-rw-r--r-- | spec/frontend/pages/profiles/password_prompt/password_prompt_modal_spec.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/frontend/pages/profiles/password_prompt/password_prompt_modal_spec.js b/spec/frontend/pages/profiles/password_prompt/password_prompt_modal_spec.js index b722ac1e97b..c30b996437d 100644 --- a/spec/frontend/pages/profiles/password_prompt/password_prompt_modal_spec.js +++ b/spec/frontend/pages/profiles/password_prompt/password_prompt_modal_spec.js @@ -1,4 +1,5 @@ import { GlModal } from '@gitlab/ui'; +import { nextTick } from 'vue'; import { shallowMountExtended } from 'helpers/vue_test_utils_helper'; import { I18N_PASSWORD_PROMPT_CANCEL_BUTTON, @@ -62,7 +63,7 @@ describe('Password prompt modal', () => { setPassword(mockPassword); submitModal(); - await wrapper.vm.$nextTick(); + await nextTick(); expect(handleConfirmPasswordSpy).toHaveBeenCalledTimes(1); expect(handleConfirmPasswordSpy).toHaveBeenCalledWith(mockPassword); @@ -73,7 +74,7 @@ describe('Password prompt modal', () => { expect(findConfirmBtnDisabledState()).toBe(true); - await wrapper.vm.$nextTick(); + await nextTick(); expect(findConfirmBtnDisabledState()).toBe(false); }); @@ -84,7 +85,7 @@ describe('Password prompt modal', () => { expect(findConfirmBtnDisabledState()).toBe(true); - await wrapper.vm.$nextTick(); + await nextTick(); expect(findConfirmBtnDisabledState()).toBe(true); }); |