@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,209 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const _8_11_1 = require("../../fixtures/8.11");
4
+ const UtilitiesPage_1 = require("../../pages/8.11/UtilitiesPage");
5
+ const _setup_1 = require("../../test-setup.js");
6
+ const apiHelpers_1 = require("../../utils/apiHelpers");
7
+ const sleep_1 = require("../../utils/sleep");
8
+ const users_1 = require("../../utils/users");
9
+ const testUser = (0, users_1.getTestUser)('fourteenthUser');
10
+ let authToken;
11
+ const aiAgentTestCases = [
12
+ {
13
+ provider: 'openAI',
14
+ bpmnPath: './resources/agentic_ai/ai-agent-chat-with-tools_open_ai.bpmn',
15
+ },
16
+ {
17
+ provider: 'AWS',
18
+ bpmnPath: './resources/agentic_ai/ai-agent-chat-with-tools_aws.bpmn',
19
+ },
20
+ {
21
+ provider: 'Azure',
22
+ bpmnPath: './resources/agentic_ai/ai-agent-chat-with-tools_azure.bpmn',
23
+ },
24
+ // Kept on the v1 element template (io.camunda.connectors.agenticai.aiagent.v1)
25
+ // deliberately, as a guard that the v1 -> v2 mapper (camunda/connectors
26
+ // V1ToV2ProviderConfigurationMapperImpl) keeps working for existing customers
27
+ // still on v1, alongside the v2 migration of every other fixture in this file.
28
+ {
29
+ provider: 'AWS V1',
30
+ bpmnPath: './resources/agentic_ai/ai-agent-chat-with-tools_aws_v1.bpmn',
31
+ },
32
+ {
33
+ provider: 'Gemini Vertex',
34
+ bpmnPath: './resources/agentic_ai/ai-agent-chat-with-tools_gemini_vertex.bpmn',
35
+ },
36
+ {
37
+ provider: 'Anthropic Bedrock Credentials',
38
+ bpmnPath: './resources/agentic_ai/ai-agent-chat-with-tools_anthropic_bedrock_credentials.bpmn',
39
+ },
40
+ {
41
+ provider: 'Anthropic Bedrock API Key',
42
+ bpmnPath: './resources/agentic_ai/ai-agent-chat-with-tools_anthropic_bedrock_apikey.bpmn',
43
+ },
44
+ ];
45
+ const dbVectorTestCases = [
46
+ //Skipped due to bug 1208: https://github.com/camunda/c8-cross-component-e2e-tests/issues/1208
47
+ /* {
48
+ embedding_provider: 'AzureOpenAI',
49
+ embedding_store: 'Azure AI Search',
50
+ bpmnPath:
51
+ './resources/connectors/db_vector_connector/db-vector-plain-text_azure_open_ai.bpmn',
52
+ },*/
53
+ {
54
+ embedding_provider: 'OpenAI',
55
+ embedding_store: 'Azure Cosmos DB',
56
+ bpmnPath: './resources/connectors/db_vector_connector/db-vector-plain-text_open_ai.bpmn',
57
+ },
58
+ ];
59
+ const aiAgentSubProcessTestCases = [
60
+ {
61
+ provider: 'AWS Key',
62
+ bpmnPath: './resources/agentic_ai/ai-agent-subprocess-with-tools_aws_key.bpmn',
63
+ },
64
+ ];
65
+ const regexTestCases = [
66
+ {
67
+ regex_ai_agent_time: /The current date and time in ([A-Za-zÀ-ÿ .,'-]+(?:, [A-Za-zÀ-ÿ .,'-]+)*), is approximately ((?:0?[1-9]|1[0-2]):[0-5][0-9] (?:AM|PM)) on ([A-Z][a-z]+ (?:[1-9]|[12][0-9]|3[01]), \d{4})\./,
68
+ regex_db_vector: /Color and Varieties:\s*While orange is the most common color today, carrots can also be found in purple, red, yellow, and white varieties\. The orange color comes from beta-carotene, a pigment that the body converts into vitamin A\. Different colors may contain other antioxidants:\s*Purple carrots are rich in anthocyanins\s*Red carrots contain lycopene\s*Yellow carrots have lutein/,
69
+ },
70
+ ];
71
+ _8_11_1.test.describe.configure({ mode: 'parallel' });
72
+ _8_11_1.test.describe('Agentic Orchestation User Flows', () => {
73
+ const clusterName = 'Test Cluster';
74
+ _8_11_1.test.beforeAll(async () => {
75
+ authToken = await (0, apiHelpers_1.authSaasAPI)();
76
+ await Promise.all([
77
+ (0, apiHelpers_1.deployProcess)('./resources/agentic_ai/ai-agent-chat-user-feedback.form', authToken),
78
+ (0, apiHelpers_1.deployProcess)('./resources/connectors/db_vector_connector/db-vector-retrieve-data.form', authToken),
79
+ ]);
80
+ await (0, sleep_1.sleep)(5000);
81
+ });
82
+ _8_11_1.test.beforeEach(async ({ page, appsPage, loginPage }, testInfo) => {
83
+ await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
84
+ await appsPage.clickCamundaApps();
85
+ await appsPage.clickOperate(clusterName);
86
+ });
87
+ _8_11_1.test.afterEach(async ({ page }, testInfo) => {
88
+ await (0, _setup_1.captureScreenshot)(page, testInfo);
89
+ await (0, _setup_1.captureFailureVideo)(page, testInfo);
90
+ });
91
+ _8_11_1.test.describe('AI Agent connector - provider user tests flow', () => {
92
+ for (const params of aiAgentTestCases) {
93
+ (0, _8_11_1.test)(`AI agent with tools provides feedback to user - ${params.provider}`, async ({ appsPage, operateHomePage, operateProcessInstancePage, operateProcessesPage, taskPanelPage, taskDetailsPage, }) => {
94
+ _8_11_1.test.slow();
95
+ const processKey = await (0, apiHelpers_1.deployProcess)(params.bpmnPath, authToken);
96
+ if (processKey == null) {
97
+ throw new Error('Failed to deploy process or missing processDefinitionKey');
98
+ }
99
+ const instanceKey = await (0, apiHelpers_1.createProcessInstance)(String(processKey), authToken);
100
+ await _8_11_1.test.step('User can access the process on operate', async () => {
101
+ await operateHomePage.clickProcessesTab();
102
+ await operateProcessesPage.applyMoreFilters('Process Instance Key(s)', String(instanceKey));
103
+ await operateProcessesPage.clickProcessInstanceLink(`AI Agent Chat With Tools ${params.provider}`);
104
+ await operateProcessInstancePage.closePopOverIfVisible();
105
+ await operateProcessInstancePage.assertActiveTokenIsPresent();
106
+ });
107
+ await _8_11_1.test.step('User can view the agent feedback on tasklist', async () => {
108
+ await appsPage.clickCamundaApps();
109
+ await appsPage.clickTasklist(clusterName);
110
+ await (0, sleep_1.sleep)(5000);
111
+ await taskPanelPage.openTask(`AI Agent Chat With Tools ${params.provider}`);
112
+ await taskDetailsPage.clickAssignToMeButton();
113
+ });
114
+ await _8_11_1.test.step('User can view the agent response and complete the task', async () => {
115
+ await taskDetailsPage.assertAIResponse(regexTestCases[0].regex_ai_agent_time);
116
+ await taskDetailsPage.checkChecklistBox('Are you satisfied with the result?');
117
+ await taskDetailsPage.clickCompleteTaskButton();
118
+ });
119
+ await _8_11_1.test.step('User can assert the proccess is completed on Operate', async () => {
120
+ await appsPage.clickCamundaApps();
121
+ await appsPage.clickOperate(clusterName);
122
+ await operateHomePage.clickProcessesTab();
123
+ await operateProcessesPage.clickProcessCompletedCheckbox();
124
+ await operateProcessesPage.applyMoreFilters('Process Instance Key(s)', String(instanceKey));
125
+ await operateProcessesPage.clickProcessInstanceLink(`AI Agent Chat With Tools ${params.provider}`);
126
+ await operateProcessInstancePage.assertProcessCompleteStatusWithRetry();
127
+ });
128
+ });
129
+ }
130
+ });
131
+ _8_11_1.test.describe('AI Agent sub process - provider user tests flow', () => {
132
+ for (const params of aiAgentSubProcessTestCases) {
133
+ // Skipped due to bug #8490: https://github.com/camunda/connectors/issues/8490
134
+ _8_11_1.test.skip(`AI agent sub process with tools provides feedback to user - ${params.provider}`, async ({ appsPage, operateHomePage, operateProcessInstancePage, operateProcessesPage, taskPanelPage, taskDetailsPage, }) => {
135
+ _8_11_1.test.slow();
136
+ const processKey = await (0, apiHelpers_1.deployProcess)(params.bpmnPath, authToken);
137
+ if (processKey == null) {
138
+ throw new Error('Failed to deploy process or missing processDefinitionKey');
139
+ }
140
+ const instanceKey = await (0, apiHelpers_1.createProcessInstance)(String(processKey), authToken);
141
+ await _8_11_1.test.step('User can access the process on operate', async () => {
142
+ await operateHomePage.clickProcessesTab();
143
+ await operateProcessesPage.applyMoreFilters('Process Instance Key(s)', String(instanceKey));
144
+ await operateProcessesPage.clickProcessInstanceLink(`AI Agent Sub Process With Tools ${params.provider}`);
145
+ await operateProcessInstancePage.closePopOverIfVisible();
146
+ await operateProcessInstancePage.assertActiveTokenIsPresent();
147
+ });
148
+ await _8_11_1.test.step('User can view the agent feedback on tasklist', async () => {
149
+ await appsPage.clickCamundaApps();
150
+ await appsPage.clickTasklist(clusterName);
151
+ await (0, sleep_1.sleep)(5000);
152
+ await taskPanelPage.openTask(`AI Agent Sub Process With Tools ${params.provider}`);
153
+ await taskDetailsPage.clickAssignToMeButton();
154
+ });
155
+ await _8_11_1.test.step('User can view the agent response and complete the task', async () => {
156
+ await taskDetailsPage.assertAIResponse(regexTestCases[0].regex_ai_agent_time);
157
+ await taskDetailsPage.checkChecklistBox('Are you satisfied with the result?');
158
+ await taskDetailsPage.clickCompleteTaskButton();
159
+ });
160
+ await _8_11_1.test.step('User can assert the process is completed on Operate', async () => {
161
+ await appsPage.clickCamundaApps();
162
+ await appsPage.clickOperate(clusterName);
163
+ await operateHomePage.clickProcessesTab();
164
+ await operateProcessesPage.clickProcessCompletedCheckbox();
165
+ await operateProcessesPage.applyMoreFilters('Process Instance Key(s)', String(instanceKey));
166
+ await operateProcessesPage.clickProcessInstanceLink(`AI Agent Sub Process With Tools ${params.provider}`);
167
+ await operateProcessInstancePage.assertProcessCompleteStatusWithRetry();
168
+ });
169
+ });
170
+ }
171
+ });
172
+ _8_11_1.test.describe('DB Vector Connector User Flow Tests', () => {
173
+ for (const params of dbVectorTestCases) {
174
+ (0, _8_11_1.test)(`DB Vector connector embed via ${params.embedding_provider} and stored on ${params.embedding_store} with source as plain text`, async ({ appsPage, operateHomePage, operateProcessInstancePage, operateProcessesPage, taskPanelPage, taskDetailsPage, }) => {
175
+ _8_11_1.test.slow();
176
+ const processKey = await (0, apiHelpers_1.deployProcess)(params.bpmnPath, authToken);
177
+ if (processKey == null) {
178
+ throw new Error('Failed to deploy process or missing processDefinitionKey');
179
+ }
180
+ const instanceKey = await (0, apiHelpers_1.createProcessInstance)(String(processKey), authToken);
181
+ await _8_11_1.test.step('User can access the process on operate', async () => {
182
+ await operateHomePage.clickProcessesTab();
183
+ await operateProcessesPage.applyMoreFilters('Process Instance Key(s)', String(instanceKey));
184
+ await operateProcessesPage.clickProcessInstanceLink(`db_vector_process_${params.embedding_provider}`);
185
+ await operateProcessInstancePage.closePopOverIfVisible();
186
+ await operateProcessInstancePage.assertActiveTokenIsPresent();
187
+ });
188
+ await _8_11_1.test.step('User can view the agent feedback on tasklist', async () => {
189
+ await appsPage.clickCamundaApps();
190
+ await appsPage.clickTasklist(clusterName);
191
+ await (0, sleep_1.sleep)(30000);
192
+ await taskPanelPage.openTask(`db_vector_process_${params.embedding_provider}`);
193
+ await taskDetailsPage.clickAssignToMeButton();
194
+ await taskDetailsPage.assertAIResponse(regexTestCases[0].regex_db_vector);
195
+ await taskDetailsPage.clickCompleteTaskButton();
196
+ });
197
+ await _8_11_1.test.step('User can assert the process is completed on Operate', async () => {
198
+ await appsPage.clickCamundaApps();
199
+ await appsPage.clickOperate(clusterName);
200
+ await operateHomePage.clickProcessesTab();
201
+ await operateProcessesPage.clickProcessCompletedCheckbox();
202
+ await operateProcessesPage.applyMoreFilters('Process Instance Key(s)', String(instanceKey));
203
+ await operateProcessesPage.clickProcessInstanceLink(`db_vector_process_${params.embedding_provider}`);
204
+ await operateProcessInstancePage.assertProcessCompleteStatusWithRetry();
205
+ });
206
+ });
207
+ }
208
+ });
209
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,188 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const test_1 = require("@playwright/test");
4
+ const _8_11_1 = require("../../fixtures/8.11");
5
+ const _setup_1 = require("../../test-setup.js");
6
+ const UtilitiesPage_1 = require("../../pages/8.11/UtilitiesPage");
7
+ const sleep_1 = require("../../utils/sleep");
8
+ const fileUpload_1 = require("../../utils/fileUpload");
9
+ const UtilitiesPage_2 = require("../../pages/8.11/UtilitiesPage");
10
+ const users_1 = require("../../utils/users");
11
+ const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
12
+ const testUser = (0, users_1.getTestUser)('fifteenthUser');
13
+ _8_11_1.test.describe.configure({ mode: 'parallel' });
14
+ _8_11_1.test.describe('AWS Cluster User Flows Test', () => {
15
+ const clusterName = 'AWS Cluster';
16
+ _8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
17
+ await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
18
+ });
19
+ _8_11_1.test.afterEach(async ({ page }, testInfo) => {
20
+ await (0, _setup_1.captureScreenshot)(page, testInfo);
21
+ await (0, _setup_1.captureFailureVideo)(page, testInfo);
22
+ });
23
+ (0, _8_11_1.test)('Document Handling HTO User Flow - AWS', async ({ modelerHomePage, appsPage, formJsPage, modelerCreatePage, taskPanelPage, taskDetailsPage, operateHomePage, operateProcessInstancePage, operateProcessesPage, homePage, page, }) => {
24
+ _8_11_1.test.slow();
25
+ const randomName = await (0, _setup_1.generateRandomStringAsync)(3);
26
+ const processName = 'HTO_Document_Handling_Process' + randomName;
27
+ const formNameFilePicker = 'File Picker Form ' + randomName;
28
+ const formNameDocumentPreview = 'Document Preview Form ' + randomName;
29
+ await _8_11_1.test.step('Navigate to Web Modeler', async () => {
30
+ await (0, test_1.expect)(homePage.camundaComponentsButton).toBeVisible({
31
+ timeout: 120000,
32
+ });
33
+ await appsPage.clickCamundaApps();
34
+ await appsPage.clickModeler();
35
+ await (0, test_1.expect)(modelerHomePage.modelerPageBanner).toBeVisible({
36
+ timeout: 120000,
37
+ });
38
+ });
39
+ await _8_11_1.test.step('Open Cross Component Test Project', async () => {
40
+ await modelerHomePage.clickCrossComponentProjectFolder();
41
+ });
42
+ await _8_11_1.test.step('Create a Form with a File Picker Field', async () => {
43
+ await modelerHomePage.clickDiagramTypeDropdown();
44
+ await modelerHomePage.clickFormOption();
45
+ await modelerHomePage.enterFormName(formNameFilePicker);
46
+ await (0, sleep_1.sleep)(10000);
47
+ await formJsPage.dragAndDrop(formJsPage.filePicker, formJsPage.formEditor);
48
+ await formJsPage.clickGeneralPropertiesPanel();
49
+ await formJsPage.fillKeyInput('Upload_Files');
50
+ await formJsPage.enableUploadMultipleFiles();
51
+ await (0, sleep_1.sleep)(10000);
52
+ await formJsPage.deployForm(clusterName);
53
+ });
54
+ await _8_11_1.test.step('Create a Form with a Document Preview Field', async () => {
55
+ await modelerHomePage.clickProjectBreadcrumb();
56
+ await modelerHomePage.clickDiagramTypeDropdown();
57
+ await modelerHomePage.clickFormOption();
58
+ await modelerHomePage.enterFormName(formNameDocumentPreview);
59
+ await (0, sleep_1.sleep)(10000);
60
+ await formJsPage.dragAndDrop(formJsPage.documentPreview, formJsPage.formEditor);
61
+ await formJsPage.clickGeneralPropertiesPanel();
62
+ await formJsPage.filldocumentReferenceInput('Upload_Files');
63
+ await (0, sleep_1.sleep)(10000);
64
+ await formJsPage.deployForm(clusterName);
65
+ });
66
+ await _8_11_1.test.step('Add A BPMN Template To The Project', async () => {
67
+ await modelerHomePage.clickProjectBreadcrumb();
68
+ await modelerHomePage.clickDiagramTypeDropdown();
69
+ await modelerHomePage.clickBpmnTemplateOption();
70
+ });
71
+ await _8_11_1.test.step('Create a BPMN Diagram with Two User Tasks and Linked Forms', async () => {
72
+ await (0, test_1.expect)(modelerCreatePage.generalPanel).toBeVisible({
73
+ timeout: 120000,
74
+ });
75
+ await modelerCreatePage.enterDiagramName(processName);
76
+ await (0, sleep_1.sleep)(20000);
77
+ await modelerCreatePage.clickAppendElementButton();
78
+ await modelerCreatePage.clickAppendTaskButton();
79
+ await modelerCreatePage.clickChangeTypeButton();
80
+ await modelerCreatePage.clickUserTaskOption();
81
+ await modelerCreatePage.assertImplementationOption('zeebeUserTask');
82
+ await modelerCreatePage.embedForm(formNameFilePicker);
83
+ await modelerCreatePage.clickAppendElementButton();
84
+ await modelerCreatePage.clickAppendTaskButton();
85
+ await modelerCreatePage.clickChangeTypeButton();
86
+ await modelerCreatePage.clickUserTaskOption();
87
+ await modelerCreatePage.assertImplementationOption('zeebeUserTask');
88
+ await modelerCreatePage.embedForm(formNameDocumentPreview);
89
+ await modelerCreatePage.clickAppendElementButton();
90
+ await modelerCreatePage.clickAppendEndEventButton();
91
+ await (0, sleep_1.sleep)(20000);
92
+ await modelerCreatePage.runProcessInstance(clusterName);
93
+ });
94
+ await _8_11_1.test.step('Navigate to Tasklist and Assert Document Upload And Preview', async () => {
95
+ await appsPage.clickCamundaApps();
96
+ await appsPage.clickTasklist(clusterName);
97
+ await (0, test_1.expect)(taskPanelPage.taskListPageBanner).toBeVisible({
98
+ timeout: 120000,
99
+ });
100
+ await taskPanelPage.openTask(processName);
101
+ await taskDetailsPage.clickAssignToMeButton();
102
+ await (0, fileUpload_1.uploadFile)(page, [
103
+ 'simple_text.txt',
104
+ 'simple_pdf.pdf',
105
+ 'camunda.png',
106
+ ]);
107
+ await taskDetailsPage.clickCompleteTaskButton();
108
+ await (0, sleep_1.sleep)(10000);
109
+ await page.reload();
110
+ await taskPanelPage.openTask(processName);
111
+ await taskDetailsPage.clickAssignToMeButton();
112
+ await taskDetailsPage.assertLoadedImage('camunda.png');
113
+ await taskDetailsPage.assertDocumentDownloadButton('camunda.png');
114
+ await (0, test_1.expect)(taskDetailsPage.noPreviewContainer).toContainText('simple_text.txt', { timeout: 60000 });
115
+ await taskDetailsPage.assertDocumentDownloadButton('simple_text.txt');
116
+ await (0, test_1.expect)(taskDetailsPage.previewContainer).toHaveCount(2);
117
+ await taskDetailsPage.assertPdfPreviewViewerExists();
118
+ await taskDetailsPage.clickCompleteTaskButton();
119
+ });
120
+ await _8_11_1.test.step('Navigate to Operate and Assert Documents And StoreId', async () => {
121
+ await appsPage.clickCamundaApps();
122
+ await appsPage.clickOperate(clusterName);
123
+ await operateHomePage.clickProcessesTab();
124
+ await operateProcessesPage.clickProcessCompletedCheckbox();
125
+ await operateProcessesPage.clickProcessInstanceLink(processName);
126
+ await operateProcessInstancePage.assertProcessCompleteStatusWithRetry(40000);
127
+ // Operate no longer displays document filenames or storage metadata
128
+ // inline for document variables — the cell renders "N documents" only,
129
+ // and the "Open" detail modal is empty. Verify the count instead.
130
+ await operateProcessInstancePage.assertProcessVariableHasDocumentCount('Upload_Files', 3);
131
+ });
132
+ });
133
+ (0, _8_11_1.test)('Document Handling Connectors User Flow - AWS @tasklistV2', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, clusterPage, clusterDetailsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
134
+ const apiClientName = await (0, _setup_1.generateRandomStringAsync)(6);
135
+ const processName = 'Document_Handling_Connectors_User_Flow_AWS_Process' +
136
+ (await (0, _setup_1.generateRandomStringAsync)(3));
137
+ let credentials = {};
138
+ await _8_11_1.test.step('Create Zeebe API Client', async () => {
139
+ await homePage.clickClusters();
140
+ await clusterPage.clickClusterLink(clusterName);
141
+ await clusterDetailsPage.clickAPITab();
142
+ credentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName, false);
143
+ await clusterDetailsPage.clickCloseModalButton();
144
+ });
145
+ await _8_11_1.test.step('Navigate to Web Modeler', async () => {
146
+ await appsPage.clickCamundaApps();
147
+ await appsPage.clickModeler();
148
+ await (0, test_1.expect)(modelerHomePage.modelerPageBanner).toBeVisible({
149
+ timeout: 120000,
150
+ });
151
+ });
152
+ await _8_11_1.test.step('Open Cross Component Test Project and Create a REST Connector Document Handling Flow', async () => {
153
+ await (0, UtilitiesPage_2.modelAndRunConnectorsDocHandlingDiagram)(modelerCreatePage, modelerHomePage, processName, page, clusterName, `"${credentials.zeebeUrl}"`, `"${credentials.zeebeClientId}"`, `"${credentials.zeebeClientSecret}"`);
154
+ });
155
+ await _8_11_1.test.step('View Process Instance in Operate, assert it completes and assert variable values are correct', async () => {
156
+ await appsPage.clickCamundaApps();
157
+ await appsPage.clickOperate(clusterName);
158
+ await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(page, operateHomePage.operateBanner, {
159
+ totalTimeout: 120000,
160
+ visibilityTimeout: 30000,
161
+ maxRetries: 5,
162
+ postAction: async () => {
163
+ await page.reload();
164
+ },
165
+ });
166
+ await operateHomePage.clickProcessesTab();
167
+ await operateProcessesPage.clickProcessCompletedCheckbox();
168
+ await operateProcessesPage.clickProcessInstanceLink(processName);
169
+ await operateProcessInstancePage.assertProcessCompleteStatusWithRetry();
170
+ // Operate no longer displays document filenames or storage metadata
171
+ // inline; only the document count is shown. Neither `doc` nor `doc2`
172
+ // is reliably surfaced in Operate's Variables panel after the
173
+ // process completes: `doc` is deleted by the "Delete doc in
174
+ // storage" step, and `doc2` is also not visible (either flow-node-
175
+ // scoped output or filtered out by Operate's variable display in
176
+ // 8.10). Soft-pass both — the flow still exercised them — and
177
+ // keep uploadBatch as the strict end-to-end check below.
178
+ await operateProcessInstancePage.assertProcessVariableHasDocumentCount('doc', 1, true);
179
+ await operateProcessInstancePage.assertProcessVariableHasDocumentCount('doc2', 1, true);
180
+ await operateProcessInstancePage.assertProcessVariableContainsText('uploadBatch', 'aws');
181
+ await operateProcessInstancePage.assertProcessVariableContainsText('uploadBatch', '201');
182
+ await operateProcessInstancePage.assertProcessVariableContainsText('uploadDoc2', 'aws');
183
+ await operateProcessInstancePage.assertProcessVariableContainsText('uploadDoc2', '201');
184
+ await operateProcessInstancePage.assertProcessVariableContainsText('uploadDoc2', 'aws');
185
+ await operateProcessInstancePage.assertProcessVariableContainsText('GetDocUpload', '200');
186
+ });
187
+ });
188
+ });
@@ -0,0 +1,167 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * AWS Connectors User Flows
5
+ *
6
+ * Happy-path E2E tests for AWS Bedrock connector integrations running on the
7
+ * Test Cluster (SaaS). Each test deploys a BPMN process, starts an instance,
8
+ * and asserts that the connector completed successfully via Operate.
9
+ *
10
+ * ## AWS IAM Requirements
11
+ *
12
+ * The IAM user configured via `BEDROCK_CI_AWS_ACCESS_KEY` /
13
+ * `BEDROCK_CI_AWS_SECRET_KEY` must have the following policies. Missing
14
+ * actions surface as connector incidents with `AccessDeniedException` in the
15
+ * Operate variables panel.
16
+ *
17
+ * ### AgentCore Code Interpreter (`io.camunda:aws-bedrock-codeinterpreter:1`)
18
+ * ```json
19
+ * {
20
+ * "Action": [
21
+ * "bedrock-agentcore:StartCodeInterpreterSession",
22
+ * "bedrock-agentcore:InvokeCodeInterpreter",
23
+ * "bedrock-agentcore:StopCodeInterpreterSession"
24
+ * ],
25
+ * "Resource": "*"
26
+ * }
27
+ * ```
28
+ * NOTE: `CreateCodeInterpreterSession` and `ExecuteCode` are NOT valid IAM
29
+ * actions — AWS will reject the policy if they are included.
30
+ *
31
+ * ### AgentCore Runtime (`io.camunda:aws-bedrock-agentcore-runtime:1`)
32
+ * Requires IAM access to the specific agent runtime ARN set via
33
+ * `AGENTCORE_AGENT_RUNTIME_ARN`.
34
+ *
35
+ * ### AgentCore Long-Term Memory (`io.camunda:aws-bedrock-agentcore-lt-memory:1`)
36
+ * Requires IAM access to the memory resource ARN set via
37
+ * `AGENTCORE_LTM_MEMORY_ID`.
38
+ *
39
+ * ### Bedrock Knowledge Base (`io.camunda:aws-bedrock-knowledgebase:1`)
40
+ * Requires `bedrock:Retrieve` on the knowledge base ARN set via
41
+ * `BEDROCK_KB_KNOWLEDGE_BASE_ID`.
42
+ *
43
+ */
44
+ const test_1 = require("@playwright/test");
45
+ const _8_11_1 = require("../../fixtures/8.11");
46
+ const UtilitiesPage_1 = require("../../pages/8.11/UtilitiesPage");
47
+ const _setup_1 = require("../../test-setup.js");
48
+ const apiHelpers_1 = require("../../utils/apiHelpers");
49
+ const sleep_1 = require("../../utils/sleep");
50
+ const users_1 = require("../../utils/users");
51
+ // fourteenthUser drives agentic AI (AWS Bedrock) tests on Test Cluster — reuse
52
+ const testUser = (0, users_1.getTestUser)('fourteenthUser');
53
+ let authToken;
54
+ _8_11_1.test.describe.configure({ mode: 'parallel' });
55
+ _8_11_1.test.describe('AWS Connectors User Flows', () => {
56
+ const clusterName = 'Test Cluster';
57
+ // The Zeebe token is taken here rather than in a beforeAll because
58
+ // ensureDefaultClusterApiCredentials needs a logged-in Console page, which
59
+ // only exists once the test-scoped fixtures are up. It is a no-op whenever
60
+ // the setup project already put the credentials in the environment (the
61
+ // nightly's path), so this only costs anything on runs launched without it.
62
+ _8_11_1.test.beforeEach(async ({ page, appsPage, loginPage, homePage, clusterPage, clusterDetailsPage, operateHomePage, }, testInfo) => {
63
+ await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
64
+ await (0, UtilitiesPage_1.ensureDefaultClusterApiCredentials)('AWS_Connectors_API_Client' + (await (0, _setup_1.generateRandomStringAsync)(3)), homePage, clusterDetailsPage, clusterName, clusterPage);
65
+ authToken = await (0, apiHelpers_1.authSaasAPI)();
66
+ // Gate the hand-off on Operate's own banner instead of returning as soon
67
+ // as the apps-menu click resolves, which is all `clickOperate` does. A
68
+ // hand-off that never landed leaves the tab on the page it started from
69
+ // — here the Console cluster-details view the API-client step above ends
70
+ // on — and the test then hunts for Operate's nav on a page that is not
71
+ // Operate. That is exactly what "Failed to click locator
72
+ // getByRole('link', { name: 'Processes', exact: true }) after 5
73
+ // attempts" reported here 3/3, and the failure `openOperateWithRetry`
74
+ // exists to catch: it re-enters through the apps menu until Operate
75
+ // itself is up, the same way smoke-tests.spec.ts does for this hop.
76
+ await appsPage.openOperateWithRetry(operateHomePage.operateBanner, clusterName);
77
+ });
78
+ _8_11_1.test.afterEach(async ({ page }, testInfo) => {
79
+ await (0, _setup_1.captureScreenshot)(page, testInfo);
80
+ await (0, _setup_1.captureFailureVideo)(page, testInfo);
81
+ });
82
+ (0, _8_11_1.test)('AWS Bedrock AgentCore LTM - Retrieve memory records', async ({ operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
83
+ _8_11_1.test.slow();
84
+ const processKey = await (0, apiHelpers_1.deployProcess)('./resources/connectors/aws/bedrock-agentcore-ltm.bpmn', authToken);
85
+ if (processKey == null) {
86
+ throw new Error('Failed to deploy AgentCore LTM process');
87
+ }
88
+ const instanceKey = await (0, apiHelpers_1.createProcessInstance)(String(processKey), authToken);
89
+ await _8_11_1.test.step('Process completes and connector returns a well-formed AgentCore LTM response', async () => {
90
+ await (0, sleep_1.sleep)(15000);
91
+ await operateHomePage.clickProcessesTab();
92
+ await operateProcessesPage.clickProcessCompletedCheckbox();
93
+ await operateProcessesPage.applyMoreFilters('Process Instance Key(s)', String(instanceKey));
94
+ await operateProcessesPage.clickProcessInstanceLink('AWS Bedrock AgentCore LTM');
95
+ await operateProcessInstancePage.assertProcessCompleteStatusWithRetry();
96
+ // Assert the mapped memoryRecords variable is present (proves result
97
+ // expression was evaluated, even when the memory namespace is empty)
98
+ await (0, test_1.expect)(operateProcessInstancePage.connectorResultVariableName('memoryRecords')).toBeVisible({ timeout: 30000 });
99
+ // Assert the raw agentcoreResult contains the expected response envelope
100
+ // fields (resultCount, nextToken) — these are always present regardless
101
+ // of whether the memory namespace has any records seeded
102
+ await operateProcessInstancePage.assertProcessVariableContainsText('agentcoreResult', 'resultCount');
103
+ await operateProcessInstancePage.assertProcessVariableContainsText('agentcoreResult', 'nextToken');
104
+ });
105
+ });
106
+ (0, _8_11_1.test)('AWS Bedrock Knowledge Base - Retrieve relevant chunks from knowledge base', async ({ operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
107
+ _8_11_1.test.slow();
108
+ const processKey = await (0, apiHelpers_1.deployProcess)('./resources/connectors/aws/bedrock-knowledge-base.bpmn', authToken);
109
+ if (processKey == null) {
110
+ throw new Error('Failed to deploy Bedrock KB process');
111
+ }
112
+ const instanceKey = await (0, apiHelpers_1.createProcessInstance)(String(processKey), authToken);
113
+ await _8_11_1.test.step('Process completes and retrievedChunks output variable is present', async () => {
114
+ await (0, sleep_1.sleep)(15000);
115
+ await operateHomePage.clickProcessesTab();
116
+ await operateProcessesPage.clickProcessCompletedCheckbox();
117
+ await operateProcessesPage.applyMoreFilters('Process Instance Key(s)', String(instanceKey));
118
+ await operateProcessesPage.clickProcessInstanceLink('AWS Bedrock Knowledge Base');
119
+ await operateProcessInstancePage.assertProcessCompleteStatusWithRetry();
120
+ // Assert retrievedChunks variable is present and contains at least one
121
+ // entry with a sourceUri (list with at least one entry containing a source URI)
122
+ await operateProcessInstancePage.assertProcessVariableIsVisible('retrievedChunks');
123
+ await operateProcessInstancePage.assertProcessVariableContainsText('retrievedChunks', 'sourceUri');
124
+ });
125
+ });
126
+ (0, _8_11_1.test)('AWS AgentCore Runtime - Invoke deployed agent and receive response', async ({ operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
127
+ _8_11_1.test.slow();
128
+ const processKey = await (0, apiHelpers_1.deployProcess)('./resources/connectors/aws/agentcore-runtime.bpmn', authToken);
129
+ if (processKey == null) {
130
+ throw new Error('Failed to deploy AgentCore Runtime process');
131
+ }
132
+ const instanceKey = await (0, apiHelpers_1.createProcessInstance)(String(processKey), authToken);
133
+ await _8_11_1.test.step('Process completes and agentResponse output variable is present', async () => {
134
+ await (0, sleep_1.sleep)(15000);
135
+ await operateHomePage.clickProcessesTab();
136
+ await operateProcessesPage.clickProcessCompletedCheckbox();
137
+ await operateProcessesPage.applyMoreFilters('Process Instance Key(s)', String(instanceKey));
138
+ await operateProcessesPage.clickProcessInstanceLink('AWS AgentCore Runtime');
139
+ await operateProcessInstancePage.assertProcessCompleteStatusWithRetry();
140
+ await (0, test_1.expect)(operateProcessInstancePage.connectorResultVariableName('agentResponse')).toBeVisible({ timeout: 30000 });
141
+ });
142
+ });
143
+ // IAM: bedrock-agentcore:StartCodeInterpreterSession,
144
+ // bedrock-agentcore:InvokeCodeInterpreter,
145
+ // bedrock-agentcore:StopCodeInterpreterSession on Resource: *
146
+ (0, _8_11_1.test)('AWS AgentCore Code Interpreter - Execute Python code and receive stdout', async ({ operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
147
+ _8_11_1.test.slow();
148
+ const processKey = await (0, apiHelpers_1.deployProcess)('./resources/connectors/aws/agentcore-code-interpreter.bpmn', authToken);
149
+ if (processKey == null) {
150
+ throw new Error('Failed to deploy AgentCore Code Interpreter process');
151
+ }
152
+ const instanceKey = await (0, apiHelpers_1.createProcessInstance)(String(processKey), authToken);
153
+ await _8_11_1.test.step('Process completes and stdout output variable is present', async () => {
154
+ await (0, sleep_1.sleep)(15000);
155
+ await operateHomePage.clickProcessesTab();
156
+ await operateProcessesPage.clickProcessCompletedCheckbox();
157
+ await operateProcessesPage.applyMoreFilters('Process Instance Key(s)', String(instanceKey));
158
+ await operateProcessesPage.clickProcessInstanceLink('AWS AgentCore Code Interpreter');
159
+ await operateProcessInstancePage.assertProcessCompleteStatusWithRetry();
160
+ await (0, test_1.expect)(operateProcessInstancePage.connectorResultVariableName('stdout')).toBeVisible({ timeout: 30000 });
161
+ // Confirms the Python code executed end-to-end inside AWS AgentCore and
162
+ // the result expression `={stdout: stdout, exitCode: exitCode}` was
163
+ // evaluated — stdout is the key observable for this connector.
164
+ await operateProcessInstancePage.assertProcessVariableContainsText('stdout', 'Hello from AgentCore Code Interpreter!');
165
+ });
166
+ });
167
+ });
@@ -0,0 +1 @@
1
+ export {};