diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-24 18:11:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-24 18:11:33 +0300 |
commit | 87543246d9d68066b216811f3de590689e218e7c (patch) | |
tree | 72d72aea138b81fe5ccb3b575866906e2da9bcf8 /spec/frontend/confirm_modal_spec.js | |
parent | 4d3bbc4990ead10831a087cece3ccdd25dc4f0b4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/confirm_modal_spec.js')
-rw-r--r-- | spec/frontend/confirm_modal_spec.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/frontend/confirm_modal_spec.js b/spec/frontend/confirm_modal_spec.js index 5e5345cbd2b..e5e85910945 100644 --- a/spec/frontend/confirm_modal_spec.js +++ b/spec/frontend/confirm_modal_spec.js @@ -1,4 +1,4 @@ -import Vue from 'vue'; +import { nextTick } from 'vue'; import { TEST_HOST } from 'helpers/test_constants'; import initConfirmModal from '~/confirm_modal'; @@ -92,10 +92,9 @@ describe('ConfirmModal', () => { }); describe('Cancel Button', () => { - beforeEach(() => { + beforeEach(async () => { findModalCancelButton(findModal()).click(); - - return Vue.nextTick(); + await nextTick(); }); it('closes the modal', () => { |