@camunda/e2e-test-suite 0.0.1328 → 0.0.1330

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/.github/c8_versions.json +1 -0
  2. package/README.md +1 -0
  3. package/dist/fixtures/8.11.d.ts +83 -0
  4. package/dist/fixtures/8.11.js +203 -0
  5. package/dist/pages/8.11/AppsPage.d.ts +60 -0
  6. package/dist/pages/8.11/AppsPage.js +1060 -0
  7. package/dist/pages/8.11/AuditLogPage.d.ts +14 -0
  8. package/dist/pages/8.11/AuditLogPage.js +69 -0
  9. package/dist/pages/8.11/Authorization.d.ts +44 -0
  10. package/dist/pages/8.11/Authorization.js +409 -0
  11. package/dist/pages/8.11/ClientCredentialsDetailsPage.d.ts +12 -0
  12. package/dist/pages/8.11/ClientCredentialsDetailsPage.js +36 -0
  13. package/dist/pages/8.11/ClusterDetailsPage.d.ts +107 -0
  14. package/dist/pages/8.11/ClusterDetailsPage.js +892 -0
  15. package/dist/pages/8.11/ClusterPage.d.ts +96 -0
  16. package/dist/pages/8.11/ClusterPage.js +657 -0
  17. package/dist/pages/8.11/ClusterSecretsPage.d.ts +48 -0
  18. package/dist/pages/8.11/ClusterSecretsPage.js +406 -0
  19. package/dist/pages/8.11/ConnectorMarketplacePage.d.ts +29 -0
  20. package/dist/pages/8.11/ConnectorMarketplacePage.js +156 -0
  21. package/dist/pages/8.11/ConnectorSettingsPage.d.ts +39 -0
  22. package/dist/pages/8.11/ConnectorSettingsPage.js +150 -0
  23. package/dist/pages/8.11/ConnectorTemplatePage.d.ts +11 -0
  24. package/dist/pages/8.11/ConnectorTemplatePage.js +34 -0
  25. package/dist/pages/8.11/ConsoleOrganizationPage.d.ts +77 -0
  26. package/dist/pages/8.11/ConsoleOrganizationPage.js +457 -0
  27. package/dist/pages/8.11/DataFiltersPage.d.ts +30 -0
  28. package/dist/pages/8.11/DataFiltersPage.js +135 -0
  29. package/dist/pages/8.11/FormJsPage.d.ts +38 -0
  30. package/dist/pages/8.11/FormJsPage.js +283 -0
  31. package/dist/pages/8.11/HomePage.d.ts +29 -0
  32. package/dist/pages/8.11/HomePage.js +176 -0
  33. package/dist/pages/8.11/IdpCreatePage.d.ts +118 -0
  34. package/dist/pages/8.11/IdpCreatePage.js +514 -0
  35. package/dist/pages/8.11/LoginPage.d.ts +45 -0
  36. package/dist/pages/8.11/LoginPage.js +214 -0
  37. package/dist/pages/8.11/ModelerCreatePage.d.ts +256 -0
  38. package/dist/pages/8.11/ModelerCreatePage.js +2272 -0
  39. package/dist/pages/8.11/ModelerHomePage.d.ts +100 -0
  40. package/dist/pages/8.11/ModelerHomePage.js +1168 -0
  41. package/dist/pages/8.11/ModelerUserInvitePage.d.ts +29 -0
  42. package/dist/pages/8.11/ModelerUserInvitePage.js +136 -0
  43. package/dist/pages/8.11/OCIdentityAuthorizationsPage.d.ts +11 -0
  44. package/dist/pages/8.11/OCIdentityAuthorizationsPage.js +25 -0
  45. package/dist/pages/8.11/OCIdentityClusterVariablesPage.d.ts +21 -0
  46. package/dist/pages/8.11/OCIdentityClusterVariablesPage.js +128 -0
  47. package/dist/pages/8.11/OCIdentityGroupsPage.d.ts +38 -0
  48. package/dist/pages/8.11/OCIdentityGroupsPage.js +176 -0
  49. package/dist/pages/8.11/OCIdentityHomePage.d.ts +21 -0
  50. package/dist/pages/8.11/OCIdentityHomePage.js +111 -0
  51. package/dist/pages/8.11/OCIdentityMappingRulesPage.d.ts +23 -0
  52. package/dist/pages/8.11/OCIdentityMappingRulesPage.js +124 -0
  53. package/dist/pages/8.11/OCIdentityRolesPage.d.ts +43 -0
  54. package/dist/pages/8.11/OCIdentityRolesPage.js +236 -0
  55. package/dist/pages/8.11/OperateHomePage.d.ts +28 -0
  56. package/dist/pages/8.11/OperateHomePage.js +150 -0
  57. package/dist/pages/8.11/OperateProcessInstancePage.d.ts +43 -0
  58. package/dist/pages/8.11/OperateProcessInstancePage.js +893 -0
  59. package/dist/pages/8.11/OperateProcessesPage.d.ts +28 -0
  60. package/dist/pages/8.11/OperateProcessesPage.js +153 -0
  61. package/dist/pages/8.11/OptimizeCollectionsPage.d.ts +30 -0
  62. package/dist/pages/8.11/OptimizeCollectionsPage.js +175 -0
  63. package/dist/pages/8.11/OptimizeDashboardPage.d.ts +11 -0
  64. package/dist/pages/8.11/OptimizeDashboardPage.js +71 -0
  65. package/dist/pages/8.11/OptimizeHomePage.d.ts +17 -0
  66. package/dist/pages/8.11/OptimizeHomePage.js +171 -0
  67. package/dist/pages/8.11/OptimizeReportPage.d.ts +49 -0
  68. package/dist/pages/8.11/OptimizeReportPage.js +184 -0
  69. package/dist/pages/8.11/OptimizeSharePage.d.ts +16 -0
  70. package/dist/pages/8.11/OptimizeSharePage.js +100 -0
  71. package/dist/pages/8.11/PlayPage.d.ts +17 -0
  72. package/dist/pages/8.11/PlayPage.js +157 -0
  73. package/dist/pages/8.11/ProcessApplicationPage.d.ts +32 -0
  74. package/dist/pages/8.11/ProcessApplicationPage.js +496 -0
  75. package/dist/pages/8.11/SettingsPage.d.ts +10 -0
  76. package/dist/pages/8.11/SettingsPage.js +53 -0
  77. package/dist/pages/8.11/SignUpPage.d.ts +42 -0
  78. package/dist/pages/8.11/SignUpPage.js +134 -0
  79. package/dist/pages/8.11/TaskDetailsPage.d.ts +77 -0
  80. package/dist/pages/8.11/TaskDetailsPage.js +324 -0
  81. package/dist/pages/8.11/TaskPanelPage.d.ts +26 -0
  82. package/dist/pages/8.11/TaskPanelPage.js +245 -0
  83. package/dist/pages/8.11/TaskProcessesPage.d.ts +18 -0
  84. package/dist/pages/8.11/TaskProcessesPage.js +134 -0
  85. package/dist/pages/8.11/UtilitiesPage.d.ts +56 -0
  86. package/dist/pages/8.11/UtilitiesPage.js +1024 -0
  87. package/dist/pages/8.11/WorkspaceMembersPage.d.ts +21 -0
  88. package/dist/pages/8.11/WorkspaceMembersPage.js +268 -0
  89. package/dist/tests/8.11/access-user-role-management.spec.d.ts +1 -0
  90. package/dist/tests/8.11/access-user-role-management.spec.js +487 -0
  91. package/dist/tests/8.11/agentic-ai-user-flows.spec.d.ts +1 -0
  92. package/dist/tests/8.11/agentic-ai-user-flows.spec.js +209 -0
  93. package/dist/tests/8.11/aws-cluster-user-flows.spec.d.ts +1 -0
  94. package/dist/tests/8.11/aws-cluster-user-flows.spec.js +188 -0
  95. package/dist/tests/8.11/aws-connectors-user-flows.spec.d.ts +1 -0
  96. package/dist/tests/8.11/aws-connectors-user-flows.spec.js +167 -0
  97. package/dist/tests/8.11/cluster-variables.spec.d.ts +1 -0
  98. package/dist/tests/8.11/cluster-variables.spec.js +202 -0
  99. package/dist/tests/8.11/connectors-user-flows.spec.d.ts +1 -0
  100. package/dist/tests/8.11/connectors-user-flows.spec.js +537 -0
  101. package/dist/tests/8.11/console-user-flows.spec.d.ts +1 -0
  102. package/dist/tests/8.11/console-user-flows.spec.js +199 -0
  103. package/dist/tests/8.11/hto-user-flows.spec.d.ts +1 -0
  104. package/dist/tests/8.11/hto-user-flows.spec.js +358 -0
  105. package/dist/tests/8.11/idp-user-flows.spec.d.ts +1 -0
  106. package/dist/tests/8.11/idp-user-flows.spec.js +316 -0
  107. package/dist/tests/8.11/login-negative-tests.spec.d.ts +1 -0
  108. package/dist/tests/8.11/login-negative-tests.spec.js +29 -0
  109. package/dist/tests/8.11/login.spec.d.ts +1 -0
  110. package/dist/tests/8.11/login.spec.js +29 -0
  111. package/dist/tests/8.11/navigation.spec.d.ts +1 -0
  112. package/dist/tests/8.11/navigation.spec.js +59 -0
  113. package/dist/tests/8.11/operate-access-flow.spec.d.ts +1 -0
  114. package/dist/tests/8.11/operate-access-flow.spec.js +136 -0
  115. package/dist/tests/8.11/optimize-agentic-control-panel-api.spec.d.ts +1 -0
  116. package/dist/tests/8.11/optimize-agentic-control-panel-api.spec.js +96 -0
  117. package/dist/tests/8.11/optimize-agentic-control-panel-ui.spec.d.ts +1 -0
  118. package/dist/tests/8.11/optimize-agentic-control-panel-ui.spec.js +69 -0
  119. package/dist/tests/8.11/optimize-api-tests.spec.d.ts +1 -0
  120. package/dist/tests/8.11/optimize-api-tests.spec.js +1194 -0
  121. package/dist/tests/8.11/optimize-collections-api.spec.d.ts +1 -0
  122. package/dist/tests/8.11/optimize-collections-api.spec.js +184 -0
  123. package/dist/tests/8.11/optimize-collections-ui.spec.d.ts +1 -0
  124. package/dist/tests/8.11/optimize-collections-ui.spec.js +46 -0
  125. package/dist/tests/8.11/optimize-data-filters-api.spec.d.ts +1 -0
  126. package/dist/tests/8.11/optimize-data-filters-api.spec.js +195 -0
  127. package/dist/tests/8.11/optimize-data-filters-ui.spec.d.ts +1 -0
  128. package/dist/tests/8.11/optimize-data-filters-ui.spec.js +306 -0
  129. package/dist/tests/8.11/optimize-exporter-filters-importer-e2e.spec.d.ts +1 -0
  130. package/dist/tests/8.11/optimize-exporter-filters-importer-e2e.spec.js +316 -0
  131. package/dist/tests/8.11/optimize-sharing-alerts-export-api.spec.d.ts +1 -0
  132. package/dist/tests/8.11/optimize-sharing-alerts-export-api.spec.js +337 -0
  133. package/dist/tests/8.11/optimize-sharing-alerts-export-ui.spec.d.ts +1 -0
  134. package/dist/tests/8.11/optimize-sharing-alerts-export-ui.spec.js +198 -0
  135. package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-audit-log.spec.d.ts +1 -0
  136. package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-audit-log.spec.js +146 -0
  137. package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-call-tools.spec.d.ts +1 -0
  138. package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-call-tools.spec.js +208 -0
  139. package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-e2e-flow.spec.d.ts +1 -0
  140. package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-e2e-flow.spec.js +151 -0
  141. package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-list-tools.spec.d.ts +1 -0
  142. package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-list-tools.spec.js +242 -0
  143. package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-cluster-tools.spec.d.ts +1 -0
  144. package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-cluster-tools.spec.js +75 -0
  145. package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-incident-tools.spec.d.ts +1 -0
  146. package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-incident-tools.spec.js +123 -0
  147. package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-user-task-tools.spec.d.ts +1 -0
  148. package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-user-task-tools.spec.js +151 -0
  149. package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-variable-tools.spec.d.ts +1 -0
  150. package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-variable-tools.spec.js +123 -0
  151. package/dist/tests/8.11/play.spec.d.ts +1 -0
  152. package/dist/tests/8.11/play.spec.js +93 -0
  153. package/dist/tests/8.11/rba-enabled-v2-user-flows.spec.d.ts +1 -0
  154. package/dist/tests/8.11/rba-enabled-v2-user-flows.spec.js +495 -0
  155. package/dist/tests/8.11/saas-migration-path-user-flows.spec.d.ts +1 -0
  156. package/dist/tests/8.11/saas-migration-path-user-flows.spec.js +133 -0
  157. package/dist/tests/8.11/smoke-tests.spec.d.ts +1 -0
  158. package/dist/tests/8.11/smoke-tests.spec.js +339 -0
  159. package/dist/tests/8.11/test-setup.spec.d.ts +1 -0
  160. package/dist/tests/8.11/test-setup.spec.js +256 -0
  161. package/dist/tests/8.11/web-modeler-user-flows.spec.d.ts +1 -0
  162. package/dist/tests/8.11/web-modeler-user-flows.spec.js +523 -0
  163. package/dist/utils/clusterVersions.d.ts +2 -1
  164. package/dist/utils/clusterVersions.js +1 -0
  165. package/dist/utils/consoleApiHelpers.js +1 -0
  166. package/package.json +1 -1
  167. package/playwright.config.ts +10 -0
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
4
+ * one or more contributor license agreements. See the NOTICE file distributed
5
+ * with this work for additional information regarding copyright ownership.
6
+ * Licensed under the Camunda License 1.0. You may not use this file
7
+ * except in compliance with the Camunda License 1.0.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ /*
11
+ * MCP audit-log inbound channel provenance — camunda/camunda#56234
12
+ * (SC-AUD-01/02/03).
13
+ */
14
+ const _8_11_1 = require("../../../../fixtures/8.11");
15
+ const test_1 = require("@playwright/test");
16
+ const apiHelpers_1 = require("../../../../utils/apiHelpers");
17
+ const mcpHelpers_1 = require("../../../../utils/mcpHelpers");
18
+ const constants_1 = require("../../../../utils/constants");
19
+ // Raw BPMN `io.camunda.tool:name` annotation — what the audit log stores in
20
+ // inboundChannelToolName (not the composite tools/list name).
21
+ const TOOL_NAME_RAW = 'mcp-as-tool-process';
22
+ const MCP_PROCESS_DEFINITION_ID = 'mcpAsToolProcess';
23
+ let authToken;
24
+ let mcpProcessesUrl;
25
+ let messageSubscriptionsSearchUrl;
26
+ let auditLogsSearchUrl;
27
+ let mcpSessionId = null;
28
+ let restProcessDefinitionKey;
29
+ let compositeToolName;
30
+ _8_11_1.test.describe.configure({ mode: 'parallel' });
31
+ _8_11_1.test.describe('Orchestration Cluster MCP Server — audit log inbound channel', () => {
32
+ _8_11_1.test.beforeAll(async () => {
33
+ authToken = await (0, apiHelpers_1.authSaasAPI)(undefined, 'agentic_cluster');
34
+ mcpProcessesUrl = (0, apiHelpers_1.buildZeebeApiUrl)('/mcp/processes', 'saas', 'agentic_cluster');
35
+ messageSubscriptionsSearchUrl = (0, apiHelpers_1.buildZeebeApiUrl)('/v2/message-subscriptions/search', 'saas', 'agentic_cluster');
36
+ auditLogsSearchUrl = (0, apiHelpers_1.buildZeebeApiUrl)('/v2/audit-logs/search', 'saas', 'agentic_cluster');
37
+ const apiContext = await (0, apiHelpers_1.getApiRequestContext)();
38
+ mcpSessionId = await (0, mcpHelpers_1.initializeMcpSession)(apiContext, mcpProcessesUrl, authToken, mcpSessionId);
39
+ const [mcpKey, restKey] = await Promise.all([
40
+ (0, apiHelpers_1.deployProcess)('./resources/mcp_server_saas/mcp_as_tool_process.bpmn', authToken, 'saas', 'agentic_cluster'),
41
+ (0, apiHelpers_1.deployProcess)('./resources/mcp_server_saas/mcp_process_instance_test_file.bpmn', authToken, 'saas', 'agentic_cluster'),
42
+ ]);
43
+ if (mcpKey == null) {
44
+ throw new Error('Failed to deploy mcp_as_tool_process.bpmn');
45
+ }
46
+ if (restKey == null) {
47
+ throw new Error('Failed to deploy mcp_process_instance_test_file.bpmn');
48
+ }
49
+ restProcessDefinitionKey = String(restKey);
50
+ // Composite tool name is `<toolName>_<messageSubscriptionKey>`.
51
+ await (0, test_1.expect)(async () => {
52
+ const res = await apiContext.post(messageSubscriptionsSearchUrl, {
53
+ headers: (0, mcpHelpers_1.buildMcpHeaders)(authToken, mcpSessionId),
54
+ data: {
55
+ filter: {
56
+ processDefinitionId: MCP_PROCESS_DEFINITION_ID,
57
+ messageSubscriptionType: 'START_EVENT',
58
+ },
59
+ sort: [{ field: 'processDefinitionVersion', order: 'desc' }],
60
+ page: { limit: 1 },
61
+ },
62
+ });
63
+ await (0, mcpHelpers_1.assertResponseStatus)(res, 200);
64
+ const json = (await res.json());
65
+ (0, test_1.expect)(json.items.length).toBeGreaterThanOrEqual(1);
66
+ compositeToolName = `${TOOL_NAME_RAW}_${json.items[0].messageSubscriptionKey}`;
67
+ }).toPass(constants_1.deletionAssertionOptions);
68
+ });
69
+ (0, _8_11_1.test)('SC-AUD-01 — MCP tools/call produces audit entry with inboundChannelType=MCP', async () => {
70
+ const apiContext = await (0, apiHelpers_1.getApiRequestContext)();
71
+ const callBody = await (0, mcpHelpers_1.callTool)(apiContext, mcpProcessesUrl, authToken, mcpSessionId, compositeToolName, {});
72
+ (0, test_1.expect)(callBody.result).toBeDefined();
73
+ (0, test_1.expect)(callBody.result.isError).not.toBe(true);
74
+ const pik = (0, mcpHelpers_1.extractProcessInstanceKey)(callBody.result.content[0]?.text ?? '');
75
+ (0, test_1.expect)(pik, 'Expected processInstanceKey from MCP tools/call').not.toBeNull();
76
+ await (0, test_1.expect)(async () => {
77
+ const res = await apiContext.post(auditLogsSearchUrl, {
78
+ headers: (0, mcpHelpers_1.buildMcpHeaders)(authToken, mcpSessionId),
79
+ data: {
80
+ filter: {
81
+ processInstanceKey: pik,
82
+ operationType: 'CREATE',
83
+ },
84
+ page: { limit: 10 },
85
+ },
86
+ });
87
+ await (0, mcpHelpers_1.assertResponseStatus)(res, 200);
88
+ const json = (await res.json());
89
+ const entry = json.items.find((i) => i.entityType === 'PROCESS_INSTANCE');
90
+ (0, test_1.expect)(entry, `Expected a PROCESS_INSTANCE CREATE audit entry for pik ${pik}`).toBeDefined();
91
+ (0, test_1.expect)(entry.inboundChannelType).toBe('MCP');
92
+ }).toPass(constants_1.auditLogAssertionOptions);
93
+ });
94
+ (0, _8_11_1.test)('SC-AUD-02 — MCP audit entry captures the raw tool name in inboundChannelToolName', async () => {
95
+ const apiContext = await (0, apiHelpers_1.getApiRequestContext)();
96
+ const callBody = await (0, mcpHelpers_1.callTool)(apiContext, mcpProcessesUrl, authToken, mcpSessionId, compositeToolName, {});
97
+ (0, test_1.expect)(callBody.result).toBeDefined();
98
+ (0, test_1.expect)(callBody.result.isError).not.toBe(true);
99
+ const pik = (0, mcpHelpers_1.extractProcessInstanceKey)(callBody.result.content[0]?.text ?? '');
100
+ (0, test_1.expect)(pik).not.toBeNull();
101
+ await (0, test_1.expect)(async () => {
102
+ const res = await apiContext.post(auditLogsSearchUrl, {
103
+ headers: (0, mcpHelpers_1.buildMcpHeaders)(authToken, mcpSessionId),
104
+ data: {
105
+ filter: {
106
+ processInstanceKey: pik,
107
+ operationType: 'CREATE',
108
+ },
109
+ page: { limit: 10 },
110
+ },
111
+ });
112
+ await (0, mcpHelpers_1.assertResponseStatus)(res, 200);
113
+ const json = (await res.json());
114
+ const entry = json.items.find((i) => i.entityType === 'PROCESS_INSTANCE');
115
+ (0, test_1.expect)(entry, `Expected a PROCESS_INSTANCE CREATE audit entry for pik ${pik}`).toBeDefined();
116
+ // Raw annotation value, not the composite tools/list name.
117
+ (0, test_1.expect)(entry.inboundChannelToolName).toBe(TOOL_NAME_RAW);
118
+ (0, test_1.expect)(entry.inboundChannelType).toBe('MCP');
119
+ }).toPass(constants_1.auditLogAssertionOptions);
120
+ });
121
+ (0, _8_11_1.test)('SC-AUD-03 — REST-triggered start is distinguishable from MCP (inboundChannelType and tool name both null)', async () => {
122
+ const apiContext = await (0, apiHelpers_1.getApiRequestContext)();
123
+ // NONE-start BPMN started via REST — bypasses MCP entirely.
124
+ const restPik = await (0, apiHelpers_1.createProcessInstance)(restProcessDefinitionKey, authToken, 'saas', 'agentic_cluster');
125
+ (0, test_1.expect)(restPik).toBeTruthy();
126
+ await (0, test_1.expect)(async () => {
127
+ const res = await apiContext.post(auditLogsSearchUrl, {
128
+ headers: (0, mcpHelpers_1.buildMcpHeaders)(authToken, mcpSessionId),
129
+ data: {
130
+ filter: {
131
+ processInstanceKey: restPik,
132
+ operationType: 'CREATE',
133
+ },
134
+ page: { limit: 10 },
135
+ },
136
+ });
137
+ await (0, mcpHelpers_1.assertResponseStatus)(res, 200);
138
+ const json = (await res.json());
139
+ const entry = json.items.find((i) => i.entityType === 'PROCESS_INSTANCE');
140
+ (0, test_1.expect)(entry, `Expected a PROCESS_INSTANCE CREATE audit entry for REST pik ${restPik}`).toBeDefined();
141
+ // REST-triggered entries have both fields null (verified on 8.10-SNAPSHOT).
142
+ (0, test_1.expect)(entry.inboundChannelType).toBeNull();
143
+ (0, test_1.expect)(entry.inboundChannelToolName).toBeNull();
144
+ }).toPass(constants_1.auditLogAssertionOptions);
145
+ });
146
+ });
@@ -0,0 +1,208 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
4
+ * one or more contributor license agreements. See the NOTICE file distributed
5
+ * with this work for additional information regarding copyright ownership.
6
+ * Licensed under the Camunda License 1.0. You may not use this file
7
+ * except in compliance with the Camunda License 1.0.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ /*
11
+ * Tests for POST /mcp/processes — tools/call endpoint.
12
+ * Direct JSON-RPC 2.0 calls; no browser interaction.
13
+ */
14
+ const _8_11_1 = require("../../../../fixtures/8.11");
15
+ const test_1 = require("@playwright/test");
16
+ const apiHelpers_1 = require("../../../../utils/apiHelpers");
17
+ const constants_1 = require("../../../../utils/constants");
18
+ const mcpHelpers_1 = require("../../../../utils/mcpHelpers");
19
+ let authToken;
20
+ let mcpProcessesUrl;
21
+ let messageSubscriptionsSearchUrl;
22
+ let processInstancesSearchUrl;
23
+ let variablesSearchUrl;
24
+ let mcpSessionId = null;
25
+ // processInstanceKey of a pre-created instance used by SC-CALL-08 (getProcessInstance smoke).
26
+ let smokeProcessInstanceKey = null;
27
+ _8_11_1.test.describe.configure({ mode: 'parallel' });
28
+ _8_11_1.test.describe('Orchestration Cluster MCP Server — /mcp/processes tools/call', () => {
29
+ _8_11_1.test.beforeAll(async () => {
30
+ authToken = await (0, apiHelpers_1.authSaasAPI)(undefined, 'agentic_cluster');
31
+ mcpProcessesUrl = (0, apiHelpers_1.buildZeebeApiUrl)('/mcp/processes', 'saas', 'agentic_cluster');
32
+ messageSubscriptionsSearchUrl = (0, apiHelpers_1.buildZeebeApiUrl)('/v2/message-subscriptions/search', 'saas', 'agentic_cluster');
33
+ processInstancesSearchUrl = (0, apiHelpers_1.buildZeebeApiUrl)('/v2/process-instances/search', 'saas', 'agentic_cluster');
34
+ variablesSearchUrl = (0, apiHelpers_1.buildZeebeApiUrl)('/v2/variables/search', 'saas', 'agentic_cluster');
35
+ const apiContext = await (0, apiHelpers_1.getApiRequestContext)();
36
+ mcpSessionId = await (0, mcpHelpers_1.initializeMcpSession)(apiContext, mcpProcessesUrl, authToken, mcpSessionId);
37
+ // Deploy processes needed by this suite concurrently.
38
+ const [toolProcessKey, withInputsKey] = await Promise.all([
39
+ (0, apiHelpers_1.deployProcess)('./resources/mcp_server_saas/mcp_as_tool_process.bpmn', authToken, 'saas', 'agentic_cluster'),
40
+ (0, apiHelpers_1.deployProcess)('./resources/mcp_server_saas/mcp_as_tool_with_inputs.bpmn', authToken, 'saas', 'agentic_cluster'),
41
+ ]);
42
+ if (toolProcessKey == null)
43
+ throw new Error('Failed to deploy mcp_as_tool_process.bpmn');
44
+ if (withInputsKey == null)
45
+ throw new Error('Failed to deploy mcp_as_tool_with_inputs.bpmn');
46
+ // Pre-create a process instance for SC-CALL-08 (getProcessInstance smoke).
47
+ const restRes = await apiContext.post((0, apiHelpers_1.buildZeebeApiUrl)('/v2/process-instances', 'saas', 'agentic_cluster'), {
48
+ headers: (0, mcpHelpers_1.buildMcpHeaders)(authToken, mcpSessionId),
49
+ data: { processDefinitionId: 'mcpAsToolProcess', variables: {} },
50
+ });
51
+ if (restRes.ok()) {
52
+ const body = (await restRes.json());
53
+ smokeProcessInstanceKey = body.processInstanceKey
54
+ ? String(body.processInstanceKey)
55
+ : null;
56
+ }
57
+ });
58
+ (0, _8_11_1.test)('SC-CALL-01 — Tool invocation starts a process instance', async () => {
59
+ const apiContext = await (0, apiHelpers_1.getApiRequestContext)();
60
+ let toolName = null;
61
+ await _8_11_1.test.step('Resolve latest subscription key for mcpAsToolProcess', async () => {
62
+ await (0, test_1.expect)(async () => {
63
+ const res = await apiContext.post(messageSubscriptionsSearchUrl, {
64
+ headers: (0, mcpHelpers_1.buildMcpHeaders)(authToken, mcpSessionId),
65
+ data: {
66
+ filter: {
67
+ processDefinitionId: 'mcpAsToolProcess',
68
+ messageSubscriptionType: 'START_EVENT',
69
+ },
70
+ sort: [{ field: 'processDefinitionVersion', order: 'desc' }],
71
+ page: { limit: 1 },
72
+ },
73
+ });
74
+ await (0, mcpHelpers_1.assertResponseStatus)(res, 200);
75
+ const json = (await res.json());
76
+ (0, test_1.expect)(json.items.length).toBeGreaterThanOrEqual(1);
77
+ toolName = `mcp-as-tool-process_${json.items[0].messageSubscriptionKey}`;
78
+ }).toPass(constants_1.defaultAssertionOptions);
79
+ });
80
+ await _8_11_1.test.step('Invoke tool and assert processInstanceKey returned', async () => {
81
+ const body = await (0, mcpHelpers_1.callTool)(apiContext, mcpProcessesUrl, authToken, mcpSessionId, toolName, {});
82
+ (0, test_1.expect)(body.result).toBeDefined();
83
+ (0, test_1.expect)(body.result.isError).not.toBe(true);
84
+ const text = body.result.content[0]?.text ?? '';
85
+ const processInstanceKey = (0, mcpHelpers_1.extractProcessInstanceKey)(text);
86
+ (0, test_1.expect)(processInstanceKey, `Expected a numeric processInstanceKey in tool result, got: ${text}`).not.toBeNull();
87
+ });
88
+ });
89
+ (0, _8_11_1.test)('SC-CALL-02 — Tool arguments become process variables', async () => {
90
+ const apiContext = await (0, apiHelpers_1.getApiRequestContext)();
91
+ let toolName = null;
92
+ let processInstanceKey = null;
93
+ await _8_11_1.test.step('Resolve latest subscription key for mcpAsToolWithInputs', async () => {
94
+ await (0, test_1.expect)(async () => {
95
+ const res = await apiContext.post(messageSubscriptionsSearchUrl, {
96
+ headers: (0, mcpHelpers_1.buildMcpHeaders)(authToken, mcpSessionId),
97
+ data: {
98
+ filter: {
99
+ processDefinitionId: 'mcpAsToolWithInputs',
100
+ messageSubscriptionType: 'START_EVENT',
101
+ },
102
+ sort: [{ field: 'processDefinitionVersion', order: 'desc' }],
103
+ page: { limit: 1 },
104
+ },
105
+ });
106
+ await (0, mcpHelpers_1.assertResponseStatus)(res, 200);
107
+ const json = (await res.json());
108
+ (0, test_1.expect)(json.items.length).toBeGreaterThanOrEqual(1);
109
+ toolName = `mcp-as-tool-with-inputs_${json.items[0].messageSubscriptionKey}`;
110
+ }).toPass(constants_1.defaultAssertionOptions);
111
+ });
112
+ await _8_11_1.test.step('Invoke tool with arguments', async () => {
113
+ const body = await (0, mcpHelpers_1.callTool)(apiContext, mcpProcessesUrl, authToken, mcpSessionId, toolName, { firstName: 'TestUser', amount: 42 });
114
+ (0, test_1.expect)(body.result).toBeDefined();
115
+ (0, test_1.expect)(body.result.isError).not.toBe(true);
116
+ const text = body.result.content[0]?.text ?? '';
117
+ processInstanceKey = (0, mcpHelpers_1.extractProcessInstanceKey)(text);
118
+ (0, test_1.expect)(processInstanceKey).not.toBeNull();
119
+ });
120
+ await _8_11_1.test.step('Verify tool arguments visible as process variables', async () => {
121
+ await (0, test_1.expect)(async () => {
122
+ const varRes = await apiContext.post(variablesSearchUrl, {
123
+ headers: (0, mcpHelpers_1.buildMcpHeaders)(authToken, mcpSessionId),
124
+ data: { filter: { processInstanceKey }, page: { limit: 50 } },
125
+ });
126
+ await (0, mcpHelpers_1.assertResponseStatus)(varRes, 200);
127
+ const varJson = (await varRes.json());
128
+ const varMap = Object.fromEntries(varJson.items.map((v) => [v.name, v.value]));
129
+ (0, test_1.expect)(varMap['firstName']).toBe('"TestUser"');
130
+ (0, test_1.expect)(varMap['amount']).toBe('42');
131
+ }).toPass(constants_1.defaultAssertionOptions);
132
+ });
133
+ });
134
+ (0, _8_11_1.test)('SC-CALL-05 — Calling a non-existent tool returns an error', async () => {
135
+ const apiContext = await (0, apiHelpers_1.getApiRequestContext)();
136
+ const body = await (0, mcpHelpers_1.callTool)(apiContext, mcpProcessesUrl, authToken, mcpSessionId, 'non-existent-tool_000', {});
137
+ const hasJsonRpcError = body.error != null;
138
+ const hasMcpError = body.result?.isError === true;
139
+ (0, test_1.expect)(hasJsonRpcError || hasMcpError, `Expected an error for unknown tool, got: ${JSON.stringify(body)}`).toBe(true);
140
+ });
141
+ (0, _8_11_1.test)('SC-CALL-06 — Calling a stale tool after redeployment without annotation returns an error', async () => {
142
+ const apiContext = await (0, apiHelpers_1.getApiRequestContext)();
143
+ let staleToolName = null;
144
+ await _8_11_1.test.step('Deploy stale process with MCP annotation', async () => {
145
+ const staleKey = await (0, apiHelpers_1.deployProcess)('./resources/mcp_server_saas/mcp_as_tool_call_stale.bpmn', authToken, 'saas', 'agentic_cluster');
146
+ if (staleKey == null)
147
+ throw new Error('Failed to deploy mcp_as_tool_call_stale.bpmn');
148
+ });
149
+ await _8_11_1.test.step('Wait for stale tool to appear in tools/list', async () => {
150
+ await (0, test_1.expect)(async () => {
151
+ const tools = await (0, mcpHelpers_1.listTools)(apiContext, mcpProcessesUrl, authToken, mcpSessionId);
152
+ const match = tools.find((t) => /^mcp-call-stale_\d+$/.test(t.name));
153
+ (0, test_1.expect)(match).toBeDefined();
154
+ staleToolName = match.name;
155
+ }).toPass(constants_1.defaultAssertionOptions);
156
+ });
157
+ await _8_11_1.test.step('Redeploy without MCP annotation', async () => {
158
+ const disabledKey = await (0, apiHelpers_1.deployProcess)('./resources/mcp_server_saas/mcp_as_tool_call_stale_disabled.bpmn', authToken, 'saas', 'agentic_cluster');
159
+ if (disabledKey == null)
160
+ throw new Error('Failed to deploy mcp_as_tool_call_stale_disabled.bpmn');
161
+ });
162
+ await _8_11_1.test.step('Wait for stale tool to disappear from tools/list', async () => {
163
+ await (0, test_1.expect)(async () => {
164
+ const tools = await (0, mcpHelpers_1.listTools)(apiContext, mcpProcessesUrl, authToken, mcpSessionId);
165
+ (0, test_1.expect)(tools.some((t) => /^mcp-call-stale_\d+$/.test(t.name))).toBe(false);
166
+ }).toPass(constants_1.deletionAssertionOptions);
167
+ });
168
+ await _8_11_1.test.step('Invoke stale tool name and assert error', async () => {
169
+ const body = await (0, mcpHelpers_1.callTool)(apiContext, mcpProcessesUrl, authToken, mcpSessionId, staleToolName, {});
170
+ const hasJsonRpcError = body.error != null;
171
+ const hasMcpError = body.result?.isError === true;
172
+ (0, test_1.expect)(hasJsonRpcError || hasMcpError, `Expected an error invoking stale tool ${staleToolName}, got: ${JSON.stringify(body)}`).toBe(true);
173
+ });
174
+ });
175
+ (0, _8_11_1.test)('SC-CALL-08 — getProcessInstance static tool is accessible on /mcp/processes', async () => {
176
+ const apiContext = await (0, apiHelpers_1.getApiRequestContext)();
177
+ let instanceKey = smokeProcessInstanceKey;
178
+ await _8_11_1.test.step('Resolve process instance key', async () => {
179
+ await (0, test_1.expect)(async () => {
180
+ if (!instanceKey) {
181
+ // Attempt to find any mcpAsToolProcess instance via the search API.
182
+ // Wrapped in toPass so propagation lag doesn't cause a one-shot failure.
183
+ const searchRes = await apiContext.post(processInstancesSearchUrl, {
184
+ headers: (0, mcpHelpers_1.buildMcpHeaders)(authToken, mcpSessionId),
185
+ data: {
186
+ filter: { processDefinitionId: 'mcpAsToolProcess' },
187
+ sort: [{ field: 'processInstanceKey', order: 'desc' }],
188
+ page: { limit: 1 },
189
+ },
190
+ });
191
+ if (searchRes.ok()) {
192
+ const searchJson = (await searchRes.json());
193
+ instanceKey = searchJson.items[0]?.processInstanceKey ?? null;
194
+ }
195
+ }
196
+ (0, test_1.expect)(instanceKey, 'No mcpAsToolProcess instance available for getProcessInstance smoke test').not.toBeNull();
197
+ }).toPass(constants_1.defaultAssertionOptions);
198
+ });
199
+ await _8_11_1.test.step('Call getProcessInstance tool and verify response', async () => {
200
+ const body = await (0, mcpHelpers_1.callTool)(apiContext, mcpProcessesUrl, authToken, mcpSessionId, 'getProcessInstance', { processInstanceKey: instanceKey });
201
+ (0, test_1.expect)(body.result).toBeDefined();
202
+ (0, test_1.expect)(body.result.isError).not.toBe(true);
203
+ const text = body.result.content[0]?.text ?? '';
204
+ (0, test_1.expect)(text).toContain(instanceKey);
205
+ (0, test_1.expect)(text.toLowerCase()).toMatch(/state|status/);
206
+ });
207
+ });
208
+ });
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
4
+ * one or more contributor license agreements. See the NOTICE file distributed
5
+ * with this work for additional information regarding copyright ownership.
6
+ * Licensed under the Camunda License 1.0. You may not use this file
7
+ * except in compliance with the Camunda License 1.0.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ /*
11
+ * Full end-to-end flow tests for /mcp/processes.
12
+ * Deploy a process, discover via tools/list, invoke via tools/call, verify in Operate.
13
+ */
14
+ const _8_11_1 = require("../../../../fixtures/8.11");
15
+ const test_1 = require("@playwright/test");
16
+ const apiHelpers_1 = require("../../../../utils/apiHelpers");
17
+ const constants_1 = require("../../../../utils/constants");
18
+ const mcpHelpers_1 = require("../../../../utils/mcpHelpers");
19
+ let authToken;
20
+ let mcpProcessesUrl;
21
+ let messageSubscriptionsSearchUrl;
22
+ let processInstancesSearchUrl;
23
+ let mcpSessionId = null;
24
+ _8_11_1.test.describe.configure({ mode: 'parallel' });
25
+ _8_11_1.test.describe('Orchestration Cluster MCP Server — /mcp/processes full E2E flows', () => {
26
+ _8_11_1.test.beforeAll(async () => {
27
+ authToken = await (0, apiHelpers_1.authSaasAPI)(undefined, 'agentic_cluster');
28
+ mcpProcessesUrl = (0, apiHelpers_1.buildZeebeApiUrl)('/mcp/processes', 'saas', 'agentic_cluster');
29
+ messageSubscriptionsSearchUrl = (0, apiHelpers_1.buildZeebeApiUrl)('/v2/message-subscriptions/search', 'saas', 'agentic_cluster');
30
+ processInstancesSearchUrl = (0, apiHelpers_1.buildZeebeApiUrl)('/v2/process-instances/search', 'saas', 'agentic_cluster');
31
+ const apiContext = await (0, apiHelpers_1.getApiRequestContext)();
32
+ mcpSessionId = await (0, mcpHelpers_1.initializeMcpSession)(apiContext, mcpProcessesUrl, authToken, mcpSessionId);
33
+ });
34
+ (0, _8_11_1.test)('SC-E2E-01 — Complete flow: deploy → discover via subscriptions → invoke via tools/call → verify instance in Operate', async () => {
35
+ const apiContext = await (0, apiHelpers_1.getApiRequestContext)();
36
+ let subscriptionKey = null;
37
+ let processInstanceKey = null;
38
+ await _8_11_1.test.step('Deploy process', async () => {
39
+ const processKey = await (0, apiHelpers_1.deployProcess)('./resources/mcp_server_saas/mcp_as_tool_process.bpmn', authToken, 'saas', 'agentic_cluster');
40
+ (0, test_1.expect)(processKey).not.toBeNull();
41
+ });
42
+ await _8_11_1.test.step('Discover tool via message-subscriptions search', async () => {
43
+ await (0, test_1.expect)(async () => {
44
+ const res = await apiContext.post(messageSubscriptionsSearchUrl, {
45
+ headers: (0, mcpHelpers_1.buildMcpHeaders)(authToken, mcpSessionId),
46
+ data: {
47
+ filter: {
48
+ processDefinitionId: 'mcpAsToolProcess',
49
+ messageSubscriptionType: 'START_EVENT',
50
+ },
51
+ sort: [{ field: 'processDefinitionVersion', order: 'desc' }],
52
+ page: { limit: 1 },
53
+ },
54
+ });
55
+ await (0, mcpHelpers_1.assertResponseStatus)(res, 200);
56
+ const json = (await res.json());
57
+ (0, test_1.expect)(json.items.length).toBeGreaterThanOrEqual(1);
58
+ subscriptionKey = String(json.items[0].messageSubscriptionKey);
59
+ }).toPass(constants_1.defaultAssertionOptions);
60
+ });
61
+ const expectedToolName = `mcp-as-tool-process_${subscriptionKey}`;
62
+ await _8_11_1.test.step('Confirm tool appears in tools/list', async () => {
63
+ await (0, test_1.expect)(async () => {
64
+ const tools = await (0, mcpHelpers_1.listTools)(apiContext, mcpProcessesUrl, authToken, mcpSessionId);
65
+ (0, test_1.expect)(tools.some((t) => t.name === expectedToolName)).toBe(true);
66
+ }).toPass(constants_1.defaultAssertionOptions);
67
+ });
68
+ await _8_11_1.test.step('Invoke tool via tools/call', async () => {
69
+ const body = await (0, mcpHelpers_1.callTool)(apiContext, mcpProcessesUrl, authToken, mcpSessionId, expectedToolName, {});
70
+ (0, test_1.expect)(body.result).toBeDefined();
71
+ (0, test_1.expect)(body.result.isError).not.toBe(true);
72
+ const text = body.result.content[0]?.text ?? '';
73
+ processInstanceKey = (0, mcpHelpers_1.extractProcessInstanceKey)(text);
74
+ (0, test_1.expect)(processInstanceKey, `Expected processInstanceKey in tools/call result, got: ${text}`).not.toBeNull();
75
+ });
76
+ await _8_11_1.test.step('Verify process instance visible in Operate', async () => {
77
+ await (0, test_1.expect)(async () => {
78
+ const searchRes = await apiContext.post(processInstancesSearchUrl, {
79
+ headers: (0, mcpHelpers_1.buildMcpHeaders)(authToken, mcpSessionId),
80
+ data: { filter: { processInstanceKey } },
81
+ });
82
+ await (0, mcpHelpers_1.assertResponseStatus)(searchRes, 200);
83
+ const searchJson = (await searchRes.json());
84
+ (0, test_1.expect)(searchJson.items.length).toBeGreaterThanOrEqual(1);
85
+ (0, test_1.expect)(searchJson.items[0].processInstanceKey).toBe(processInstanceKey);
86
+ }).toPass(constants_1.defaultAssertionOptions);
87
+ });
88
+ });
89
+ (0, _8_11_1.test)('SC-E2E-03 — Redeploying a process supersedes the old subscription; the new tool is discoverable and callable', async () => {
90
+ // Intra-process redeployment: new version supersedes the previous message
91
+ // subscription, so v1 disappears from tools/list and v2 takes its place.
92
+ const apiContext = await (0, apiHelpers_1.getApiRequestContext)();
93
+ let v1SubscriptionKey = null;
94
+ let v2ToolName = null;
95
+ await _8_11_1.test.step('Deploy v1 of mcpE2EFlowTool', async () => {
96
+ const v1Key = await (0, apiHelpers_1.deployProcess)('./resources/mcp_server_saas/mcp_e2e_v1.bpmn', authToken, 'saas', 'agentic_cluster');
97
+ if (v1Key == null)
98
+ throw new Error('Failed to deploy mcp_e2e_v1.bpmn');
99
+ });
100
+ await _8_11_1.test.step('Wait for v1 subscription and capture key', async () => {
101
+ await (0, test_1.expect)(async () => {
102
+ const res = await apiContext.post(messageSubscriptionsSearchUrl, {
103
+ headers: (0, mcpHelpers_1.buildMcpHeaders)(authToken, mcpSessionId),
104
+ data: {
105
+ filter: {
106
+ processDefinitionId: 'mcpE2EFlowTool',
107
+ messageSubscriptionType: 'START_EVENT',
108
+ },
109
+ sort: [{ field: 'processDefinitionVersion', order: 'desc' }],
110
+ page: { limit: 1 },
111
+ },
112
+ });
113
+ await (0, mcpHelpers_1.assertResponseStatus)(res, 200);
114
+ const json = (await res.json());
115
+ (0, test_1.expect)(json.items.length).toBeGreaterThanOrEqual(1);
116
+ v1SubscriptionKey = String(json.items[0].messageSubscriptionKey);
117
+ }).toPass(constants_1.defaultAssertionOptions);
118
+ });
119
+ const v1ToolName = `mcp-e2e-flow-tool_${v1SubscriptionKey}`;
120
+ await _8_11_1.test.step('Confirm v1 tool appears in tools/list', async () => {
121
+ await (0, test_1.expect)(async () => {
122
+ const tools = await (0, mcpHelpers_1.listTools)(apiContext, mcpProcessesUrl, authToken, mcpSessionId);
123
+ (0, test_1.expect)(tools.some((t) => t.name === v1ToolName)).toBe(true);
124
+ }).toPass(constants_1.defaultAssertionOptions);
125
+ });
126
+ await _8_11_1.test.step('Deploy v2 of mcpE2EFlowTool', async () => {
127
+ const v2Key = await (0, apiHelpers_1.deployProcess)('./resources/mcp_server_saas/mcp_e2e_v2.bpmn', authToken, 'saas', 'agentic_cluster');
128
+ if (v2Key == null)
129
+ throw new Error('Failed to deploy mcp_e2e_v2.bpmn');
130
+ });
131
+ await _8_11_1.test.step('Wait for v1 subscription to be superseded and v2 tool to appear', async () => {
132
+ await (0, test_1.expect)(async () => {
133
+ const tools = await (0, mcpHelpers_1.listTools)(apiContext, mcpProcessesUrl, authToken, mcpSessionId);
134
+ const toolNames = tools.map((t) => t.name);
135
+ (0, test_1.expect)(toolNames).not.toContain(v1ToolName);
136
+ const newTool = tools.find((t) => /^mcp-e2e-flow-tool_\d+$/.test(t.name) && t.name !== v1ToolName);
137
+ (0, test_1.expect)(newTool).toBeDefined();
138
+ v2ToolName = newTool.name;
139
+ }).toPass(constants_1.deletionAssertionOptions);
140
+ });
141
+ (0, test_1.expect)(v2ToolName).not.toBe(v1ToolName);
142
+ await _8_11_1.test.step('Invoke v2 tool and assert it starts a process instance', async () => {
143
+ const body = await (0, mcpHelpers_1.callTool)(apiContext, mcpProcessesUrl, authToken, mcpSessionId, v2ToolName, {});
144
+ (0, test_1.expect)(body.result).toBeDefined();
145
+ (0, test_1.expect)(body.result.isError, `Expected v2 tool ${v2ToolName} to be callable, got: ${JSON.stringify(body)}`).not.toBe(true);
146
+ const text = body.result.content[0]?.text ?? '';
147
+ const pik = (0, mcpHelpers_1.extractProcessInstanceKey)(text);
148
+ (0, test_1.expect)(pik, `Expected processInstanceKey in v2 tool result, got: ${text}`).not.toBeNull();
149
+ });
150
+ });
151
+ });