diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-13 21:07:31 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-13 21:07:31 +0000 |
commit | 3f0848998ef99206e80ead8c68a50b5889d2ae19 (patch) | |
tree | 22e35b606174c38e5ed3bdf3bad0a2dd27cede04 /spec/frontend/jira_connect | |
parent | 5248c5e2212b8e42b28b23e6839d69db0006829b (diff) | |
download | gitlab-ce-3f0848998ef99206e80ead8c68a50b5889d2ae19.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/jira_connect')
-rw-r--r-- | spec/frontend/jira_connect/branches/components/source_branch_dropdown_spec.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/frontend/jira_connect/branches/components/source_branch_dropdown_spec.js b/spec/frontend/jira_connect/branches/components/source_branch_dropdown_spec.js index f853bb7b0a4..56e425fa4eb 100644 --- a/spec/frontend/jira_connect/branches/components/source_branch_dropdown_spec.js +++ b/spec/frontend/jira_connect/branches/components/source_branch_dropdown_spec.js @@ -1,4 +1,4 @@ -import { GlCollapsibleListbox, GlSearchBoxByType } from '@gitlab/ui'; +import { GlCollapsibleListbox } from '@gitlab/ui'; import { mount, shallowMount } from '@vue/test-utils'; import Vue from 'vue'; import VueApollo from 'vue-apollo'; @@ -30,7 +30,6 @@ describe('SourceBranchDropdown', () => { let wrapper; const findListbox = () => wrapper.findComponent(GlCollapsibleListbox); - const findSearchBox = () => wrapper.findComponent(GlSearchBoxByType); const assertListboxItems = () => { const listboxItems = findListbox().props('items'); @@ -112,7 +111,7 @@ describe('SourceBranchDropdown', () => { jest.clearAllMocks(); const mockSearchTerm = 'mai'; - await findSearchBox().vm.$emit('input', mockSearchTerm); + await findListbox().vm.$emit('search', mockSearchTerm); expect(mockGetProjectQuery).toHaveBeenCalledWith({ branchNamesLimit: BRANCHES_PER_PAGE, |