From 5edc7a04de12237658e7149385661aede45d681c Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 25 Jul 2023 21:10:25 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- .../components/header/pipeline_editor_mini_graph_spec.js | 10 +++++----- .../pipeline_editor/components/header/pipeline_status_spec.js | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'spec/frontend/ci/pipeline_editor') diff --git a/spec/frontend/ci/pipeline_editor/components/header/pipeline_editor_mini_graph_spec.js b/spec/frontend/ci/pipeline_editor/components/header/pipeline_editor_mini_graph_spec.js index 29759f828e4..f5e0b65d615 100644 --- a/spec/frontend/ci/pipeline_editor/components/header/pipeline_editor_mini_graph_spec.js +++ b/spec/frontend/ci/pipeline_editor/components/header/pipeline_editor_mini_graph_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 PipelineEditorMiniGraph from '~/ci/pipeline_editor/components/header/pipeline_editor_mini_graph.vue'; -import PipelineMiniGraph from '~/pipelines/components/pipeline_mini_graph/pipeline_mini_graph.vue'; +import LegacyPipelineMiniGraph from '~/pipelines/components/pipeline_mini_graph/legacy_pipeline_mini_graph.vue'; import getLinkedPipelinesQuery from '~/pipelines/graphql/queries/get_linked_pipelines.query.graphql'; import { PIPELINE_FAILURE } from '~/ci/pipeline_editor/constants'; import { mockLinkedPipelines, mockProjectFullPath, mockProjectPipeline } from '../../mock_data'; @@ -41,7 +41,7 @@ describe('Pipeline Status', () => { }); }; - const findPipelineMiniGraph = () => wrapper.findComponent(PipelineMiniGraph); + const findLegacyPipelineMiniGraph = () => wrapper.findComponent(LegacyPipelineMiniGraph); beforeEach(() => { mockLinkedPipelinesQuery = jest.fn(); @@ -53,7 +53,7 @@ describe('Pipeline Status', () => { }); it('renders pipeline mini graph', () => { - expect(findPipelineMiniGraph().exists()).toBe(true); + expect(findLegacyPipelineMiniGraph().exists()).toBe(true); }); }); @@ -63,7 +63,7 @@ describe('Pipeline Status', () => { }); it('does not render pipeline mini graph', () => { - expect(findPipelineMiniGraph().exists()).toBe(false); + expect(findLegacyPipelineMiniGraph().exists()).toBe(false); }); }); @@ -85,7 +85,7 @@ describe('Pipeline Status', () => { }); it('renders only the latest downstream pipelines', () => { - expect(findPipelineMiniGraph().props('downstreamPipelines')).toHaveLength(1); + expect(findLegacyPipelineMiniGraph().props('downstreamPipelines')).toHaveLength(1); }); }); diff --git a/spec/frontend/ci/pipeline_editor/components/header/pipeline_status_spec.js b/spec/frontend/ci/pipeline_editor/components/header/pipeline_status_spec.js index 9d93ba332e9..858cf24061a 100644 --- a/spec/frontend/ci/pipeline_editor/components/header/pipeline_status_spec.js +++ b/spec/frontend/ci/pipeline_editor/components/header/pipeline_status_spec.js @@ -6,7 +6,7 @@ import createMockApollo from 'helpers/mock_apollo_helper'; import waitForPromises from 'helpers/wait_for_promises'; import PipelineStatus, { i18n } from '~/ci/pipeline_editor/components/header/pipeline_status.vue'; import getPipelineQuery from '~/ci/pipeline_editor/graphql/queries/pipeline.query.graphql'; -import GraphqlPipelineMiniGraph from '~/pipelines/components/pipeline_mini_graph/graphql_pipeline_mini_graph.vue'; +import PipelineMiniGraph from '~/pipelines/components/pipeline_mini_graph/pipeline_mini_graph.vue'; import PipelineEditorMiniGraph from '~/ci/pipeline_editor/components/header/pipeline_editor_mini_graph.vue'; import { mockCommitSha, mockProjectPipeline, mockProjectFullPath } from '../../mock_data'; @@ -38,7 +38,7 @@ describe('Pipeline Status', () => { const findIcon = () => wrapper.findComponent(GlIcon); const findLoadingIcon = () => wrapper.findComponent(GlLoadingIcon); - const findGraphqlPipelineMiniGraph = () => wrapper.findComponent(GraphqlPipelineMiniGraph); + const findPipelineMiniGraph = () => wrapper.findComponent(PipelineMiniGraph); const findPipelineEditorMiniGraph = () => wrapper.findComponent(PipelineEditorMiniGraph); const findPipelineId = () => wrapper.find('[data-testid="pipeline-id"]'); const findPipelineCommit = () => wrapper.find('[data-testid="pipeline-commit"]'); @@ -153,7 +153,7 @@ describe('Pipeline Status', () => { await waitForPromises(); expect(findPipelineEditorMiniGraph().exists()).toBe(showPipelineMiniGraph); - expect(findGraphqlPipelineMiniGraph().exists()).toBe(showGraphqlPipelineMiniGraph); + expect(findPipelineMiniGraph().exists()).toBe(showGraphqlPipelineMiniGraph); }, ); }); -- cgit v1.2.3