diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-02 00:09:29 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-02 00:09:29 +0300 |
commit | 1f96548c39f3f9b03d1b2156e7cb707e748193d8 (patch) | |
tree | 119c750ef16ffcf90f82f0a62931de193ccc8699 /spec/frontend/boards | |
parent | 102255f6d4209b9ee54c6f36d9391aae0a4b0dfb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/boards')
-rw-r--r-- | spec/frontend/boards/components/boards_selector_spec.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/frontend/boards/components/boards_selector_spec.js b/spec/frontend/boards/components/boards_selector_spec.js index 2b7605a3f7c..c30aacb65c9 100644 --- a/spec/frontend/boards/components/boards_selector_spec.js +++ b/spec/frontend/boards/components/boards_selector_spec.js @@ -1,6 +1,6 @@ import { nextTick } from 'vue'; import { mount } from '@vue/test-utils'; -import { GlDeprecatedDropdown, GlLoadingIcon } from '@gitlab/ui'; +import { GlDropdown, GlLoadingIcon, GlDropdownSectionHeader } from '@gitlab/ui'; import { TEST_HOST } from 'spec/test_constants'; import BoardsSelector from '~/boards/components/boards_selector.vue'; import boardsStore from '~/boards/stores/boards_store'; @@ -34,8 +34,9 @@ describe('BoardsSelector', () => { }; const getDropdownItems = () => wrapper.findAll('.js-dropdown-item'); - const getDropdownHeaders = () => wrapper.findAll('.dropdown-bold-header'); + const getDropdownHeaders = () => wrapper.findAll(GlDropdownSectionHeader); const getLoadingIcon = () => wrapper.find(GlLoadingIcon); + const findDropdown = () => wrapper.find(GlDropdown); beforeEach(() => { const $apollo = { @@ -103,7 +104,7 @@ describe('BoardsSelector', () => { }); // Emits gl-dropdown show event to simulate the dropdown is opened at initialization time - wrapper.find(GlDeprecatedDropdown).vm.$emit('show'); + findDropdown().vm.$emit('show'); }); afterEach(() => { |