diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-07 12:08:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-07 12:08:26 +0300 |
commit | 47da68850624438b5b5b9ff9d648b1e83282c446 (patch) | |
tree | 95f31cd727324ad14cc64e5e5d8b41830cecefe8 /spec/frontend/sidebar | |
parent | ed922e61f47716d82396490b0a19d794c997b9c5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/sidebar')
3 files changed, 7 insertions, 7 deletions
diff --git a/spec/frontend/sidebar/components/labels/labels_select_widget/labels_select_root_spec.js b/spec/frontend/sidebar/components/labels/labels_select_widget/labels_select_root_spec.js index c5432eea3ff..ae7c4068069 100644 --- a/spec/frontend/sidebar/components/labels/labels_select_widget/labels_select_root_spec.js +++ b/spec/frontend/sidebar/components/labels/labels_select_widget/labels_select_root_spec.js @@ -4,7 +4,7 @@ import VueApollo from 'vue-apollo'; import createMockApollo from 'helpers/mock_apollo_helper'; import waitForPromises from 'helpers/wait_for_promises'; import { createAlert } from '~/flash'; -import { IssuableType, TYPE_EPIC, TYPE_ISSUE, TYPE_MERGE_REQUEST } from '~/issues/constants'; +import { TYPE_EPIC, TYPE_ISSUE, TYPE_MERGE_REQUEST, TYPE_TEST_CASE } from '~/issues/constants'; import SidebarEditableItem from '~/sidebar/components/sidebar_editable_item.vue'; import DropdownContents from '~/sidebar/components/labels/labels_select_widget/dropdown_contents.vue'; import DropdownValue from '~/sidebar/components/labels/labels_select_widget/dropdown_value.vue'; @@ -38,7 +38,7 @@ const updateLabelsMutation = { [TYPE_ISSUE]: updateIssueLabelsMutation, [TYPE_MERGE_REQUEST]: updateMergeRequestLabelsMutation, [TYPE_EPIC]: updateEpicLabelsMutation, - [IssuableType.TestCase]: updateTestCaseLabelsMutation, + [TYPE_TEST_CASE]: updateTestCaseLabelsMutation, }; describe('LabelsSelectRoot', () => { @@ -216,7 +216,7 @@ describe('LabelsSelectRoot', () => { ${TYPE_ISSUE} ${TYPE_MERGE_REQUEST} ${TYPE_EPIC} - ${IssuableType.TestCase} + ${TYPE_TEST_CASE} `('when updating labels for $issuableType', ({ issuableType }) => { const label = { id: 'gid://gitlab/ProjectLabel/2' }; diff --git a/spec/frontend/sidebar/components/sidebar_dropdown_spec.js b/spec/frontend/sidebar/components/sidebar_dropdown_spec.js index 9f3d689edee..7a0044c00ac 100644 --- a/spec/frontend/sidebar/components/sidebar_dropdown_spec.js +++ b/spec/frontend/sidebar/components/sidebar_dropdown_spec.js @@ -10,7 +10,7 @@ import VueApollo from 'vue-apollo'; import createMockApollo from 'helpers/mock_apollo_helper'; import { mountExtended } from 'helpers/vue_test_utils_helper'; import waitForPromises from 'helpers/wait_for_promises'; -import { createAlert } from '~/flash'; +import { createAlert } from '~/alert'; import { TYPE_ISSUE } from '~/issues/constants'; import SidebarDropdown from '~/sidebar/components/sidebar_dropdown.vue'; import { IssuableAttributeType } from '~/sidebar/constants'; @@ -23,7 +23,7 @@ import { noCurrentMilestoneResponse, } from '../mock_data'; -jest.mock('~/flash'); +jest.mock('~/alert'); describe('SidebarDropdown component', () => { let wrapper; diff --git a/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js b/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js index 0b7712cf29e..388a59eb6d2 100644 --- a/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js +++ b/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js @@ -7,7 +7,7 @@ import createMockApollo from 'helpers/mock_apollo_helper'; import { createMockDirective, getBinding } from 'helpers/vue_mock_directive'; import { extendedWrapper } from 'helpers/vue_test_utils_helper'; import waitForPromises from 'helpers/wait_for_promises'; -import { createAlert } from '~/flash'; +import { createAlert } from '~/alert'; import { getIdFromGraphQLId } from '~/graphql_shared/utils'; import { TYPE_ISSUE } from '~/issues/constants'; import { timeFor } from '~/lib/utils/datetime_utility'; @@ -27,7 +27,7 @@ import { mockMilestone2, } from '../mock_data'; -jest.mock('~/flash'); +jest.mock('~/alert'); describe('SidebarDropdownWidget', () => { let wrapper; |