diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-07 00:07:14 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-07 00:07:14 +0300 |
commit | b04f912deb494b6dc0d0dba36776a5e53f622b43 (patch) | |
tree | b6af17cf69082cda35c42801a123c6e090b28c12 /spec/frontend/tags | |
parent | 9e5484cee690f8bb2c1796013345d8cbc1872d77 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/tags')
-rw-r--r-- | spec/frontend/tags/components/sort_dropdown_spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/tags/components/sort_dropdown_spec.js b/spec/frontend/tags/components/sort_dropdown_spec.js index e0ff370d313..ebf79c93f9b 100644 --- a/spec/frontend/tags/components/sort_dropdown_spec.js +++ b/spec/frontend/tags/components/sort_dropdown_spec.js @@ -1,4 +1,4 @@ -import { GlDropdownItem, GlSearchBoxByClick } from '@gitlab/ui'; +import { GlListboxItem, GlSearchBoxByClick } from '@gitlab/ui'; import { mount } from '@vue/test-utils'; import { extendedWrapper } from 'helpers/vue_test_utils_helper'; import * as urlUtils from '~/lib/utils/url_utility'; @@ -39,9 +39,9 @@ describe('Tags sort dropdown', () => { }); it('should have a sort order dropdown', () => { - const branchesDropdown = findTagsDropdown(); + const tagsDropdown = findTagsDropdown(); - expect(branchesDropdown.exists()).toBe(true); + expect(tagsDropdown.exists()).toBe(true); }); }); @@ -63,9 +63,9 @@ describe('Tags sort dropdown', () => { }); it('should send a sort parameter', () => { - const sortDropdownItems = findTagsDropdown().findAllComponents(GlDropdownItem).at(0); + const sortDropdownItem = findTagsDropdown().findAllComponents(GlListboxItem).at(0); - sortDropdownItems.vm.$emit('click'); + sortDropdownItem.trigger('click'); expect(urlUtils.visitUrl).toHaveBeenCalledWith( '/root/ci-cd-project-demo/-/tags?sort=name_asc', |