diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-12 18:14:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-12 18:14:03 +0300 |
commit | a75c69379b2cc15b8851aa61e874b06ea5856f83 (patch) | |
tree | e3927c8a1b9ed1b35543cc3a10624e55b9fbb9dc /spec/frontend/related_issues | |
parent | 07d9675a80861fe84199e4002667f0bd57c160bf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/related_issues')
-rw-r--r-- | spec/frontend/related_issues/components/related_issuable_input_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/related_issues/components/related_issuable_input_spec.js b/spec/frontend/related_issues/components/related_issuable_input_spec.js index 7d11e3cffb0..f6a13856042 100644 --- a/spec/frontend/related_issues/components/related_issuable_input_spec.js +++ b/spec/frontend/related_issues/components/related_issuable_input_spec.js @@ -33,7 +33,7 @@ describe('RelatedIssuableInput', () => { it('shows placeholder text', () => { const wrapper = shallowMount(RelatedIssuableInput, { propsData }); - expect(wrapper.find({ ref: 'input' }).element.placeholder).toBe( + expect(wrapper.findComponent({ ref: 'input' }).element.placeholder).toBe( 'Paste issue link or <#issue id>', ); }); @@ -54,7 +54,7 @@ describe('RelatedIssuableInput', () => { }, }); - expect(wrapper.find({ ref: 'input' }).element.value).toBe(''); + expect(wrapper.findComponent({ ref: 'input' }).element.value).toBe(''); }); it('does not have GfmAutoComplete', () => { @@ -85,7 +85,7 @@ describe('RelatedIssuableInput', () => { await nextTick(); - expect(document.activeElement).toBe(wrapper.find({ ref: 'input' }).element); + expect(document.activeElement).toBe(wrapper.findComponent({ ref: 'input' }).element); }); }); @@ -100,7 +100,7 @@ describe('RelatedIssuableInput', () => { const newInputValue = 'filling in things'; const untouchedRawReferences = newInputValue.trim().split(/\s/); const touchedReference = untouchedRawReferences.pop(); - const input = wrapper.find({ ref: 'input' }); + const input = wrapper.findComponent({ ref: 'input' }); input.element.value = newInputValue; input.element.selectionStart = newInputValue.length; |