diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-19 21:08:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-19 21:08:48 +0300 |
commit | dc539af30068062bd6fc2f9c6b478d4a1feb8c23 (patch) | |
tree | 37dd61148284c624396ba01a94af3663f308561d /spec/frontend/import_entities | |
parent | 30cd626f8c1028ba096e84349580e0772a34b1af (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/import_entities')
-rw-r--r-- | spec/frontend/import_entities/import_groups/components/import_table_spec.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/frontend/import_entities/import_groups/components/import_table_spec.js b/spec/frontend/import_entities/import_groups/components/import_table_spec.js index 32c035e7a86..8d06c196d70 100644 --- a/spec/frontend/import_entities/import_groups/components/import_table_spec.js +++ b/spec/frontend/import_entities/import_groups/components/import_table_spec.js @@ -1,4 +1,4 @@ -import { GlAlert, GlEmptyState, GlIcon, GlLoadingIcon } from '@gitlab/ui'; +import { GlEmptyState, GlIcon, GlLoadingIcon } from '@gitlab/ui'; import { mount } from '@vue/test-utils'; import Vue, { nextTick } from 'vue'; import VueApollo from 'vue-apollo'; @@ -59,6 +59,8 @@ describe('import table', () => { const findPaginationDropdownText = () => findPaginationDropdown().find('button').text(); const findSelectionCount = () => wrapper.find('[data-test-id="selection-count"]'); const findNewPathCol = () => wrapper.find('[data-test-id="new-path-col"]'); + const findUnavailableFeaturesWarning = () => + wrapper.find('[data-testid="unavailable-features-alert"]'); const triggerSelectAllCheckbox = (checked = true) => wrapper.find('thead input[type=checkbox]').setChecked(checked); @@ -598,8 +600,8 @@ describe('import table', () => { }); await waitForPromises(); - expect(wrapper.findComponent(GlAlert).exists()).toBe(true); - expect(wrapper.findComponent(GlAlert).text()).toContain('projects (require v14.8.0)'); + expect(findUnavailableFeaturesWarning().exists()).toBe(true); + expect(findUnavailableFeaturesWarning().text()).toContain('projects (require v14.8.0)'); }); it('does not renders alert when there are no unavailable features', async () => { @@ -617,7 +619,7 @@ describe('import table', () => { }); await waitForPromises(); - expect(wrapper.findComponent(GlAlert).exists()).toBe(false); + expect(findUnavailableFeaturesWarning().exists()).toBe(false); }); }); |