@camunda/e2e-test-suite 0.0.1329 → 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,339 @@
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 TaskPanelPage_1 = require("../../pages/8.11/TaskPanelPage");
7
+ const TaskDetailsPage_1 = require("../../pages/8.11/TaskDetailsPage");
8
+ const OperateHomePage_1 = require("../../pages/8.11/OperateHomePage");
9
+ const AppsPage_1 = require("../../pages/8.11/AppsPage");
10
+ const OperateProcessesPage_1 = require("../../pages/8.11/OperateProcessesPage");
11
+ const OperateProcessInstancePage_1 = require("../../pages/8.11/OperateProcessInstancePage");
12
+ const UtilitiesPage_1 = require("../../pages/8.11/UtilitiesPage");
13
+ const OptimizeHomePage_1 = require("../../pages/8.11/OptimizeHomePage");
14
+ const OptimizeDashboardPage_1 = require("../../pages/8.11/OptimizeDashboardPage");
15
+ const OptimizeCollectionsPage_1 = require("../../pages/8.11/OptimizeCollectionsPage");
16
+ const OptimizeReportPage_1 = require("../../pages/8.11/OptimizeReportPage");
17
+ const users_1 = require("../../utils/users");
18
+ const sleep_1 = require("../../utils/sleep");
19
+ const constants_1 = require("../../utils/constants");
20
+ const testUser = (0, users_1.getTestUser)('thirteenthUser');
21
+ const CLUSTER_NAME = 'Test Cluster';
22
+ _8_11_1.test.describe.configure({ mode: 'parallel' });
23
+ _8_11_1.test.describe('Smoke Tests', () => {
24
+ _8_11_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
25
+ await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
26
+ });
27
+ _8_11_1.test.afterEach(async ({ page }, testInfo) => {
28
+ await (0, _setup_1.captureScreenshot)(page, testInfo);
29
+ await (0, _setup_1.captureFailureVideo)(page, testInfo);
30
+ });
31
+ (0, _8_11_1.test)('Most Common Flow User Flow With All Apps', async ({ page, loginPage, homePage, modelerHomePage, appsPage, modelerCreatePage, formJsPage, }, testInfo) => {
32
+ _8_11_1.test.slow();
33
+ const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
34
+ const formName = 'New form' + randomString;
35
+ const processName = 'Zeebe_User_Task_Process' + randomString;
36
+ const userTaskName = 'zeebeUserTaskWithForm' + randomString;
37
+ const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
38
+ let appTab;
39
+ // One wall-clock deadline for the whole flow. The per-hop budgets below
40
+ // (2 x 8 min Operate import, 10 min Tasklist, 10 x 2 min Optimize import)
41
+ // sum to well over this test's own 36 min timeout, so a run where several
42
+ // hops were merely slow could be killed by the harness mid-wait and
43
+ // reported as a bare "Test timeout of 2160000ms exceeded" — no failing
44
+ // assertion, no named hop, and no screenshot. Clamping each hop to the time
45
+ // actually left makes the slow hop fail with its own diagnostic instead.
46
+ // The reserve covers the login already spent in `beforeEach` plus the
47
+ // afterEach screenshot/video capture, which is what the on-call reads.
48
+ // In a healthy run nothing is clamped: each wait resolves long before the
49
+ // deadline, so `flowBudget` returns the full budget it was asked for.
50
+ const flowDeadline = Date.now() + _8_11_1.test.info().timeout - 120000;
51
+ const flowBudget = (wanted) => Math.max(30000, Math.min(wanted, flowDeadline - Date.now()));
52
+ await _8_11_1.test.step('Navigate to Web Modeler', async () => {
53
+ await (0, test_1.expect)(homePage.camundaComponentsButton).toBeVisible({
54
+ timeout: constants_1.TIMEOUT.medium,
55
+ });
56
+ await appsPage.openModelerWithRetry(modelerHomePage.modelerPageBanner, constants_1.TIMEOUT.navigation);
57
+ });
58
+ await _8_11_1.test.step('Create form to be linked for Zeebe user task', async () => {
59
+ // Ensure the per-user project exists before using it: the shared
60
+ // test-setup project creates it, but if that per-user setup step is
61
+ // absent/flaky the folder is missing and clicking it hangs forever.
62
+ // createCrossComponentProjectFolder clicks into the folder when present
63
+ // (the normal path) and creates it only when it is genuinely missing.
64
+ await (0, UtilitiesPage_1.withSessionRecovery)(page, loginPage, appsPage, modelerHomePage.modelerPageBanner, testUser, (testInfo.workerIndex + 1) * 1000, () => modelerHomePage.createCrossComponentProjectFolder());
65
+ await modelerHomePage.clickDiagramTypeDropdown();
66
+ await modelerHomePage.clickFormOption();
67
+ await modelerHomePage.enterFormNameWithRetry(formName);
68
+ await modelerHomePage.assertFormBreadcrumbVisible(formName);
69
+ await formJsPage.deployForm(CLUSTER_NAME);
70
+ // Wait for the form to propagate to the cluster before it can be embedded
71
+ await (0, sleep_1.sleep)(5000);
72
+ });
73
+ await _8_11_1.test.step('Add a BPMN template to the project', async () => {
74
+ await modelerHomePage.clickProjectBreadcrumb();
75
+ await modelerHomePage.clickDiagramTypeDropdown();
76
+ await modelerHomePage.clickBpmnTemplateOption();
77
+ });
78
+ await _8_11_1.test.step('Create BPMN diagram with two Zeebe user tasks', async () => {
79
+ await (0, test_1.expect)(modelerCreatePage.generalPanel).toBeVisible({
80
+ timeout: constants_1.TIMEOUT.navigation,
81
+ });
82
+ await modelerCreatePage.enterDiagramName(processName);
83
+ await modelerCreatePage.assertDiagramNameSet(processName);
84
+ // Wait for the diagram name change to auto-save before interacting with the canvas
85
+ await (0, sleep_1.sleep)(10000);
86
+ await modelerCreatePage.clickCanvas();
87
+ await modelerCreatePage.clickGeneralPropertiesPanel();
88
+ await modelerCreatePage.clickNameInput();
89
+ await modelerCreatePage.fillNamedInput(processName);
90
+ await modelerCreatePage.clickIdInput();
91
+ await modelerCreatePage.fillIdInput(processName);
92
+ await modelerCreatePage.clickStartEventElement();
93
+ await modelerCreatePage.addParallelUserTasks(2, userTaskName);
94
+ await modelerCreatePage.clickAppendElementButton();
95
+ await modelerCreatePage.clickAppendEndEventButton('parallelGateway');
96
+ await modelerCreatePage.clickUserTask(`${userTaskName}2`);
97
+ await modelerCreatePage.clickEmbedFormButton();
98
+ await modelerCreatePage.clickForm(formName);
99
+ await modelerCreatePage.clickEmbedButton();
100
+ await modelerCreatePage.assertFormEmbedded();
101
+ });
102
+ await _8_11_1.test.step('Deploy and start process instance', async () => {
103
+ await modelerCreatePage.runProcessInstance(CLUSTER_NAME);
104
+ await (0, test_1.expect)(modelerCreatePage.viewProcessInstanceLink).toBeVisible({
105
+ timeout: constants_1.TIMEOUT.navigation,
106
+ });
107
+ });
108
+ await _8_11_1.test.step('Open process instance in Operate and verify it is active', async () => {
109
+ // Start latching the Operate deep link on the CONTEXT before clicking.
110
+ // Playwright raises `popup` only once the popup's initial navigation
111
+ // response has started loading, so a listener attached to the popup page
112
+ // afterwards can never see the deep-link request -- and the auth redirect
113
+ // chain of a session-less tab drops that path, so nothing else observes it
114
+ // either. Missing it leaves the retry loop below polling the Operate app
115
+ // root for the whole budget (see OperateProcessInstancePage).
116
+ const watchedInstanceUrl = (0, OperateProcessInstancePage_1.watchOperateInstanceUrl)(page.context());
117
+ // Open the Operate tab through the retrying helper: it registers the
118
+ // popup wait before each click (`waitForEvent` only sees events raised
119
+ // after it is called, and the tab opens while the click is still
120
+ // resolving) and re-clicks when a click resolved without opening a tab,
121
+ // which is how this step used to sit out its whole 60s budget.
122
+ appTab = await (0, UtilitiesPage_1.openAppTabWithRetry)(page, modelerCreatePage.viewProcessInstanceLink, constants_1.TIMEOUT.navigation);
123
+ const appTabProcessInstancePage = new OperateProcessInstancePage_1.OperateProcessInstancePage(appTab);
124
+ // Capture the deep link first: when the instance is not imported yet
125
+ // Operate 404s and replaces the URL with the processes list, so the
126
+ // retry loop has to re-navigate to this URL instead of reloading the
127
+ // list page (see OperateProcessInstancePage).
128
+ await appTabProcessInstancePage.rememberInstanceUrl(constants_1.TIMEOUT.navigation, watchedInstanceUrl);
129
+ // Poll the instance deep link rather than the page Operate bounced us
130
+ // to: while the Zeebe -> Operate import lags, the deep link 404s and
131
+ // Operate replaces the URL with the processes list, where the instance
132
+ // header can never render. The previous loop spent most of its ~11 min
133
+ // idling on that list page; this re-asks Operate instead.
134
+ //
135
+ // `processImport`, the same budget the COMPLETED-icon gate below uses:
136
+ // both wait on the identical Zeebe -> Operate import, so the shorter
137
+ // `processActive` (300s) made this the first place a lagging import ran
138
+ // out of road ("active icon in Operate timed out after 300000ms" with the
139
+ // instance header never rendering). This does not lengthen the test in
140
+ // practice -- the import lag is paid once, so time spent here is time the
141
+ // COMPLETED-icon gate no longer needs.
142
+ await appTabProcessInstancePage.waitForInstanceLocator(appTabProcessInstancePage.activeIcon, 'active icon', flowBudget(constants_1.TIMEOUT.processImport));
143
+ // The active-icon wait above already proves the instance page rendered,
144
+ // so only the "what's new" popup is left to dismiss. Re-polling for the
145
+ // "Instance History" panel here would spend a second 8 min budget on a
146
+ // weaker version of the same gate.
147
+ await appTabProcessInstancePage.dismissWhatsNewIfVisible();
148
+ });
149
+ await _8_11_1.test.step('Navigate to Tasklist and complete both user tasks', async () => {
150
+ const appTabAppsPage = new AppsPage_1.AppsPage(appTab);
151
+ const appTabTaskPanelPage = new TaskPanelPage_1.TaskPanelPage(appTab);
152
+ const appTabTaskDetailsPage = new TaskDetailsPage_1.TaskDetailsPage(appTab);
153
+ // Gate the hop on Tasklist's own banner, for the same reason the Operate
154
+ // hop below is gated: `clickTasklist` returns as soon as its click
155
+ // resolves, so a hand-off that never landed left this tab on Operate —
156
+ // and the task poll below then spent its whole budget reloading Operate
157
+ // looking for a row that can only exist in Tasklist (see
158
+ // `openTasklistWithRetry`).
159
+ await appTabAppsPage.openTasklistWithRetry(appTabTaskPanelPage.taskListPageBanner, CLUSTER_NAME, constants_1.TIMEOUT.navigation);
160
+ // One budget for the whole Tasklist hop. The two tasks are parallel
161
+ // branches of the same instance, so they are imported together: the
162
+ // first wait absorbs the importer lag and the rest are already present.
163
+ // Per-call budgets are what killed this test -- 10 x 120s inside
164
+ // completeTaskWithRetry's 3 attempts is a 60 min worst case for ONE
165
+ // task, more than the 36 min test timeout, so a lagging importer ran the
166
+ // clock out mid-wait and the run reported "Test timeout exceeded" with no
167
+ // failing assertion instead of naming the task that never arrived.
168
+ const tasklistDeadline = Date.now() + flowBudget(10 * 60 * 1000);
169
+ const tasklistBudget = () => Math.max(30000, tasklistDeadline - Date.now());
170
+ await (0, UtilitiesPage_1.completeTaskWithRetry)(appTabTaskPanelPage, appTabTaskDetailsPage, `${userTaskName}1`, 'Medium', 3, tasklistBudget());
171
+ await (0, UtilitiesPage_1.completeTaskWithRetry)(appTabTaskPanelPage, appTabTaskDetailsPage, `${userTaskName}2`, 'Medium', 3, tasklistBudget());
172
+ // Re-select the row between attempts instead of asserting once: the click
173
+ // in `openTask` can land while the Completed list is still re-rendering
174
+ // after the filter change, which leaves the details panel on the
175
+ // previously selected task (or on its empty state) with nothing left to
176
+ // move it. A single 30s wait then reported
177
+ // "getByTestId('details-info').getByText('<task>') ... element(s) not
178
+ // found". Re-clicking the row is what recovers it, so the assertion
179
+ // itself is unchanged — the details panel must still name the task.
180
+ const assertTaskDetails = async (taskName) => {
181
+ await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(appTab, appTabTaskDetailsPage.detailsInfo.getByText(taskName), `${taskName} in the task details panel`, constants_1.TIMEOUT.medium, false, 3, appTabTaskPanelPage.taskInList(taskName));
182
+ };
183
+ await appTabTaskPanelPage.filterBy('Completed');
184
+ await appTabTaskPanelPage.openTask(`${userTaskName}1`, tasklistBudget());
185
+ await assertTaskDetails(`${userTaskName}1`);
186
+ await appTabTaskPanelPage.openTask(`${userTaskName}2`, tasklistBudget());
187
+ await assertTaskDetails(`${userTaskName}2`);
188
+ });
189
+ await _8_11_1.test.step('Assert process completion in Operate', async () => {
190
+ const appTabAppsPage = new AppsPage_1.AppsPage(appTab);
191
+ const appTabHomePage = new OperateHomePage_1.OperateHomePage(appTab);
192
+ const appTabProcessesPage = new OperateProcessesPage_1.OperateProcessesPage(appTab);
193
+ const appTabProcessInstancePage = new OperateProcessInstancePage_1.OperateProcessInstancePage(appTab);
194
+ // Gate the hop on Operate's own banner: `clickOperate` returns as soon as
195
+ // its click resolves, so a hand-off that never landed left the tab on
196
+ // Tasklist — whose nav also has a "Processes" link, so the next step
197
+ // clicked THAT and then waited out its budget for Operate's Processes
198
+ // view (see `openOperateWithRetry`).
199
+ await appTabAppsPage.openOperateWithRetry(appTabHomePage.operateBanner, CLUSTER_NAME, constants_1.TIMEOUT.navigation);
200
+ await appTabHomePage.clickProcessesTab();
201
+ await (0, test_1.expect)(appTabProcessesPage.processCompletedCheckbox).toBeVisible({
202
+ timeout: constants_1.TIMEOUT.short,
203
+ });
204
+ await appTabProcessesPage.clickProcessCompletedCheckbox();
205
+ await appTabProcessesPage.clickProcessInstanceLink(processName);
206
+ // Poll the instance deep link for the COMPLETED icon, the same way the
207
+ // active-icon gate above does. `assertLocatorVisibleWithRetry` is blind
208
+ // to Operate's 404 bounce: the completed filter also lists still-ACTIVE
209
+ // instances, so this link is often opened before the import has caught
210
+ // up, and each of its 6 attempts then idled a full 120s on a page that
211
+ // could not render the header -- 13 min for only 6 re-asks. This budget
212
+ // re-asks Operate ~16 times and leaves more of the test's 36 min to the
213
+ // Optimize import later on.
214
+ await appTabProcessInstancePage.rememberInstanceUrl(constants_1.TIMEOUT.navigation);
215
+ await appTabProcessInstancePage.waitForInstanceLocator(appTabProcessInstancePage.completedIcon, 'completed icon', flowBudget(constants_1.TIMEOUT.processImport));
216
+ });
217
+ await _8_11_1.test.step('Assert process imported in Optimize and create user task report', async () => {
218
+ const appTabAppsPage = new AppsPage_1.AppsPage(appTab);
219
+ const optimizeHomePage = new OptimizeHomePage_1.OptimizeHomePage(appTab);
220
+ const optimizeCollectionsPage = new OptimizeCollectionsPage_1.OptimizeCollectionsPage(appTab);
221
+ const optimizeReportPage = new OptimizeReportPage_1.OptimizeReportPage(appTab);
222
+ // Gate the hop on Optimize's own banner, for the same reason the Operate
223
+ // and Tasklist hops above are gated: `clickOptimize` returns as soon as
224
+ // its click resolves, so a hand-off that never landed left this tab off
225
+ // Optimize — and the import poll below then spent its whole 20 min
226
+ // budget reloading a page that can never render a process definition
227
+ // (see `openOptimizeWithRetry`).
228
+ await appTabAppsPage.openOptimizeWithRetry(optimizeHomePage.optimizeBanner, CLUSTER_NAME, constants_1.TIMEOUT.navigation);
229
+ // Same path as the Conditional Events spec, which passes on the same
230
+ // org: open Dashboards, then filter and poll there. Checking the
231
+ // Optimize root never found the process on this PR's runs. One round
232
+ // of processLinkAssertion takes about 2 min and up to about 3.5 min,
233
+ // so the rounds are derived from the time the flow has left.
234
+ const optimizeBudget = flowBudget(10 * constants_1.TIMEOUT.optimizeImport);
235
+ const optimizeRounds = Math.max(2, Math.floor(optimizeBudget / 210000));
236
+ await optimizeHomePage.clickDashboardLink();
237
+ await new OptimizeDashboardPage_1.OptimizeDashboardPage(appTab).processLinkAssertion(processName, optimizeRounds);
238
+ await optimizeHomePage.clickCollectionsLink();
239
+ await optimizeCollectionsPage.clickCreateNewButtonWithRetry();
240
+ await optimizeCollectionsPage.clickReportOption();
241
+ await optimizeReportPage.clickProcessSelectionButton();
242
+ await optimizeReportPage.clickUserTaskProcess(processName);
243
+ await (0, test_1.expect)(optimizeReportPage.versionSelection).toBeVisible({
244
+ timeout: constants_1.TIMEOUT.short,
245
+ });
246
+ await optimizeReportPage.clickVersionSelection();
247
+ await optimizeReportPage.clickAlwaysDisplayLatestSelection();
248
+ await optimizeReportPage.clickBlankReportButton();
249
+ await optimizeReportPage.clickCreateReportLink();
250
+ await optimizeReportPage.clickSelectDropdown();
251
+ await optimizeReportPage.clickUserTaskOption();
252
+ await optimizeReportPage.clickHeatMapButton();
253
+ await (0, test_1.expect)(optimizeReportPage.tableOption).toBeVisible({
254
+ timeout: constants_1.TIMEOUT.short,
255
+ });
256
+ await optimizeReportPage.clickTableOption();
257
+ await optimizeReportPage.clickReportName();
258
+ await optimizeReportPage.clearReportName();
259
+ await optimizeReportPage.fillReportName(reportName);
260
+ await optimizeReportPage.clickSaveButton();
261
+ await optimizeHomePage.clickCollectionsLink();
262
+ await (0, test_1.expect)(appTab.getByText(reportName)).toBeVisible({
263
+ timeout: constants_1.TIMEOUT.medium,
264
+ });
265
+ await optimizeCollectionsPage.clickMostRecentProcessReport(reportName);
266
+ // Poll the row count itself across reloads: the user-task instance data
267
+ // arrives on a later Optimize import cycle than the definition, so
268
+ // probing visibility first and then asserting the count once reported
269
+ // "expected 2, received 0" while the import was still in flight.
270
+ // Clamped for the same reason as the import wait above: this is the last
271
+ // hop of the flow and its default 4 x 60s is spent after the slowest
272
+ // wait in the test, so leaving it unclamped re-opens the same overrun
273
+ // the budget above closes. The retry count is unchanged -- only the time
274
+ // each attempt may idle is bounded by what the flow has left.
275
+ const countRetries = 4;
276
+ await optimizeReportPage.assertUserTaskInstanceCountWithRetry(2, appTab, countRetries, Math.floor(flowBudget(countRetries * constants_1.TIMEOUT.navigation) / countRetries));
277
+ });
278
+ });
279
+ (0, _8_11_1.test)('Most Common REST Connector User Flow', async ({ page, loginPage, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, }, testInfo) => {
280
+ _8_11_1.test.slow();
281
+ const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
282
+ const processName = 'REST_Connector_Basic_Auth_Process' + randomString;
283
+ await _8_11_1.test.step('Navigate to Web Modeler', async () => {
284
+ await (0, test_1.expect)(homePage.camundaComponentsButton).toBeVisible({
285
+ timeout: constants_1.TIMEOUT.medium,
286
+ });
287
+ await appsPage.openModelerWithRetry(modelerHomePage.modelerPageBanner, constants_1.TIMEOUT.navigation);
288
+ });
289
+ await _8_11_1.test.step('Open Cross Component Test Project and create a BPMN diagram template', async () => {
290
+ // See note in the flow above: ensure the per-user project exists rather
291
+ // than hanging on a click when the shared setup did not create it.
292
+ await (0, UtilitiesPage_1.withSessionRecovery)(page, loginPage, appsPage, modelerHomePage.modelerPageBanner, testUser, (testInfo.workerIndex + 1) * 1000, () => modelerHomePage.createCrossComponentProjectFolder());
293
+ await modelerHomePage.clickDiagramTypeDropdown();
294
+ await modelerHomePage.clickBpmnTemplateOption();
295
+ });
296
+ await _8_11_1.test.step('Create BPMN diagram with REST Connector using Basic Auth', async () => {
297
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, processName, constants_1.REST_MOCK_BASIC_AUTH_URL, 'basic', '{message:response.body.message}', 'result', { username: 'username', password: 'password' });
298
+ });
299
+ await _8_11_1.test.step('Deploy and start process instance', async () => {
300
+ await modelerCreatePage.runProcessInstance(CLUSTER_NAME);
301
+ await (0, test_1.expect)(modelerCreatePage.viewProcessInstanceLink).toBeVisible({
302
+ timeout: constants_1.TIMEOUT.navigation,
303
+ });
304
+ });
305
+ await _8_11_1.test.step('Assert process completes in Operate and verify connector result', async () => {
306
+ // Context-level deep-link watcher before the click — same reason as in
307
+ // the flow above: the popup event fires too late to observe the
308
+ // deep-link request, so without this the retry loop below can only poll
309
+ // the Operate app root (see OperateProcessInstancePage).
310
+ const watchedInstanceUrl = (0, OperateProcessInstancePage_1.watchOperateInstanceUrl)(page.context());
311
+ // Same retrying open as in the flow above: the listener goes up before
312
+ // the click, and a click that resolved without opening a tab is retried
313
+ // instead of being waited out.
314
+ const operateTab = await (0, UtilitiesPage_1.openAppTabWithRetry)(page, modelerCreatePage.viewProcessInstanceLink, constants_1.TIMEOUT.navigation);
315
+ const operateProcessInstancePage = new OperateProcessInstancePage_1.OperateProcessInstancePage(operateTab);
316
+ // Capture the deep link before Operate can bounce the tab to the
317
+ // processes list on a not-yet-imported instance (see
318
+ // OperateProcessInstancePage) — otherwise every retry below reloads
319
+ // the list page, where the instance header can never render.
320
+ await operateProcessInstancePage.rememberInstanceUrl(constants_1.TIMEOUT.navigation, watchedInstanceUrl);
321
+ // Wait for the COMPLETED icon as the single import gate, polling the deep
322
+ // link so a bounce to the processes list is re-navigated instead of
323
+ // waited out: this tab is opened seconds after the instance starts, so
324
+ // the first query almost always 404s. `assertLocatorVisibleWithRetry`
325
+ // does not know about the bounce and burned 120s per attempt on the list
326
+ // page, which is what reported "completed icon in Operate failed after 6
327
+ // attempts" whenever the import lagged. The popup is dismissed
328
+ // afterwards, once the last re-navigation has settled, so it cannot cover
329
+ // the variables assertions.
330
+ await operateProcessInstancePage.waitForInstanceLocator(operateProcessInstancePage.completedIcon, 'completed icon', constants_1.TIMEOUT.processImport);
331
+ await operateProcessInstancePage.dismissWhatsNewIfVisible();
332
+ await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(operateTab, operateProcessInstancePage.variablesList, 'variable list in Operate', constants_1.TIMEOUT.navigation);
333
+ await (0, test_1.expect)(operateProcessInstancePage.connectorResultVariableName('message')).toBeVisible({ timeout: constants_1.TIMEOUT.navigation });
334
+ await (0, test_1.expect)(operateProcessInstancePage
335
+ .connectorResultVariableName('message')
336
+ .getByText('"Message from Mock!"')).toBeVisible({ timeout: constants_1.TIMEOUT.navigation });
337
+ });
338
+ });
339
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,256 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const test_1 = require("@playwright/test");
7
+ const fs_1 = __importDefault(require("fs"));
8
+ const _8_11_1 = require("../../fixtures/8.11");
9
+ const _setup_1 = require("../../test-setup.js");
10
+ const connectorSecrets_1 = require("../../utils/connectorSecrets");
11
+ const mcpSecrets_1 = require("../../utils/mcpSecrets");
12
+ const UtilitiesPage_1 = require("../../pages/8.11/UtilitiesPage");
13
+ const users_1 = require("../../utils/users");
14
+ const consoleApiHelpers_1 = require("../../utils/consoleApiHelpers");
15
+ _8_11_1.test.describe.configure({ mode: 'parallel' });
16
+ _8_11_1.test.describe('Cluster Setup Tests', () => {
17
+ _8_11_1.test.afterEach(async ({ page }, testInfo) => {
18
+ await (0, _setup_1.captureScreenshot)(page, testInfo);
19
+ await (0, _setup_1.captureFailureVideo)(page, testInfo);
20
+ });
21
+ // Skipped due to bug #29346: https://github.com/camunda/camunda-hub/issues/29346
22
+ _8_11_1.test.skip('Enable Alpha Features', async ({ page, loginPage, consoleOrganizationsPage, homePage, }, testInfo) => {
23
+ _8_11_1.test.skip(process.env.IS_PROD === 'true', 'Skipping test because not required on PROD test org');
24
+ _8_11_1.test.skip(process.env.IS_AG === 'true', 'Skipping test because not required when IS_AG is true');
25
+ await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, users_1.testUsers.mainUser, (testInfo.workerIndex + 1) * 1000);
26
+ await homePage.clickOrganization();
27
+ await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, consoleOrganizationsPage.settingsTab, 'settings tab', 60000, false, 2);
28
+ await consoleOrganizationsPage.enableAlphaFeature('AI-powered features');
29
+ // Confirm the opt-in against Accounts rather than trusting the Console
30
+ // toggle: the AI specs depend on this flag, and a setup that passes without
31
+ // it leaves them failing on a button Web Modeler never renders.
32
+ await (0, consoleApiHelpers_1.waitForAiFeaturesEnabledViaApi)(page);
33
+ });
34
+ (0, _8_11_1.test)('Create Default Cluster', async ({ page, loginPage, homePage, clusterPage, clusterDetailsPage, clusterSecretsPage, }, testInfo) => {
35
+ _8_11_1.test.slow();
36
+ const clusterName = 'Test Cluster';
37
+ const apiClientName = 'Test_API_Client' + (await (0, _setup_1.generateRandomStringAsync)(3));
38
+ await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, users_1.testUsers.mainUser, (testInfo.workerIndex + 1) * 1000);
39
+ if (process.env.IS_PROD === 'true') {
40
+ await clusterPage.createCluster(clusterName);
41
+ await clusterPage.assertClusterHealthyStatusWithRetry(clusterName, 120000, 1500000);
42
+ }
43
+ else {
44
+ const clusterUuid = await (0, consoleApiHelpers_1.ensureClusterViaApi)(page, clusterName);
45
+ await (0, consoleApiHelpers_1.waitForClusterHealthyViaApi)(page, clusterUuid);
46
+ await homePage.clickClusters();
47
+ }
48
+ await clusterPage.clickClusterLink(clusterName);
49
+ await clusterDetailsPage.assertComponentsHealth(undefined, (0, UtilitiesPage_1.consoleSessionRecovery)(page, page.url()));
50
+ // API-client creation is needed whenever this run will also exercise the
51
+ // full-suite pass: many of those specs call the Zeebe REST API directly
52
+ // and need CAMUNDA_OPTIMIZE_BASE_URL for Optimize session login, even
53
+ // though IS_AG=true skips this for the usual smoke-only case.
54
+ if (process.env.IS_AG !== 'true' || process.env.RUN_FULL_SUITE === 'true') {
55
+ await clusterDetailsPage.clickAPITab();
56
+ const zeebeCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName);
57
+ await clusterDetailsPage.clickCloseModalButton();
58
+ if (process.env.RUN_FULL_SUITE === 'true') {
59
+ // Written to disk, not just process.env: the full-suite pass runs as
60
+ // a separate `npm run test` process (see run-tests-smoke-int's
61
+ // action.yml) that does not inherit this process's env mutations.
62
+ // mode 0o600: this file holds a live Zeebe API client secret.
63
+ fs_1.default.writeFileSync('cluster-credentials.json', JSON.stringify(zeebeCredentials), { mode: 0o600 });
64
+ }
65
+ // Deliberately NOT extended to RUN_FULL_SUITE like the API client
66
+ // above: clickConnectorSecretsTab hits the same pre-existing "click
67
+ // after 3 attempts" UI-contention flakiness seen throughout this
68
+ // suite, and here it's on test-setup's blocking critical path -- a
69
+ // transient failure takes down cluster provisioning entirely (and
70
+ // with it, both smoke and the full-suite pass), confirmed on a real
71
+ // run. connectors-user-flows.spec.ts's "Connector Secrets User Flow"
72
+ // tests keep failing in the full-suite pass without this, but that's
73
+ // a bounded, non-blocking loss -- not worth risking the whole run for.
74
+ if (process.env.IS_AG !== 'true') {
75
+ await clusterPage.clickConnectorSecretsTab(clusterName);
76
+ await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.awsSecretsValues);
77
+ await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.openAiSecretsValues);
78
+ await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.gcpSecretsValues);
79
+ await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.azureSecretsValues);
80
+ await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.connectorSecretsValues);
81
+ await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.bedrockKbSecretsValues);
82
+ await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.agentcoreSecretsValues);
83
+ await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.agentcoreLtmSecretsValues);
84
+ await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.bedrockCodeInterpreterSecretsValues);
85
+ await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.anthropicBedrockMantleSecretsValues);
86
+ }
87
+ }
88
+ });
89
+ (0, _8_11_1.test)('Create Agentic Orchestration Cluster', async ({ page, loginPage, homePage, clusterPage, clusterDetailsPage, clusterSecretsPage, }, testInfo) => {
90
+ _8_11_1.test.skip(process.env.IS_PROD === 'true', 'Skipping test because not required on PROD test org');
91
+ _8_11_1.test.skip(process.env.IS_AG === 'true' && process.env.RUN_FULL_SUITE !== 'true', 'Skipping test because not required when IS_AG is true -- unless ' +
92
+ 'RUN_FULL_SUITE also needs this cluster for the MCP suite.');
93
+ _8_11_1.test.slow();
94
+ const clusterName = 'Agentic Orchestration Cluster';
95
+ const apiClientName = 'Test_API_Client' + (await (0, _setup_1.generateRandomStringAsync)(3));
96
+ const mcpClientName = 'MCP_Test_API_Client' + (await (0, _setup_1.generateRandomStringAsync)(3));
97
+ await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, users_1.testUsers.mainUser, (testInfo.workerIndex + 1) * 1000);
98
+ const clusterUuid = await (0, consoleApiHelpers_1.ensureClusterViaApi)(page, clusterName);
99
+ await (0, consoleApiHelpers_1.waitForClusterHealthyViaApi)(page, clusterUuid, 1500000);
100
+ await homePage.clickClusters();
101
+ await clusterPage.clickClusterLink(clusterName);
102
+ await clusterDetailsPage.assertComponentsHealth(undefined, (0, UtilitiesPage_1.consoleSessionRecovery)(page, page.url()));
103
+ // Must happen before the MCP toggle: the restart that toggle triggers is
104
+ // what makes the new audit-log configuration live on the cluster.
105
+ await (0, consoleApiHelpers_1.ensureClientAuditLoggingViaApi)(page, clusterUuid);
106
+ await clusterDetailsPage.clickSettingsTab();
107
+ await clusterDetailsPage.checkMcpSupportToggle();
108
+ // Enabling MCP support restarts the cluster (Console shows a "Restart
109
+ // required" dialog and the cluster is briefly unavailable). Wait for it to
110
+ // come back Healthy before the UI health assertion, which would otherwise
111
+ // abort on the transient Unhealthy state during the restart.
112
+ await (0, consoleApiHelpers_1.waitForClusterRestartHealthyViaApi)(page, clusterUuid, 1500000);
113
+ await homePage.clickClusters();
114
+ await clusterPage.assertClusterHealthyStatusWithRetry(clusterName, undefined, undefined, (0, UtilitiesPage_1.consoleSessionRecovery)(page, page.url()));
115
+ await clusterPage.clickClusterLink(clusterName);
116
+ await clusterDetailsPage.clickAPITab();
117
+ const agenticCredentials = await clusterDetailsPage.createAPIClientAndReturnVariables(apiClientName, true, 'agentic_cluster');
118
+ if (process.env.RUN_FULL_SUITE === 'true') {
119
+ // Written to disk, not just process.env: the full-suite pass runs as
120
+ // a separate `npm run test` process (see run-tests-smoke-int's
121
+ // action.yml) that does not inherit this process's env mutations.
122
+ // mode 0o600: this file holds a live Zeebe API client secret.
123
+ fs_1.default.writeFileSync('agentic-cluster-credentials.json', JSON.stringify(agenticCredentials), { mode: 0o600 });
124
+ }
125
+ await clusterDetailsPage.clickCloseModalButton();
126
+ const mcpCredentials = await clusterDetailsPage.createMCPClientAndReturnVariables(mcpClientName);
127
+ await clusterDetailsPage.clickCloseModalButton();
128
+ await clusterPage.clickConnectorSecretsTab(clusterName);
129
+ await clusterSecretsPage.createSetOfSecrets(clusterName, (0, mcpSecrets_1.mcpSecretsValues)(mcpCredentials));
130
+ });
131
+ (0, _8_11_1.test)('Create AWS Cluster', async ({ page, loginPage, homePage, clusterPage, clusterDetailsPage, clusterSecretsPage, }, testInfo) => {
132
+ _8_11_1.test.slow();
133
+ const clusterName = 'AWS Cluster';
134
+ await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, users_1.testUsers.mainUser, (testInfo.workerIndex + 1) * 1000);
135
+ if (process.env.IS_PROD === 'true') {
136
+ await clusterPage.createCluster(clusterName, 'AWS');
137
+ await clusterPage.assertClusterHealthyStatusWithRetry(clusterName, 120000, 1500000);
138
+ }
139
+ else {
140
+ const clusterUuid = await (0, consoleApiHelpers_1.ensureClusterViaApi)(page, clusterName, 'AWS');
141
+ await (0, consoleApiHelpers_1.waitForClusterHealthyViaApi)(page, clusterUuid, 1500000);
142
+ await homePage.clickClusters();
143
+ }
144
+ await clusterPage.clickClusterLink(clusterName);
145
+ await clusterDetailsPage.assertComponentsHealth(undefined, (0, UtilitiesPage_1.consoleSessionRecovery)(page, page.url()));
146
+ if (process.env.IS_AG !== 'true') {
147
+ await clusterPage.clickConnectorSecretsTab(clusterName);
148
+ await clusterSecretsPage.createSetOfSecrets(clusterName, connectorSecrets_1.connectorSecretsValues);
149
+ }
150
+ });
151
+ // Stagger 5x wider than the other setup tests above, capped at 60s: this
152
+ // loop logs in getTestUsers().length users (up to 27, one per worker) at
153
+ // once, so at 1000ms/worker the whole burst lands inside a ~20-30s window
154
+ // and trips Auth0's rate limiter (AUTH0_RATE_LIMIT, e.g. run 34099726060's
155
+ // User 18 failure) well before loginWithRetry's own 60-90s backoff gets a
156
+ // chance to help. An uncapped 5000ms/worker fixed the rate limit (run
157
+ // 34103380836 had none) but then burned up to 90s of the highest-indexed
158
+ // worker's fixed 12-minute test timeout on pure stagger sleep before its
159
+ // first login attempt, leaving too little budget for the retry loop to
160
+ // recover from an unrelated slow-page timeout (also run 34103380836,
161
+ // User 18 again). The 60s cap keeps most of the wider spread while
162
+ // bounding worst-case pre-login wait to 1/12 of the test budget.
163
+ // The RBA specs hand off to these developer-role users, who cannot assign an
164
+ // environment to a workspace (camunda-hub#28955). Their workspaces must exist
165
+ // before the RBA beforeEach links its cluster to them as the admin main user.
166
+ const rbaHandoffUsers = process.env.IS_AG === 'true' && process.env.RUN_FULL_SUITE !== 'true'
167
+ ? []
168
+ : ['4', '5', '6']
169
+ .map((n) => ({
170
+ username: process.env[`C8_USERNAME_TEST_${n}`] ?? '',
171
+ password: process.env[`C8_PASSWORD_TEST_${n}`] ?? '',
172
+ title: `Create Project Folder for RBA hand-off user TEST_${n}`,
173
+ }))
174
+ .filter((user) => user.username !== '' && user.password !== '');
175
+ for (const [index, user] of [
176
+ ...(0, users_1.getTestUsers)().map((u, i) => ({
177
+ ...u,
178
+ title: `Create Project Folder for User ${i + 1}`,
179
+ })),
180
+ ...rbaHandoffUsers,
181
+ ].entries()) {
182
+ const isRbaHandoffUser = index >= (0, users_1.getTestUsers)().length;
183
+ (0, _8_11_1.test)(user.title, async ({ page, loginPage, homePage, appsPage, modelerHomePage }, testInfo) => {
184
+ const loggedIn = await _8_11_1.test.step('Log in', async () => {
185
+ // GitHub drops a create-organization job output whose value contains
186
+ // a masked secret, which leaves that slot's password empty. Only the
187
+ // specs that log in as this user need its workspace, and they fail
188
+ // on their own login with loginWithRetry's "no password" error.
189
+ if (index > 0 && user.username && !user.password) {
190
+ console.warn(`${user.title}: no password reached the runner`);
191
+ testInfo.annotations.push({
192
+ type: 'warning',
193
+ description: 'Password job output was dropped; no workspace',
194
+ });
195
+ return false;
196
+ }
197
+ try {
198
+ await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, user, Math.min((testInfo.workerIndex + 1) * 5000, 60000));
199
+ return true;
200
+ }
201
+ catch (error) {
202
+ // Every test depends on this setup project. A hand-off slot that
203
+ // this org did not provision (Auth0 rejected it in a PR run) must
204
+ // not block the whole suite; the RBA spec that logs in as that
205
+ // user fails on its own login instead.
206
+ if (!isRbaHandoffUser ||
207
+ !String(error).includes('AUTH0_INVALID_CREDENTIALS')) {
208
+ throw error;
209
+ }
210
+ console.warn(`${user.title}: ${String(error)}`);
211
+ testInfo.annotations.push({
212
+ type: 'warning',
213
+ description: 'Auth0 rejected this hand-off user; no workspace',
214
+ });
215
+ return false;
216
+ }
217
+ });
218
+ if (!loggedIn) {
219
+ return;
220
+ }
221
+ await _8_11_1.test.step('Navigate to Web Modeler', async () => {
222
+ // Camunda Hub replaced Console + Web Modeler on SaaS: it lands on the
223
+ // Modeler home directly and has no app switcher to wait for.
224
+ await (0, test_1.expect)(homePage.camundaComponentsButton.or(homePage.hubHeader)).toBeVisible({
225
+ timeout: 120000,
226
+ });
227
+ await appsPage.openModelerWithRetry(modelerHomePage.modelerPageBanner, 180000, 3, undefined, () => modelerHomePage.dismissBlockingDialog());
228
+ });
229
+ await _8_11_1.test.step('Create Cross Component Project Folder', async () => {
230
+ await (0, UtilitiesPage_1.withSessionRecovery)(page, loginPage, appsPage, modelerHomePage.modelerPageBanner, user, Math.min((testInfo.workerIndex + 1) * 5000, 60000), async () => {
231
+ await homePage.clickSkipCustomization();
232
+ // Reverted the "only User 1 creates" leader-election attempt: it made
233
+ // things worse, not better. Run 34191243820 showed followers still
234
+ // timing out waiting for the folder even well after User 1 (2.9min)
235
+ // had already finished creating it -- not a wait-budget problem, since
236
+ // widening it wouldn't fix a folder that isn't becoming visible to
237
+ // other sessions at all. Nightly (run-tests-saas) and on-demand never
238
+ // hit this because both run test-setup.spec.ts as part of one
239
+ // unfiltered `--project=X` invocation together with hundreds of other
240
+ // tests, rather than isolating it into its own "Provision cluster"
241
+ // step the way this PR's action.yml does -- that isolation is what
242
+ // creates the every-worker-races-at-once window in the first place.
243
+ // Back to every user independently checking-and-creating: still races
244
+ // sometimes (3-7 of 18 users per run, per the create-organization
245
+ // rate-limit findings above), but that's a smaller, known failure mode
246
+ // than the 100% follower failure the leader-election attempt caused.
247
+ await modelerHomePage.createCrossComponentProjectFolder();
248
+ await modelerHomePage.clickHomeBreadcrumb();
249
+ // Hub resets the overview to "My workspaces" on every load.
250
+ await modelerHomePage.showAllWorkspaces(10000);
251
+ await (0, test_1.expect)(modelerHomePage.crossComponentProjectFolder).toBeVisible({ timeout: 60000 });
252
+ });
253
+ });
254
+ });
255
+ }
256
+ });
@@ -0,0 +1 @@
1
+ export {};