diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
commit | 6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch) | |
tree | dc4d20fe6064752c0bd323187252c77e0a89144b /spec/frontend/related_issues/components/related_issuable_input_spec.js | |
parent | 9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff) |
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'spec/frontend/related_issues/components/related_issuable_input_spec.js')
-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; |