diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /spec/frontend/error_tracking_settings/components/project_dropdown_spec.js | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'spec/frontend/error_tracking_settings/components/project_dropdown_spec.js')
-rw-r--r-- | spec/frontend/error_tracking_settings/components/project_dropdown_spec.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/frontend/error_tracking_settings/components/project_dropdown_spec.js b/spec/frontend/error_tracking_settings/components/project_dropdown_spec.js index 023a3e26781..d924f895da8 100644 --- a/spec/frontend/error_tracking_settings/components/project_dropdown_spec.js +++ b/spec/frontend/error_tracking_settings/components/project_dropdown_spec.js @@ -1,7 +1,7 @@ import { pick, clone } from 'lodash'; import Vuex from 'vuex'; import { createLocalVue, shallowMount } from '@vue/test-utils'; -import { GlDeprecatedDropdown, GlDeprecatedDropdownItem } from '@gitlab/ui'; +import { GlDropdown, GlDropdownItem } from '@gitlab/ui'; import ProjectDropdown from '~/error_tracking_settings/components/project_dropdown.vue'; import { defaultProps, projectList, staleProject } from '../mock'; @@ -43,7 +43,7 @@ describe('error tracking settings project dropdown', () => { describe('empty project list', () => { it('renders the dropdown', () => { expect(wrapper.find('#project-dropdown').exists()).toBeTruthy(); - expect(wrapper.find(GlDeprecatedDropdown).exists()).toBeTruthy(); + expect(wrapper.find(GlDropdown).exists()).toBeTruthy(); }); it('shows helper text', () => { @@ -58,8 +58,8 @@ describe('error tracking settings project dropdown', () => { }); it('does not contain any dropdown items', () => { - expect(wrapper.find(GlDeprecatedDropdownItem).exists()).toBeFalsy(); - expect(wrapper.find(GlDeprecatedDropdown).props('text')).toBe('No projects available'); + expect(wrapper.find(GlDropdownItem).exists()).toBeFalsy(); + expect(wrapper.find(GlDropdown).props('text')).toBe('No projects available'); }); }); @@ -72,12 +72,12 @@ describe('error tracking settings project dropdown', () => { it('renders the dropdown', () => { expect(wrapper.find('#project-dropdown').exists()).toBeTruthy(); - expect(wrapper.find(GlDeprecatedDropdown).exists()).toBeTruthy(); + expect(wrapper.find(GlDropdown).exists()).toBeTruthy(); }); it('contains a number of dropdown items', () => { - expect(wrapper.find(GlDeprecatedDropdownItem).exists()).toBeTruthy(); - expect(wrapper.findAll(GlDeprecatedDropdownItem).length).toBe(2); + expect(wrapper.find(GlDropdownItem).exists()).toBeTruthy(); + expect(wrapper.findAll(GlDropdownItem).length).toBe(2); }); }); |