diff options
Diffstat (limited to 'spec/frontend/deploy_freeze')
-rw-r--r-- | spec/frontend/deploy_freeze/components/deploy_freeze_table_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/deploy_freeze/components/deploy_freeze_table_spec.js b/spec/frontend/deploy_freeze/components/deploy_freeze_table_spec.js index ada819b7e64..137776edfab 100644 --- a/spec/frontend/deploy_freeze/components/deploy_freeze_table_spec.js +++ b/spec/frontend/deploy_freeze/components/deploy_freeze_table_spec.js @@ -1,6 +1,6 @@ import { GlModal } from '@gitlab/ui'; import { mount } from '@vue/test-utils'; -import Vue from 'vue'; +import Vue, { nextTick } from 'vue'; import Vuex from 'vuex'; import DeployFreezeTable from '~/deploy_freeze/components/deploy_freeze_table.vue'; import createStore from '~/deploy_freeze/store'; @@ -56,7 +56,7 @@ describe('Deploy freeze table', () => { describe('with data', () => { beforeEach(async () => { store.commit(RECEIVE_FREEZE_PERIODS_SUCCESS, freezePeriodsFixture); - await wrapper.vm.$nextTick(); + await nextTick(); }); it('displays data', () => { @@ -68,7 +68,7 @@ describe('Deploy freeze table', () => { it('allows user to edit deploy freeze', async () => { findEditDeployFreezeButton().trigger('click'); - await wrapper.vm.$nextTick(); + await nextTick(); expect(store.dispatch).toHaveBeenCalledWith( 'setFreezePeriod', |