diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-02 00:08:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-02 00:08:18 +0300 |
commit | 61666f277a484725307ae2b34697b13a300b2129 (patch) | |
tree | 01f93083ca2cb9d0eeca1443a23c31a4bdbd5532 /spec/frontend/admin | |
parent | 4e3a998b8ec1351d8345863f6cad4b9bd497bd6a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/admin')
-rw-r--r-- | spec/frontend/admin/background_migrations/components/database_listbox_spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/admin/background_migrations/components/database_listbox_spec.js b/spec/frontend/admin/background_migrations/components/database_listbox_spec.js index 3778943872e..212f4c0842c 100644 --- a/spec/frontend/admin/background_migrations/components/database_listbox_spec.js +++ b/spec/frontend/admin/background_migrations/components/database_listbox_spec.js @@ -1,4 +1,4 @@ -import { GlListbox } from '@gitlab/ui'; +import { GlCollapsibleListbox } from '@gitlab/ui'; import { shallowMount } from '@vue/test-utils'; import BackgroundMigrationsDatabaseListbox from '~/admin/background_migrations/components/database_listbox.vue'; import { visitUrl, setUrlParams } from '~/lib/utils/url_utility'; @@ -30,15 +30,15 @@ describe('BackgroundMigrationsDatabaseListbox', () => { wrapper.destroy(); }); - const findGlListbox = () => wrapper.findComponent(GlListbox); + const findGlCollapsibleListbox = () => wrapper.findComponent(GlCollapsibleListbox); describe('template always', () => { beforeEach(() => { createComponent(); }); - it('renders GlListbox', () => { - expect(findGlListbox().exists()).toBe(true); + it('renders GlCollapsibleListbox', () => { + expect(findGlCollapsibleListbox().exists()).toBe(true); }); }); @@ -48,7 +48,7 @@ describe('BackgroundMigrationsDatabaseListbox', () => { }); it('selecting a listbox item fires visitUrl with the database param', () => { - findGlListbox().vm.$emit('select', MOCK_DATABASES[1].value); + findGlCollapsibleListbox().vm.$emit('select', MOCK_DATABASES[1].value); expect(setUrlParams).toHaveBeenCalledWith({ database: MOCK_DATABASES[1].value }); expect(visitUrl).toHaveBeenCalled(); |