diff options
Diffstat (limited to 'spec/frontend/issues_list/components')
-rw-r--r-- | spec/frontend/issues_list/components/issues_list_app_spec.js | 2 | ||||
-rw-r--r-- | spec/frontend/issues_list/components/new_issue_dropdown_spec.js | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/spec/frontend/issues_list/components/issues_list_app_spec.js b/spec/frontend/issues_list/components/issues_list_app_spec.js index 6b443062f12..3f52c7b4afe 100644 --- a/spec/frontend/issues_list/components/issues_list_app_spec.js +++ b/spec/frontend/issues_list/components/issues_list_app_spec.js @@ -37,6 +37,7 @@ import { TOKEN_TYPE_LABEL, TOKEN_TYPE_MILESTONE, TOKEN_TYPE_MY_REACTION, + TOKEN_TYPE_RELEASE, TOKEN_TYPE_TYPE, TOKEN_TYPE_WEIGHT, urlSortParams, @@ -581,6 +582,7 @@ describe('IssuesListApp component', () => { { type: TOKEN_TYPE_MILESTONE }, { type: TOKEN_TYPE_LABEL }, { type: TOKEN_TYPE_TYPE }, + { type: TOKEN_TYPE_RELEASE }, { type: TOKEN_TYPE_MY_REACTION }, { type: TOKEN_TYPE_CONFIDENTIAL }, { type: TOKEN_TYPE_ITERATION }, 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 () => { |