Skip to content

Project Workflow - PMs should not be able to bypass Consultant checks for Internships #2300

Project Workflow - PMs should not be able to bypass Consultant checks for Internships

Project Workflow - PMs should not be able to bypass Consultant checks for Internships #2300

Triggered via pull request June 7, 2024 15:05
Status Failure
Total duration 20m 40s
Artifacts

test.yml

on: pull_request
Matrix: E2E
Fit to window
Zoom out
Zoom in

Annotations

15 errors
Project Changeset Aware e2e › project step: test/project-changeset-aware.e2e-spec.ts#L290
expect(received).toBe(expected) // Object.is equality Expected: "Active" Received: "FinalizingCompletion" at Object.<anonymous> (test/project-changeset-aware.e2e-spec.ts:290:39)
E2E Tests (neo4j 1/6)
Process completed with exit code 1.
Project-Workflow e2e › Workflow › Step 2. Approval: src/components/project/workflow/project-workflow.neo4j.repository.ts#L133
[Server]: Failed to determine project's previous steps ServerException: Failed to determine project's previous steps at ProjectWorkflowNeo4jRepository.mostRecentStep (src/components/project/workflow/project-workflow.neo4j.repository.ts:133:13) at Object.resolve (src/components/project/workflow/transitions/dynamic-step.ts:20:19) at src/components/workflow/workflow.service.ts:89:25 at async Promise.all (index 0) at ProjectWorkflowService.resolveAvailable (src/components/workflow/workflow.service.ts:87:9) at ProjectWorkflowService.getAvailableTransitions (src/components/project/workflow/project-workflow.service.ts:50:12) at ProjectTransitionsResolver.transitions (src/components/project/workflow/resolvers/project-transitions.resolver.ts:34:12) at src/core/graphql/graphql-tracing.plugin.ts:76:9 at src/core/tracing/tracing.service.ts:16:21 at changeProjectStep (test/utility/transition-project.ts:46:18) at Object.<anonymous> (test/project-workflow.e2e-spec.ts:346:7)
Project-Workflow e2e › Workflow › Suspension: src/components/project/workflow/project-workflow.neo4j.repository.ts#L133
[Server]: Failed to determine project's previous steps ServerException: Failed to determine project's previous steps at ProjectWorkflowNeo4jRepository.mostRecentStep (src/components/project/workflow/project-workflow.neo4j.repository.ts:133:13) at Object.resolve (src/components/project/workflow/transitions/dynamic-step.ts:20:19) at src/components/workflow/workflow.service.ts:89:25 at async Promise.all (index 0) at ProjectWorkflowService.resolveAvailable (src/components/workflow/workflow.service.ts:87:9) at ProjectWorkflowService.getAvailableTransitions (src/components/project/workflow/project-workflow.service.ts:50:12) at ProjectTransitionsResolver.transitions (src/components/project/workflow/resolvers/project-transitions.resolver.ts:34:12) at src/core/graphql/graphql-tracing.plugin.ts:76:9 at src/core/tracing/tracing.service.ts:16:21 at changeProjectStep (test/utility/transition-project.ts:46:18) at Object.<anonymous> (test/project-workflow.e2e-spec.ts:426:9)
Project-Workflow e2e › Workflow › Termination: src/components/project/workflow/project-workflow.neo4j.repository.ts#L133
[Server]: Failed to determine project's previous steps ServerException: Failed to determine project's previous steps at ProjectWorkflowNeo4jRepository.mostRecentStep (src/components/project/workflow/project-workflow.neo4j.repository.ts:133:13) at Object.resolve (src/components/project/workflow/transitions/dynamic-step.ts:20:19) at src/components/workflow/workflow.service.ts:89:25 at async Promise.all (index 0) at ProjectWorkflowService.resolveAvailable (src/components/workflow/workflow.service.ts:87:9) at ProjectWorkflowService.getAvailableTransitions (src/components/project/workflow/project-workflow.service.ts:50:12) at ProjectTransitionsResolver.transitions (src/components/project/workflow/resolvers/project-transitions.resolver.ts:34:12) at src/core/graphql/graphql-tracing.plugin.ts:76:9 at src/core/tracing/tracing.service.ts:16:21 at changeProjectStep (test/utility/transition-project.ts:46:18) at Object.<anonymous> (test/project-workflow.e2e-spec.ts:464:9)
E2E Tests (neo4j 6/6)
Process completed with exit code 1.
Engagement e2e › should not enable a Project step transition if the step is FinalizingCompletion and there are Engagements with non-terminal statuses: src/components/project/workflow/transitions/conditions.ts#L70
[Server]: Nest could not find EngagementService element (this provider does not exist in the current context) Error: Nest could not find EngagementService element (this provider does not exist in the current context) at Object.resolve (src/components/project/workflow/transitions/conditions.ts:70:28) at src/components/workflow/workflow.service.ts:58:33 at ProjectWorkflowService.resolveAvailable (src/components/workflow/workflow.service.ts:54:36) at ProjectWorkflowService.getAvailableTransitions (src/components/project/workflow/project-workflow.service.ts:50:23) at ProjectTransitionsResolver.transitions (src/components/project/workflow/resolvers/project-transitions.resolver.ts:34:32) at src/core/graphql/graphql-tracing.plugin.ts:76:9 at src/core/tracing/tracing.service.ts:16:21 at changeProjectStep (test/utility/transition-project.ts:46:18) at test/engagement.e2e-spec.ts:1028:9 at test/utility/login.ts:33:12 at runInIsolatedSession (test/utility/login.ts:44:12) at runAsAdmin (test/utility/login.ts:31:3) at Object.<anonymous> (test/engagement.e2e-spec.ts:1026:5)
Engagement e2e › should update Engagement status to match Project step when it becomes Terminated: src/components/project/workflow/project-workflow.neo4j.repository.ts#L133
[Server]: Failed to determine project's previous steps ServerException: Failed to determine project's previous steps at ProjectWorkflowNeo4jRepository.mostRecentStep (src/components/project/workflow/project-workflow.neo4j.repository.ts:133:13) at Object.resolve (src/components/project/workflow/transitions/dynamic-step.ts:20:19) at src/components/workflow/workflow.service.ts:89:25 at async Promise.all (index 0) at ProjectWorkflowService.resolveAvailable (src/components/workflow/workflow.service.ts:87:9) at ProjectWorkflowService.getAvailableTransitions (src/components/project/workflow/project-workflow.service.ts:50:12) at ProjectTransitionsResolver.transitions (src/components/project/workflow/resolvers/project-transitions.resolver.ts:34:12) at src/core/graphql/graphql-tracing.plugin.ts:76:9 at src/core/tracing/tracing.service.ts:16:21 at changeProjectStep (test/utility/transition-project.ts:46:18) at test/engagement.e2e-spec.ts:1132:11 at test/utility/login.ts:33:12 at runInIsolatedSession (test/utility/login.ts:44:12) at runAsAdmin (test/utility/login.ts:31:3) at test/engagement.e2e-spec.ts:1130:7
Engagement e2e › should update Engagement status to match Project step when it becomes Completed: src/components/project/workflow/transitions/conditions.ts#L70
[Server]: Nest could not find EngagementService element (this provider does not exist in the current context) Error: Nest could not find EngagementService element (this provider does not exist in the current context) at Object.resolve (src/components/project/workflow/transitions/conditions.ts:70:28) at src/components/workflow/workflow.service.ts:58:33 at ProjectWorkflowService.resolveAvailable (src/components/workflow/workflow.service.ts:54:36) at ProjectWorkflowService.getAvailableTransitions (src/components/project/workflow/project-workflow.service.ts:50:23) at ProjectTransitionsResolver.transitions (src/components/project/workflow/resolvers/project-transitions.resolver.ts:34:32) at src/core/graphql/graphql-tracing.plugin.ts:76:9 at src/core/tracing/tracing.service.ts:16:21 at changeProjectStep (test/utility/transition-project.ts:46:18) at test/engagement.e2e-spec.ts:1132:11 at test/utility/login.ts:33:12 at runInIsolatedSession (test/utility/login.ts:44:12) at runAsAdmin (test/utility/login.ts:31:3) at test/engagement.e2e-spec.ts:1130:7
Engagement e2e › should update Engagement lastSuspendedAt if status gets set to Suspended: src/components/project/workflow/project-workflow.neo4j.repository.ts#L133
[Server]: Failed to determine project's previous steps ServerException: Failed to determine project's previous steps at ProjectWorkflowNeo4jRepository.mostRecentStep (src/components/project/workflow/project-workflow.neo4j.repository.ts:133:13) at Object.resolve (src/components/project/workflow/transitions/dynamic-step.ts:20:19) at src/components/workflow/workflow.service.ts:89:25 at async Promise.all (index 0) at ProjectWorkflowService.resolveAvailable (src/components/workflow/workflow.service.ts:87:9) at ProjectWorkflowService.getAvailableTransitions (src/components/project/workflow/project-workflow.service.ts:50:12) at ProjectTransitionsResolver.transitions (src/components/project/workflow/resolvers/project-transitions.resolver.ts:34:12) at src/core/graphql/graphql-tracing.plugin.ts:76:9 at src/core/tracing/tracing.service.ts:16:21 at changeProjectStep (test/utility/transition-project.ts:46:18) at test/engagement.e2e-spec.ts:1221:7 at test/utility/login.ts:33:12 at runInIsolatedSession (test/utility/login.ts:44:12) at runAsAdmin (test/utility/login.ts:31:3) at Object.<anonymous> (test/engagement.e2e-spec.ts:1219:5)
Engagement e2e › should update Engagement lastReactivatedAt if status gets set to Active from Suspended: src/components/project/workflow/project-workflow.neo4j.repository.ts#L133
[Server]: Failed to determine project's previous steps ServerException: Failed to determine project's previous steps at ProjectWorkflowNeo4jRepository.mostRecentStep (src/components/project/workflow/project-workflow.neo4j.repository.ts:133:13) at Object.resolve (src/components/project/workflow/transitions/dynamic-step.ts:20:19) at src/components/workflow/workflow.service.ts:89:25 at async Promise.all (index 0) at ProjectWorkflowService.resolveAvailable (src/components/workflow/workflow.service.ts:87:9) at ProjectWorkflowService.getAvailableTransitions (src/components/project/workflow/project-workflow.service.ts:50:12) at ProjectTransitionsResolver.transitions (src/components/project/workflow/resolvers/project-transitions.resolver.ts:34:12) at src/core/graphql/graphql-tracing.plugin.ts:76:9 at src/core/tracing/tracing.service.ts:16:21 at changeProjectStep (test/utility/transition-project.ts:46:18) at test/engagement.e2e-spec.ts:1266:7 at test/utility/login.ts:33:12 at runInIsolatedSession (test/utility/login.ts:44:12) at runAsAdmin (test/utility/login.ts:31:3) at Object.<anonymous> (test/engagement.e2e-spec.ts:1264:5)
E2E Tests (neo4j 3/6)
Process completed with exit code 1.
Engagement-Workflow e2e › Workflow › engagement completed: src/components/project/workflow/project-workflow.neo4j.repository.ts#L133
[Server]: Failed to determine project's previous steps ServerException: Failed to determine project's previous steps at ProjectWorkflowNeo4jRepository.mostRecentStep (src/components/project/workflow/project-workflow.neo4j.repository.ts:133:13) at Object.resolve (src/components/project/workflow/transitions/dynamic-step.ts:20:19) at src/components/workflow/workflow.service.ts:89:25 at async Promise.all (index 0) at ProjectWorkflowService.resolveAvailable (src/components/workflow/workflow.service.ts:87:9) at ProjectWorkflowService.getAvailableTransitions (src/components/project/workflow/project-workflow.service.ts:50:12) at ProjectTransitionsResolver.transitions (src/components/project/workflow/resolvers/project-transitions.resolver.ts:34:12) at src/core/graphql/graphql-tracing.plugin.ts:76:9 at src/core/tracing/tracing.service.ts:16:21 at changeProjectStep (test/utility/transition-project.ts:46:18) at test/engagement-workflow.e2e-spec.ts:144:9 at test/utility/login.ts:33:12 at runInIsolatedSession (test/utility/login.ts:44:12) at runAsAdmin (test/utility/login.ts:31:3) at Object.<anonymous> (test/engagement-workflow.e2e-spec.ts:143:7)
Engagement-Workflow e2e › Workflow › engagement terminated: src/components/project/workflow/project-workflow.neo4j.repository.ts#L133
[Server]: Failed to determine project's previous steps ServerException: Failed to determine project's previous steps at ProjectWorkflowNeo4jRepository.mostRecentStep (src/components/project/workflow/project-workflow.neo4j.repository.ts:133:13) at Object.resolve (src/components/project/workflow/transitions/dynamic-step.ts:20:19) at src/components/workflow/workflow.service.ts:89:25 at async Promise.all (index 0) at ProjectWorkflowService.resolveAvailable (src/components/workflow/workflow.service.ts:87:9) at ProjectWorkflowService.getAvailableTransitions (src/components/project/workflow/project-workflow.service.ts:50:12) at ProjectTransitionsResolver.transitions (src/components/project/workflow/resolvers/project-transitions.resolver.ts:34:12) at src/core/graphql/graphql-tracing.plugin.ts:76:9 at src/core/tracing/tracing.service.ts:16:21 at changeProjectStep (test/utility/transition-project.ts:46:18) at test/engagement-workflow.e2e-spec.ts:184:9 at test/utility/login.ts:33:12 at runInIsolatedSession (test/utility/login.ts:44:12) at runAsAdmin (test/utility/login.ts:31:3) at Object.<anonymous> (test/engagement-workflow.e2e-spec.ts:183:7)
E2E Tests (neo4j 2/6)
Process completed with exit code 1.