Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: scoped variables #1244

Conversation

AbhishekA1509
Copy link
Member

@AbhishekA1509 AbhishekA1509 commented Aug 28, 2023

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Tests for scoped variables config:
(Coverage)
Screenshot 2023-08-28 at 10 16 35 AM
Screenshot 2023-08-28 at 10 16 46 AM

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@AbhishekA1509 AbhishekA1509 changed the title Test/scoped variables test: scoped variables Aug 28, 2023
@AbhishekA1509 AbhishekA1509 changed the base branch from main to feat(scoped-variables)/upload-api-integration August 28, 2023 04:48
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
7.1% 7.1% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
7.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Copy link

Coverage report

❌ An unexpected error occurred. For more details, check console

Error: The process '/usr/local/bin/yarn' failed with exit code 1
St.
Category Percentage Covered / Total
🔴 Statements
7.2% (+0.6% 🔼)
2553/35450
🔴 Branches
3.44% (+0.27% 🔼)
944/27439
🔴 Functions
4.21% (+0.51% 🔼)
422/10035
🔴 Lines
7.28% (+0.6% 🔼)
2476/34019

⚠️ Details were not displayed: the report size has exceeded the limit.

Test suite run failed

Failed tests: 13/129. Failed suites: 8/32.
  ● Test suite failed to run

    TypeError: (0 , _Helpers.importComponentFromFELibrary) is not a function

      46 |
      47 | export const mainContext = createContext<any>(null)
    > 48 | const getEnvironmentData = importComponentFromFELibrary('getEnvironmentData', null, 'function')
         |                            ^
      49 |
      50 | export default function NavigationRoutes() {
      51 |     const history = useHistory()

      at Object.<anonymous> (src/components/common/navigation/NavigationRoutes.tsx:48:28)
      at Object.<anonymous> (src/components/common/header/PageHeader.tsx:9:1)
      at Object.<anonymous> (src/components/common/index.ts:34:1)
      at Object.<anonymous> (src/components/app/details/appDetails/utils.tsx:3:1)
      at Object.<anonymous> (src/components/common/helpers/Helpers.tsx:17:1)
      at Object.<anonymous> (src/components/common/formFields/Widgets/Widgets.tsx:8:1)
      at Object.<anonymous> (src/components/ResourceBrowser/ResourceList/ResourceList.component.tsx:11:1)
      at Object.<anonymous> (src/components/ResourceBrowser/ResourceList/Sidebar.tsx:16:1)
      at Object.<anonymous> (src/components/ResourceBrowser/ResourceList/__tests__/Sidebar.test.tsx:10:1)


  ● workflow service tests › process workflows no PRECD, no POSTCD

    expect(received).toStrictEqual(expected) // deep equality

    - Expected
    + Received

    @@ -13,10 +13,11 @@
          "id": "92",
          "name": "first",
          "nodes": Array [
            Object {
              "branch": "master",
    +         "cipipelineId": 97,
              "downstreams": Array [
                "CI-96",
              ],
              "height": 64,
              "icon": "git",
    @@ -35,14 +36,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "96",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -50,10 +53,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-amit-16-jan-ci-master-original",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -63,21 +67,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 96,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 1,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "96",
              ],
    @@ -113,10 +120,11 @@
          "id": "93",
          "name": "external ci",
          "nodes": Array [
            Object {
              "branch": "test",
    +         "cipipelineId": 107,
              "downstreams": Array [
                "CI-106",
              ],
              "height": 64,
              "icon": "git",
    @@ -135,14 +143,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "106",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -150,10 +160,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-arya-test",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -163,21 +174,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 3,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "92",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],
    @@ -197,21 +211,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 5,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "94",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],

      44 |                 WorkflowTrigger.workflow,
      45 |             ).workflows,
    > 46 |         ).toStrictEqual(workflowsTrigger)
         |           ^
      47 |         expect(
      48 |             processWorkflow(
      49 |                 workflow.result as WorkflowResult,

      at Object.<anonymous> (src/components/app/details/triggerView/__tests__/workflow.service.test.ts:46:11)

  ● workflow service tests › process workflows PRECD, no POSTCD

    expect(received).toStrictEqual(expected) // deep equality

    - Expected
    + Received

    @@ -13,10 +13,11 @@
          "id": "92",
          "name": "first",
          "nodes": Array [
            Object {
              "branch": "master",
    +         "cipipelineId": 97,
              "downstreams": Array [
                "CI-96",
              ],
              "height": 64,
              "icon": "git",
    @@ -35,14 +36,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "96",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -50,10 +53,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-amit-16-jan-ci-master-original",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -61,23 +65,26 @@
              "y": 24,
            },
            Object {
              "activeIn": false,
              "activeOut": false,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [
                "CD-79",
              ],
              "environmentId": 1,
              "environmentName": "dev",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parents": Array [
                "96",
              ],
              "rollbackMaterialList": Array [],
              "stageIndex": 1,
    @@ -92,43 +99,49 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 96,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 1,
              "environmentName": "dev",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "96",
              ],
              "postNode": undefined,
              "preNode": Object {
                "activeIn": false,
                "activeOut": false,
    +           "deploymentAppType": undefined,
                "deploymentStrategy": "rolling",
                "description": "test",
                "downstreams": Array [
                  "CD-79",
                ],
                "environmentId": 1,
                "environmentName": "dev",
                "height": 126,
    +           "helmPackageName": "",
                "id": "79",
                "inputMaterialList": Array [],
                "isGitSource": false,
                "isRoot": false,
                "isSource": false,
    +           "isVirtualEnvironment": undefined,
                "parents": Array [
                  "96",
                ],
                "rollbackMaterialList": Array [],
                "stageIndex": 1,
    @@ -170,10 +183,11 @@
          "id": "93",
          "name": "external ci",
          "nodes": Array [
            Object {
              "branch": "test",
    +         "cipipelineId": 107,
              "downstreams": Array [
                "CI-106",
              ],
              "height": 64,
              "icon": "git",
    @@ -192,14 +206,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "106",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -207,10 +223,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-arya-test",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -220,21 +237,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 3,
              "environmentName": "dev2",
              "height": 126,
    +         "helmPackageName": "",
              "id": "92",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],
    @@ -254,21 +274,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 5,
              "environmentName": "dev4",
              "height": 126,
    +         "helmPackageName": "",
              "id": "94",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],

      67 |                 WorkflowTrigger.workflow,
      68 |             ).workflows,
    > 69 |         ).toStrictEqual(workflowsTriggerPreCDResp)
         |           ^
      70 |         expect(
      71 |             processWorkflow(
      72 |                 workflow.result as WorkflowResult,

      at Object.<anonymous> (src/components/app/details/triggerView/__tests__/workflow.service.test.ts:69:11)

  ● workflow service tests › process workflows no PRECD, POSTCD

    expect(received).toStrictEqual(expected) // deep equality

    - Expected
    + Received

    @@ -13,10 +13,11 @@
          "id": "92",
          "name": "first",
          "nodes": Array [
            Object {
              "branch": "master",
    +         "cipipelineId": 97,
              "downstreams": Array [
                "CI-96",
              ],
              "height": 64,
              "icon": "git",
    @@ -35,14 +36,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "96",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -50,10 +53,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-amit-16-jan-ci-master-original",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -63,42 +67,48 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 96,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [
                "POSTCD-79",
              ],
              "environmentId": 1,
              "environmentName": "dev",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "96",
              ],
              "postNode": Object {
                "activeIn": false,
                "activeOut": false,
    +           "deploymentAppType": undefined,
                "deploymentStrategy": "rolling",
                "description": "test",
                "downstreams": Array [],
                "environmentId": 1,
                "environmentName": "dev",
                "height": 126,
    +           "helmPackageName": "",
                "id": "79",
                "inputMaterialList": Array [],
                "isGitSource": false,
                "isRoot": false,
                "isSource": false,
    +           "isVirtualEnvironment": undefined,
                "parents": Array [
                  "79",
                ],
                "rollbackMaterialList": Array [],
                "stageIndex": 2,
    @@ -123,21 +133,24 @@
              "y": 0,
            },
            Object {
              "activeIn": false,
              "activeOut": false,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 1,
              "environmentName": "dev",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parents": Array [
                "79",
              ],
              "rollbackMaterialList": Array [],
              "stageIndex": 2,
    @@ -168,10 +181,11 @@
          "id": "93",
          "name": "external ci",
          "nodes": Array [
            Object {
              "branch": "test",
    +         "cipipelineId": 107,
              "downstreams": Array [
                "CI-106",
              ],
              "height": 64,
              "icon": "git",
    @@ -190,14 +204,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "106",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -205,10 +221,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-arya-test",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -218,21 +235,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 3,
              "environmentName": "dev2",
              "height": 126,
    +         "helmPackageName": "",
              "id": "92",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],
    @@ -252,21 +272,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 5,
              "environmentName": "dev4",
              "height": 126,
    +         "helmPackageName": "",
              "id": "94",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],

      90 |                 WorkflowTrigger.workflow,
      91 |             ).workflows,
    > 92 |         ).toStrictEqual(workflowsTriggerPostCD)
         |           ^
      93 |         expect(
      94 |             processWorkflow(
      95 |                 workflow.result as WorkflowResult,

      at Object.<anonymous> (src/components/app/details/triggerView/__tests__/workflow.service.test.ts:92:11)

  ● workflow service tests › process workflows PRECD, POSTCD

    expect(received).toStrictEqual(expected) // deep equality

    - Expected
    + Received

    @@ -13,10 +13,11 @@
          "id": "92",
          "name": "first",
          "nodes": Array [
            Object {
              "branch": "master",
    +         "cipipelineId": 97,
              "downstreams": Array [
                "CI-96",
              ],
              "height": 64,
              "icon": "git",
    @@ -35,14 +36,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "96",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -50,10 +53,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-amit-16-jan-ci-master-original",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -61,23 +65,26 @@
              "y": 24,
            },
            Object {
              "activeIn": false,
              "activeOut": false,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [
                "CD-79",
              ],
              "environmentId": 1,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parents": Array [
                "96",
              ],
              "rollbackMaterialList": Array [],
              "stageIndex": 1,
    @@ -92,42 +99,48 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 96,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [
                "POSTCD-79",
              ],
              "environmentId": 1,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "96",
              ],
              "postNode": Object {
                "activeIn": false,
                "activeOut": false,
    +           "deploymentAppType": undefined,
                "deploymentStrategy": "rolling",
                "description": "test",
                "downstreams": Array [],
                "environmentId": 1,
                "environmentName": "",
                "height": 126,
    +           "helmPackageName": "",
                "id": "79",
                "inputMaterialList": Array [],
                "isGitSource": false,
                "isRoot": false,
                "isSource": false,
    +           "isVirtualEnvironment": undefined,
                "parents": Array [
                  "79",
                ],
                "rollbackMaterialList": Array [],
                "stageIndex": 3,
    @@ -140,23 +153,26 @@
                "y": 0,
              },
              "preNode": Object {
                "activeIn": false,
                "activeOut": false,
    +           "deploymentAppType": undefined,
                "deploymentStrategy": "rolling",
                "description": "test",
                "downstreams": Array [
                  "CD-79",
                ],
                "environmentId": 1,
                "environmentName": "",
                "height": 126,
    +           "helmPackageName": "",
                "id": "79",
                "inputMaterialList": Array [],
                "isGitSource": false,
                "isRoot": false,
                "isSource": false,
    +           "isVirtualEnvironment": undefined,
                "parents": Array [
                  "96",
                ],
                "rollbackMaterialList": Array [],
                "stageIndex": 1,
    @@ -180,21 +196,24 @@
              "y": 0,
            },
            Object {
              "activeIn": false,
              "activeOut": false,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 1,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parents": Array [
                "79",
              ],
              "rollbackMaterialList": Array [],
              "stageIndex": 3,
    @@ -225,10 +244,11 @@
          "id": "93",
          "name": "external ci",
          "nodes": Array [
            Object {
              "branch": "test",
    +         "cipipelineId": 107,
              "downstreams": Array [
                "CI-106",
              ],
              "height": 64,
              "icon": "git",
    @@ -247,14 +267,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "106",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -262,10 +284,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-arya-test",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -275,21 +298,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 3,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "92",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],
    @@ -309,21 +335,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 5,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "94",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],

      113 |                 WorkflowTrigger.workflow,
      114 |             ).workflows,
    > 115 |         ).toStrictEqual(workflowsTriggerPrePostCD)
          |           ^
      116 |         expect(
      117 |             processWorkflow(
      118 |                 workflow.result as WorkflowResult,

      at Object.<anonymous> (src/components/app/details/triggerView/__tests__/workflow.service.test.ts:115:11)

  ● workflow service tests › process workflows sequential no PRECD, no POSTCD

    expect(received).toStrictEqual(expected) // deep equality

    - Expected
    + Received

    @@ -13,10 +13,11 @@
          "id": "92",
          "name": "first",
          "nodes": Array [
            Object {
              "branch": "master",
    +         "cipipelineId": 97,
              "downstreams": Array [
                "CI-96",
              ],
              "height": 64,
              "icon": "git",
    @@ -35,14 +36,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "96",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -50,10 +53,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-amit-16-jan-ci-master-original",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -63,21 +67,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 96,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 1,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "96",
              ],
    @@ -97,21 +104,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 96,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 2,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "80",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "79",
              ],
    @@ -147,10 +157,11 @@
          "id": "93",
          "name": "external ci",
          "nodes": Array [
            Object {
              "branch": "test",
    +         "cipipelineId": 107,
              "downstreams": Array [
                "CI-106",
              ],
              "height": 64,
              "icon": "git",
    @@ -169,14 +180,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "106",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -184,10 +197,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-arya-test",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -197,21 +211,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 3,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "92",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],
    @@ -231,21 +248,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 5,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "94",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],
    @@ -265,21 +285,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 6,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "95",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "92",
              ],

      136 |                 WorkflowTrigger.workflow,
      137 |             ).workflows,
    > 138 |         ).toStrictEqual(workflowsTriggerWithSequential)
          |           ^
      139 |         expect(
      140 |             processWorkflow(
      141 |                 workflowWithSequential.result as WorkflowResult,

      at Object.<anonymous> (src/components/app/details/triggerView/__tests__/workflow.service.test.ts:138:11)

  ● workflow service tests › process workflows sequeqntial PRECD, no POSTCD

    expect(received).toStrictEqual(expected) // deep equality

    - Expected
    + Received

    @@ -13,10 +13,11 @@
          "id": "92",
          "name": "first",
          "nodes": Array [
            Object {
              "branch": "master",
    +         "cipipelineId": 97,
              "downstreams": Array [
                "CI-96",
              ],
              "height": 64,
              "icon": "git",
    @@ -35,14 +36,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "96",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -50,10 +53,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-amit-16-jan-ci-master-original",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -61,23 +65,26 @@
              "y": 24,
            },
            Object {
              "activeIn": false,
              "activeOut": false,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [
                "CD-79",
              ],
              "environmentId": 1,
              "environmentName": "dev",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parents": Array [
                "96",
              ],
              "rollbackMaterialList": Array [],
              "stageIndex": 1,
    @@ -92,43 +99,49 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 96,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 1,
              "environmentName": "dev",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "96",
              ],
              "postNode": undefined,
              "preNode": Object {
                "activeIn": false,
                "activeOut": false,
    +           "deploymentAppType": undefined,
                "deploymentStrategy": "rolling",
                "description": "test",
                "downstreams": Array [
                  "CD-79",
                ],
                "environmentId": 1,
                "environmentName": "dev",
                "height": 126,
    +           "helmPackageName": "",
                "id": "79",
                "inputMaterialList": Array [],
                "isGitSource": false,
                "isRoot": false,
                "isSource": false,
    +           "isVirtualEnvironment": undefined,
                "parents": Array [
                  "96",
                ],
                "rollbackMaterialList": Array [],
                "stageIndex": 1,
    @@ -154,21 +167,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 96,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 2,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "80",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "79",
              ],
    @@ -204,10 +220,11 @@
          "id": "93",
          "name": "external ci",
          "nodes": Array [
            Object {
              "branch": "test",
    +         "cipipelineId": 107,
              "downstreams": Array [
                "CI-106",
              ],
              "height": 64,
              "icon": "git",
    @@ -226,14 +243,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "106",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -241,10 +260,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-arya-test",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -254,21 +274,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 3,
              "environmentName": "dev2",
              "height": 126,
    +         "helmPackageName": "",
              "id": "92",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],
    @@ -288,21 +311,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 5,
              "environmentName": "dev4",
              "height": 126,
    +         "helmPackageName": "",
              "id": "94",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],
    @@ -322,21 +348,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 6,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "95",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "92",
              ],

      159 |                 WorkflowTrigger.workflow,
      160 |             ).workflows,
    > 161 |         ).toStrictEqual(workflowsTriggerPreCDRespWithSequential)
          |           ^
      162 |         expect(
      163 |             processWorkflow(
      164 |                 workflowWithSequential.result as WorkflowResult,

      at Object.<anonymous> (src/components/app/details/triggerView/__tests__/workflow.service.test.ts:161:11)

  ● workflow service tests › process workflows sequential no PRECD, POSTCD

    expect(received).toStrictEqual(expected) // deep equality

    - Expected
    + Received

    @@ -13,10 +13,11 @@
          "id": "92",
          "name": "first",
          "nodes": Array [
            Object {
              "branch": "master",
    +         "cipipelineId": 97,
              "downstreams": Array [
                "CI-96",
              ],
              "height": 64,
              "icon": "git",
    @@ -35,14 +36,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "96",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -50,10 +53,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-amit-16-jan-ci-master-original",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -63,42 +67,48 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 96,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [
                "POSTCD-79",
              ],
              "environmentId": 1,
              "environmentName": "dev",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "96",
              ],
              "postNode": Object {
                "activeIn": false,
                "activeOut": false,
    +           "deploymentAppType": undefined,
                "deploymentStrategy": "rolling",
                "description": "test",
                "downstreams": Array [],
                "environmentId": 1,
                "environmentName": "dev",
                "height": 126,
    +           "helmPackageName": "",
                "id": "79",
                "inputMaterialList": Array [],
                "isGitSource": false,
                "isRoot": false,
                "isSource": false,
    +           "isVirtualEnvironment": undefined,
                "parents": Array [
                  "79",
                ],
                "rollbackMaterialList": Array [],
                "stageIndex": 2,
    @@ -123,21 +133,24 @@
              "y": 0,
            },
            Object {
              "activeIn": false,
              "activeOut": false,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 1,
              "environmentName": "dev",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parents": Array [
                "79",
              ],
              "rollbackMaterialList": Array [],
              "stageIndex": 2,
    @@ -152,21 +165,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 96,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 2,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "80",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "79",
              ],
    @@ -202,10 +218,11 @@
          "id": "93",
          "name": "external ci",
          "nodes": Array [
            Object {
              "branch": "test",
    +         "cipipelineId": 107,
              "downstreams": Array [
                "CI-106",
              ],
              "height": 64,
              "icon": "git",
    @@ -224,14 +241,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "106",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -239,10 +258,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-arya-test",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -252,21 +272,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 3,
              "environmentName": "dev2",
              "height": 126,
    +         "helmPackageName": "",
              "id": "92",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],
    @@ -286,21 +309,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 5,
              "environmentName": "dev4",
              "height": 126,
    +         "helmPackageName": "",
              "id": "94",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],
    @@ -320,21 +346,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 6,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "95",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "92",
              ],

      182 |                 WorkflowTrigger.workflow,
      183 |             ).workflows,
    > 184 |         ).toStrictEqual(workflowsTriggerPostCDWithSequential)
          |           ^
      185 |         expect(
      186 |             processWorkflow(
      187 |                 workflowWithSequential.result as WorkflowResult,

      at Object.<anonymous> (src/components/app/details/triggerView/__tests__/workflow.service.test.ts:184:11)

  ● workflow service tests › process workflows sequential PRECD, POSTCD

    expect(received).toStrictEqual(expected) // deep equality

    - Expected
    + Received

    @@ -13,10 +13,11 @@
          "id": "92",
          "name": "first",
          "nodes": Array [
            Object {
              "branch": "master",
    +         "cipipelineId": 97,
              "downstreams": Array [
                "CI-96",
              ],
              "height": 64,
              "icon": "git",
    @@ -35,14 +36,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "96",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -50,10 +53,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-amit-16-jan-ci-master-original",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -61,23 +65,26 @@
              "y": 24,
            },
            Object {
              "activeIn": false,
              "activeOut": false,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [
                "CD-79",
              ],
              "environmentId": 1,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parents": Array [
                "96",
              ],
              "rollbackMaterialList": Array [],
              "stageIndex": 1,
    @@ -92,42 +99,48 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 96,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [
                "POSTCD-79",
              ],
              "environmentId": 1,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "96",
              ],
              "postNode": Object {
                "activeIn": false,
                "activeOut": false,
    +           "deploymentAppType": undefined,
                "deploymentStrategy": "rolling",
                "description": "test",
                "downstreams": Array [],
                "environmentId": 1,
                "environmentName": "",
                "height": 126,
    +           "helmPackageName": "",
                "id": "79",
                "inputMaterialList": Array [],
                "isGitSource": false,
                "isRoot": false,
                "isSource": false,
    +           "isVirtualEnvironment": undefined,
                "parents": Array [
                  "79",
                ],
                "rollbackMaterialList": Array [],
                "stageIndex": 3,
    @@ -140,23 +153,26 @@
                "y": 0,
              },
              "preNode": Object {
                "activeIn": false,
                "activeOut": false,
    +           "deploymentAppType": undefined,
                "deploymentStrategy": "rolling",
                "description": "test",
                "downstreams": Array [
                  "CD-79",
                ],
                "environmentId": 1,
                "environmentName": "",
                "height": 126,
    +           "helmPackageName": "",
                "id": "79",
                "inputMaterialList": Array [],
                "isGitSource": false,
                "isRoot": false,
                "isSource": false,
    +           "isVirtualEnvironment": undefined,
                "parents": Array [
                  "96",
                ],
                "rollbackMaterialList": Array [],
                "stageIndex": 1,
    @@ -180,21 +196,24 @@
              "y": 0,
            },
            Object {
              "activeIn": false,
              "activeOut": false,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 1,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parents": Array [
                "79",
              ],
              "rollbackMaterialList": Array [],
              "stageIndex": 3,
    @@ -209,21 +228,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 96,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 2,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "80",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "79",
              ],
    @@ -259,10 +281,11 @@
          "id": "93",
          "name": "external ci",
          "nodes": Array [
            Object {
              "branch": "test",
    +         "cipipelineId": 107,
              "downstreams": Array [
                "CI-106",
              ],
              "height": 64,
              "icon": "git",
    @@ -281,14 +304,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "106",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -296,10 +321,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-arya-test",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -309,21 +335,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 3,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "92",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],
    @@ -343,21 +372,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 5,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "94",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],
    @@ -377,21 +409,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 6,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "95",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "92",
              ],

      205 |                 WorkflowTrigger.workflow,
      206 |             ).workflows,
    > 207 |         ).toStrictEqual(workflowsTriggerPrePostCDWithSequential)
          |           ^
      208 |         expect(
      209 |             processWorkflow(
      210 |                 workflowWithSequential.result as WorkflowResult,

      at Object.<anonymous> (src/components/app/details/triggerView/__tests__/workflow.service.test.ts:207:11)

  ● workflow service tests › process workflows pre and post sequential PRECD, POSTCD

    expect(received).toStrictEqual(expected) // deep equality

    - Expected
    + Received

    @@ -13,10 +13,11 @@
          "id": "92",
          "name": "first",
          "nodes": Array [
            Object {
              "branch": "master",
    +         "cipipelineId": 97,
              "downstreams": Array [
                "CI-96",
              ],
              "height": 64,
              "icon": "git",
    @@ -35,14 +36,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "96",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -50,10 +53,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-amit-16-jan-ci-master-original",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -61,23 +65,26 @@
              "y": 24,
            },
            Object {
              "activeIn": false,
              "activeOut": false,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [
                "CD-79",
              ],
              "environmentId": 1,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parents": Array [
                "96",
              ],
              "rollbackMaterialList": Array [],
              "stageIndex": 1,
    @@ -92,42 +99,48 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 96,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [
                "POSTCD-79",
              ],
              "environmentId": 1,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "96",
              ],
              "postNode": Object {
                "activeIn": false,
                "activeOut": false,
    +           "deploymentAppType": undefined,
                "deploymentStrategy": "rolling",
                "description": "test",
                "downstreams": Array [],
                "environmentId": 1,
                "environmentName": "",
                "height": 126,
    +           "helmPackageName": "",
                "id": "79",
                "inputMaterialList": Array [],
                "isGitSource": false,
                "isRoot": false,
                "isSource": false,
    +           "isVirtualEnvironment": undefined,
                "parents": Array [
                  "79",
                ],
                "rollbackMaterialList": Array [],
                "stageIndex": 3,
    @@ -140,23 +153,26 @@
                "y": 0,
              },
              "preNode": Object {
                "activeIn": false,
                "activeOut": false,
    +           "deploymentAppType": undefined,
                "deploymentStrategy": "rolling",
                "description": "test",
                "downstreams": Array [
                  "CD-79",
                ],
                "environmentId": 1,
                "environmentName": "",
                "height": 126,
    +           "helmPackageName": "",
                "id": "79",
                "inputMaterialList": Array [],
                "isGitSource": false,
                "isRoot": false,
                "isSource": false,
    +           "isVirtualEnvironment": undefined,
                "parents": Array [
                  "96",
                ],
                "rollbackMaterialList": Array [],
                "stageIndex": 1,
    @@ -180,21 +196,24 @@
              "y": 0,
            },
            Object {
              "activeIn": false,
              "activeOut": false,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 1,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "79",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parents": Array [
                "79",
              ],
              "rollbackMaterialList": Array [],
              "stageIndex": 3,
    @@ -207,23 +226,26 @@
              "y": 0,
            },
            Object {
              "activeIn": false,
              "activeOut": false,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [
                "CD-80",
              ],
              "environmentId": 2,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "80",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parents": Array [
                "79",
              ],
              "rollbackMaterialList": Array [],
              "stageIndex": 1,
    @@ -238,42 +260,48 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 96,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [
                "POSTCD-80",
              ],
              "environmentId": 2,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "80",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "79",
              ],
              "postNode": Object {
                "activeIn": false,
                "activeOut": false,
    +           "deploymentAppType": undefined,
                "deploymentStrategy": "rolling",
                "description": "test",
                "downstreams": Array [],
                "environmentId": 2,
                "environmentName": "",
                "height": 126,
    +           "helmPackageName": "",
                "id": "80",
                "inputMaterialList": Array [],
                "isGitSource": false,
                "isRoot": false,
                "isSource": false,
    +           "isVirtualEnvironment": undefined,
                "parents": Array [
                  "80",
                ],
                "rollbackMaterialList": Array [],
                "stageIndex": 3,
    @@ -286,23 +314,26 @@
                "y": 0,
              },
              "preNode": Object {
                "activeIn": false,
                "activeOut": false,
    +           "deploymentAppType": undefined,
                "deploymentStrategy": "rolling",
                "description": "test",
                "downstreams": Array [
                  "CD-80",
                ],
                "environmentId": 2,
                "environmentName": "",
                "height": 126,
    +           "helmPackageName": "",
                "id": "80",
                "inputMaterialList": Array [],
                "isGitSource": false,
                "isRoot": false,
                "isSource": false,
    +           "isVirtualEnvironment": undefined,
                "parents": Array [
                  "79",
                ],
                "rollbackMaterialList": Array [],
                "stageIndex": 1,
    @@ -326,21 +357,24 @@
              "y": 0,
            },
            Object {
              "activeIn": false,
              "activeOut": false,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 2,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "80",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parents": Array [
                "80",
              ],
              "rollbackMaterialList": Array [],
              "stageIndex": 3,
    @@ -371,10 +405,11 @@
          "id": "93",
          "name": "external ci",
          "nodes": Array [
            Object {
              "branch": "test",
    +         "cipipelineId": 107,
              "downstreams": Array [
                "CI-106",
              ],
              "height": 64,
              "icon": "git",
    @@ -393,14 +428,16 @@
              "width": 200,
              "x": 20,
              "y": 24,
            },
            Object {
    +         "ciBlockState": undefined,
              "downstreams": Array [],
              "height": 126,
              "id": "106",
              "inputMaterialList": Array [],
    +         "isCITriggerBlocked": undefined,
              "isExternalCI": false,
              "isGitSource": false,
              "isLinkedCI": false,
              "isRoot": false,
              "isSource": true,
    @@ -408,10 +445,11 @@
              "parentAppId": 0,
              "parentCiPipeline": 0,
              "parents": Array [
                "GIT-getting-started-nodejs-0",
              ],
    +         "showPluginWarning": undefined,
              "status": "Checking Status...",
              "title": "amit-16-jan-replica-ci-arya-test",
              "triggerType": "Manual",
              "type": "CI",
              "width": 200,
    @@ -421,21 +459,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 3,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "92",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],
    @@ -455,21 +496,24 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 5,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "94",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "106",
              ],
    @@ -487,23 +531,26 @@
              "y": 0,
            },
            Object {
              "activeIn": false,
              "activeOut": false,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [
                "CD-95",
              ],
              "environmentId": 6,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "95",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parents": Array [
                "92",
              ],
              "rollbackMaterialList": Array [],
              "stageIndex": 1,
    @@ -518,42 +565,48 @@
            Object {
              "activeIn": false,
              "activeOut": false,
              "connectingCiPipelineId": 106,
              "deploymentAppDeleteRequest": undefined,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [
                "POSTCD-95",
              ],
              "environmentId": 6,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "95",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parentPipelineId": "undefined",
              "parentPipelineType": undefined,
              "parents": Array [
                "92",
              ],
              "postNode": Object {
                "activeIn": false,
                "activeOut": false,
    +           "deploymentAppType": undefined,
                "deploymentStrategy": "rolling",
                "description": "test",
                "downstreams": Array [],
                "environmentId": 6,
                "environmentName": "",
                "height": 126,
    +           "helmPackageName": "",
                "id": "95",
                "inputMaterialList": Array [],
                "isGitSource": false,
                "isRoot": false,
                "isSource": false,
    +           "isVirtualEnvironment": undefined,
                "parents": Array [
                  "95",
                ],
                "rollbackMaterialList": Array [],
                "stageIndex": 3,
    @@ -566,23 +619,26 @@
                "y": 0,
              },
              "preNode": Object {
                "activeIn": false,
                "activeOut": false,
    +           "deploymentAppType": undefined,
                "deploymentStrategy": "rolling",
                "description": "test",
                "downstreams": Array [
                  "CD-95",
                ],
                "environmentId": 6,
                "environmentName": "",
                "height": 126,
    +           "helmPackageName": "",
                "id": "95",
                "inputMaterialList": Array [],
                "isGitSource": false,
                "isRoot": false,
                "isSource": false,
    +           "isVirtualEnvironment": undefined,
                "parents": Array [
                  "92",
                ],
                "rollbackMaterialList": Array [],
                "stageIndex": 1,
    @@ -606,21 +662,24 @@
              "y": 0,
            },
            Object {
              "activeIn": false,
              "activeOut": false,
    +         "deploymentAppType": undefined,
              "deploymentStrategy": "rolling",
              "description": "test",
              "downstreams": Array [],
              "environmentId": 6,
              "environmentName": "",
              "height": 126,
    +         "helmPackageName": "",
              "id": "95",
              "inputMaterialList": Array [],
              "isGitSource": false,
              "isRoot": false,
              "isSource": false,
    +         "isVirtualEnvironment": undefined,
              "parents": Array [
                "95",
              ],
              "rollbackMaterialList": Array [],
              "stageIndex": 3,

      228 |                 WorkflowTrigger.workflow,
      229 |             ).workflows,
    > 230 |         ).toStrictEqual(workflowsTriggerPrePostCDWithPrePostSequential)
          |           ^
      231 |         expect(
      232 |             processWorkflow(
      233 |                 workflowWithSequential.result as WorkflowResult,

      at Object.<anonymous> (src/components/app/details/triggerView/__tests__/workflow.service.test.ts:230:11)


  ● Test suite failed to run

    TypeError: (0 , _Helpers.importComponentFromFELibrary) is not a function

      46 |
      47 | export const mainContext = createContext<any>(null)
    > 48 | const getEnvironmentData = importComponentFromFELibrary('getEnvironmentData', null, 'function')
         |                            ^
      49 |
      50 | export default function NavigationRoutes() {
      51 |     const history = useHistory()

      at Object.<anonymous> (src/components/common/navigation/NavigationRoutes.tsx:48:28)
      at Object.<anonymous> (src/components/common/header/PageHeader.tsx:9:1)
      at Object.<anonymous> (src/components/common/index.ts:34:1)
      at Object.<anonymous> (src/components/app/details/appDetails/utils.tsx:3:1)
      at Object.<anonymous> (src/components/common/helpers/Helpers.tsx:17:1)
      at Object.<anonymous> (src/components/v2/appDetails/k8Resource/nodeDetail/NodeDetailTabs/terminal/__tests__/Terminal.component.test.tsx:4:1)


  ● ScopedVariablesEditor › should show error toast when save button is clicked and save fails

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "Error while saving scoped variables"
    Received: "Error while fetching scoped variables"

    Number of calls: 1

      102 |             await Promise.resolve()
      103 |         })
    > 104 |         expect(toast.error).toHaveBeenCalledWith(SAVE_ERROR_TOAST_MESSAGE)
          |                             ^
      105 |     })
      106 | })
      107 |

      at Object.<anonymous> (src/components/scopedVariables/__tests__/ScopedVariablesEditor.test.tsx:104:29)


  ● When ScopedVariables is mounted › should show SavedVariablesView when scoped variables are present

    expect(received).toBeTruthy()

    Received: null

      40 |         const { container } = render(<ScopedVariables isSuperAdmin={true} />)
      41 |         expect(container.querySelector('.saved-variables-card')).toBeFalsy()
    > 42 |         expect(container.querySelector('.saved-variables-editor-background')).toBeTruthy()
         |                                                                               ^
      43 |     })
      44 | })
      45 |

      at Object.<anonymous> (src/components/scopedVariables/__tests__/index.test.tsx:42:79)


  ● UploadScopedVariables › UploadScopedVariables › should download template when download template button is clicked

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: undefined, "variables-template.yaml", "application/x-yaml"
    Received: "# Example:
    # variables:
    #   - definition:
    #       varName: variable1
    #       dataType: primitive
    #       varType: private
    #       description: This is variable 1
    #     attributeValue:
    #       - variableValue:
    #           value: value1
    #         attributeType: ApplicationEnv
    #         attributeParams:
    #           ApplicationName: app1
    #           EnvName: dev
    #       - variableValue:
    #           value: value1
    #         attributeType: Env
    #         attributeParams:
    #           EnvName: prod
    #   - definition:
    #       varName: variable2
    #       dataType: primitive
    #       varType: public
    #       description: This is variable 2
    #     attributeValue:
    #       - variableValue:
    #           value: value2
    #         attributeType: Application
    #         attributeParams:
    #           ApplicationName: app2
    variables:
      - definition:
          varName:·
          dataType:·
          varType:·
          description:·
        attributeValue:
          - variableValue:
              value:·
            attributeType:·
            attributeParams:
              ApplicationName:·
              EnvName:·
          - variableValue:
              value:·
            attributeType:·
            attributeParams:
              EnvName:·
    ", "variables-template.yaml", "application/x-yaml"

    Number of calls: 1

      39 |             const { container } = render(<UploadScopedVariables reloadScopedVariables={() => {}} jsonSchema={{}} />)
      40 |             fireEvent.click(container.querySelector('.default-download-template-typography')!)
    > 41 |             expect(downloadData).toHaveBeenCalledWith(VARIABLES_TEMPLATE, DOWNLOAD_TEMPLATE_NAME, 'application/x-yaml')
         |                                  ^
      42 |         })
      43 |
      44 |         it('should read file when file is uploaded', () => {

      at Object.<anonymous> (src/components/scopedVariables/__tests__/UploadScopedVariables.test.tsx:41:34)


  ● Test suite failed to run

    Call retries were exceeded

      at ChildProcessWorker.initialize (node_modules/jest-worker/build/workers/ChildProcessWorker.js:193:21)


  ● EnvConfig › Application render with data

    expect(received).toBeInTheDocument()

    received value must be an HTMLElement or an SVGElement.
    Received has value: null

      42 |         })
      43 |         expect(component.container).toBeInTheDocument()
    > 44 |         expect(component.container.querySelector('.env-compose')).toBeInTheDocument()
         |                                                                   ^
      45 |         expect(component.getByText('testing-app')).toBeInTheDocument()
      46 |         expect(component.container.querySelector('.env-compose__main')).toBeInTheDocument()
      47 |     })

      at Object.toBeInTheDocument (node_modules/expect/build/index.js:342:33)
      at Object.<anonymous> (src/components/ApplicationGroup/Details/EnvironmentConfig/__test__/EnvConfig.test.tsx:44:67)

Report generated by 🧪jest coverage report action from 5745c49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant