diff options
Diffstat (limited to 'spec/frontend/issues_list/components/new_issue_dropdown_spec.js')
-rw-r--r-- | spec/frontend/issues_list/components/new_issue_dropdown_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/issues_list/components/new_issue_dropdown_spec.js b/spec/frontend/issues_list/components/new_issue_dropdown_spec.js index 1fcaa99cf5a..1c9a87e8af2 100644 --- a/spec/frontend/issues_list/components/new_issue_dropdown_spec.js +++ b/spec/frontend/issues_list/components/new_issue_dropdown_spec.js @@ -8,7 +8,7 @@ import { DASH_SCOPE, joinPaths } from '~/lib/utils/url_utility'; import { emptySearchProjectsQueryResponse, project1, - project2, + project3, searchProjectsQueryResponse, } from '../mock_data'; @@ -72,7 +72,7 @@ describe('NewIssueDropdown component', () => { expect(inputSpy).toHaveBeenCalledTimes(1); }); - it('renders expected dropdown items', async () => { + it('renders projects with issues enabled', async () => { wrapper = mountComponent({ mountFn: mount }); await showDropdown(); @@ -80,7 +80,7 @@ describe('NewIssueDropdown component', () => { const listItems = wrapper.findAll('li'); expect(listItems.at(0).text()).toBe(project1.nameWithNamespace); - expect(listItems.at(1).text()).toBe(project2.nameWithNamespace); + expect(listItems.at(1).text()).toBe(project3.nameWithNamespace); }); it('renders `No matches found` when there are no matches', async () => { |