diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 16:16:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 16:16:36 +0300 |
commit | 311b0269b4eb9839fa63f80c8d7a58f32b8138a0 (patch) | |
tree | 07e7870bca8aed6d61fdcc810731c50d2c40af47 /spec/frontend/vue_mr_widget/components/states/mr_widget_squash_before_merge_spec.js | |
parent | 27909cef6c4170ed9205afa7426b8d3de47cbb0c (diff) |
Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42
Diffstat (limited to 'spec/frontend/vue_mr_widget/components/states/mr_widget_squash_before_merge_spec.js')
-rw-r--r-- | spec/frontend/vue_mr_widget/components/states/mr_widget_squash_before_merge_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/vue_mr_widget/components/states/mr_widget_squash_before_merge_spec.js b/spec/frontend/vue_mr_widget/components/states/mr_widget_squash_before_merge_spec.js index 8ead0002950..6abdbd11f5e 100644 --- a/spec/frontend/vue_mr_widget/components/states/mr_widget_squash_before_merge_spec.js +++ b/spec/frontend/vue_mr_widget/components/states/mr_widget_squash_before_merge_spec.js @@ -1,4 +1,4 @@ -import { GlFormCheckbox } from '@gitlab/ui'; +import { GlFormCheckbox, GlLink } from '@gitlab/ui'; import { createLocalVue, shallowMount } from '@vue/test-utils'; import SquashBeforeMerge from '~/vue_merge_request_widget/components/states/squash_before_merge.vue'; import { SQUASH_BEFORE_MERGE } from '~/vue_merge_request_widget/i18n'; @@ -77,7 +77,7 @@ describe('Squash before merge component', () => { value: false, }); - const aboutLink = wrapper.find('a'); + const aboutLink = wrapper.findComponent(GlLink); expect(aboutLink.exists()).toBe(false); }); @@ -88,7 +88,7 @@ describe('Squash before merge component', () => { helpPath: 'test-path', }); - const aboutLink = wrapper.find('a'); + const aboutLink = wrapper.findComponent(GlLink); expect(aboutLink.exists()).toBe(true); }); @@ -99,7 +99,7 @@ describe('Squash before merge component', () => { helpPath: 'test-path', }); - const aboutLink = wrapper.find('a'); + const aboutLink = wrapper.findComponent(GlLink); expect(aboutLink.attributes('href')).toEqual('test-path'); }); |