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/artifacts_settings | |
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/artifacts_settings')
-rw-r--r-- | spec/frontend/artifacts_settings/components/keep_latest_artifact_checkbox_spec.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/frontend/artifacts_settings/components/keep_latest_artifact_checkbox_spec.js b/spec/frontend/artifacts_settings/components/keep_latest_artifact_checkbox_spec.js index bfa8274f0eb..2f3ff2b22f2 100644 --- a/spec/frontend/artifacts_settings/components/keep_latest_artifact_checkbox_spec.js +++ b/spec/frontend/artifacts_settings/components/keep_latest_artifact_checkbox_spec.js @@ -1,5 +1,6 @@ import { GlFormCheckbox, GlLink } from '@gitlab/ui'; -import { shallowMount, createLocalVue } from '@vue/test-utils'; +import { shallowMount } from '@vue/test-utils'; +import Vue, { nextTick } from 'vue'; import VueApollo from 'vue-apollo'; import createMockApollo from 'helpers/mock_apollo_helper'; import UpdateKeepLatestArtifactProjectSetting from '~/artifacts_settings/graphql/mutations/update_keep_latest_artifact_project_setting.mutation.graphql'; @@ -7,8 +8,7 @@ import GetKeepLatestArtifactApplicationSetting from '~/artifacts_settings/graphq import GetKeepLatestArtifactProjectSetting from '~/artifacts_settings/graphql/queries/get_keep_latest_artifact_project_setting.query.graphql'; import KeepLatestArtifactCheckbox from '~/artifacts_settings/keep_latest_artifact_checkbox.vue'; -const localVue = createLocalVue(); -localVue.use(VueApollo); +Vue.use(VueApollo); const keepLatestArtifactProjectMock = { data: { @@ -73,7 +73,6 @@ describe('Keep latest artifact checkbox', () => { stubs: { GlFormCheckbox, }, - localVue, apolloProvider, }); }; @@ -110,13 +109,13 @@ describe('Keep latest artifact checkbox', () => { }); it('sets correct setting value in checkbox with query result', async () => { - await wrapper.vm.$nextTick(); + await nextTick(); expect(wrapper.element).toMatchSnapshot(); }); it('checkbox is enabled when application setting is enabled', async () => { - await wrapper.vm.$nextTick(); + await nextTick(); expect(findCheckbox().attributes('disabled')).toBeUndefined(); }); |