@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,496 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProcessApplicationPage = void 0;
4
+ const test_1 = require("@playwright/test");
5
+ const submitModalWithRetry_1 = require("../../utils/assertionHelpers/submitModalWithRetry");
6
+ // Which process application holds the current test's resources, and which
7
+ // cluster its development stage currently points at. Keyed by the Playwright
8
+ // Page because the object that creates the container (ModelerHomePage) and the
9
+ // objects that later need a specific cluster inside it (ModelerCreatePage,
10
+ // FormJsPage) hold separate ProcessApplicationPage instances but share one page.
11
+ const resourceContainers = new WeakMap();
12
+ // Since camunda/camunda-hub#25831 a process application is a first-class
13
+ // container rather than a folder, and a workspace root ("project" in today's
14
+ // UI) holds nothing but process applications and IDP applications. Every file
15
+ // and folder this suite creates therefore has to live inside a process
16
+ // application. This page object owns that container's surface only; entering
17
+ // and leaving it is driven from ModelerHomePage so the ~150 existing spec call
18
+ // sites keep working unchanged.
19
+ class ProcessApplicationPage {
20
+ page;
21
+ // Empty workspace root: a plain primary button rendered next to the "Create
22
+ // new" menu (hub's EmptyStateActionButtons).
23
+ createProcessApplicationButton;
24
+ // Non-empty root: the item inside the "Create new" menu. Hub passes
25
+ // hideProcessApplication at workspace level, so this is the fallback rather
26
+ // than the primary path -- its own unit test asserts the item is absent
27
+ // there. Kept because the Hub PR is still moving this surface.
28
+ createProcessApplicationOption;
29
+ creationDialog;
30
+ nameInput;
31
+ submitButton;
32
+ cancelButton;
33
+ breadcrumb;
34
+ folderExplorer;
35
+ createNewDropdown;
36
+ inlineNameInput;
37
+ // "Define stages" dialog, reached from the process application's "Connected
38
+ // clusters" card (or its /connected-clusters deep link). Assigning a cluster
39
+ // to a stage here is what makes it deployable: DeployModal renders
40
+ // ProcessAppClusterSelection for a process application, and that filters the
41
+ // cluster list through getProcessAppClustersByStage -- so a process
42
+ // application with no stage assigned offers no cluster at all.
43
+ defineStagesDialog;
44
+ developmentClusterSelect;
45
+ defineStagesSaveButton;
46
+ constructor(page) {
47
+ this.page = page;
48
+ // .first() defensively only: hub renders exactly one of these today, in the
49
+ // workspace-root empty state. A future second placement should not turn
50
+ // every PA-creating test into a strict-mode violation.
51
+ //
52
+ // hubTerm('project') (utils/hub-terminology.ts) renames "process
53
+ // application" to "project" in copy once an org has workspacesEnabled --
54
+ // confirmed from a nightly trace screenshot on hub.ultrawombat.com: the
55
+ // workspace-root empty state renders "Create project" (not "Create
56
+ // process application"), and EmptyStateActionButtons.tsx's source
57
+ // confirms the button text is `Create {hubTerm('project')}`. Accept both
58
+ // so this keeps working on orgs at either rollout stage.
59
+ // exact:true on both -- without it, "Create project" substring-matches
60
+ // the split button's own "Create project options" chevron too, and
61
+ // .first() then picks whichever the DOM happens to order first. Same
62
+ // pattern already fixed for the same chevron in
63
+ // ModelerHomePage.ts's createNewProjectButton/createWorkspaceButton.
64
+ this.createProcessApplicationButton = page
65
+ .getByRole('button', { name: 'Create process application', exact: true })
66
+ .or(page.getByRole('button', { name: 'Create project', exact: true }))
67
+ .first();
68
+ this.createProcessApplicationOption = page.locator('[data-test="create-process-application"]');
69
+ // Same hubTerm('project') rename as the button above --
70
+ // CreationModalDs.common.tsx's dialog title is `Create a
71
+ // {hubTerm('project')}`. A confirmed nightly trace showed a THIRD shape,
72
+ // live on this SaaS org: `app/pages/workspace-projects/features/
73
+ // create-project/CreateProjectModal.tsx` -- a newer, unrelated component
74
+ // (built on `api/projects`' useCreateProject, not processApplicationStore)
75
+ // titled plainly "Create project" (no "a"), with its field labelled
76
+ // "Project name" (not "Name") and its submit button reading "Create
77
+ // project" (not "Create"). Accept all three shapes.
78
+ this.creationDialog = page
79
+ .getByRole('dialog', { name: 'Create a process application' })
80
+ .or(page.getByRole('dialog', { name: 'Create a project' }))
81
+ .or(page.getByRole('dialog', { name: 'Create project', exact: true }));
82
+ // Deliberately scoped to the dialog: ModelerCreatePage owns an unscoped
83
+ // getByLabel('Name', {exact: true}) for the properties panel, which would
84
+ // resolve to two elements while the creation modal is open.
85
+ this.nameInput = this.creationDialog
86
+ .getByLabel('Name', { exact: true })
87
+ .or(this.creationDialog.getByLabel('Project name', { exact: true }));
88
+ this.submitButton = this.creationDialog
89
+ .getByRole('button', { name: 'Create', exact: true })
90
+ .or(this.creationDialog.getByRole('button', {
91
+ name: 'Create project',
92
+ exact: true,
93
+ }));
94
+ this.cancelButton = this.creationDialog.getByRole('button', {
95
+ name: 'Cancel',
96
+ exact: true,
97
+ });
98
+ // The Hub project detail renders a title-bar hook instead of the
99
+ // process-application breadcrumb menu; either proves we are inside.
100
+ this.breadcrumb = page
101
+ .locator('[data-test="breadcrumb-process-application-menu"]')
102
+ .or(page.locator('[data-test="process-application-title-bar"]'))
103
+ .first();
104
+ this.folderExplorer = page.getByRole('region', { name: 'Folder explorer' });
105
+ // The process application page renders more than one diagram-dropdown
106
+ // (hub's own unit tests reach for it with getAllByTestId), so the dropdown
107
+ // has to be resolved inside the folder explorer rather than page-wide.
108
+ // A freshly-created, empty process application collapses the folder
109
+ // explorer and offers only a centred "Create new" empty-state button
110
+ // instead, so accept that as a fallback (the folder-explorer dropdown wins
111
+ // once the project has content).
112
+ this.createNewDropdown = this.folderExplorer
113
+ .locator('[data-test="diagram-dropdown"]')
114
+ .or(page.locator('[data-test="create-action-dropdown"]'))
115
+ .first();
116
+ this.inlineNameInput = page.locator('[data-test="editable-input"]');
117
+ this.defineStagesDialog = page
118
+ .getByRole('dialog')
119
+ .filter({ hasText: 'Define stages' });
120
+ // Carbon Dropdown / design-system Select both keep this id.
121
+ this.developmentClusterSelect = this.defineStagesDialog.locator('#dropdown-development-cluster');
122
+ this.defineStagesSaveButton = this.defineStagesDialog.getByRole('button', {
123
+ name: 'Save',
124
+ exact: true,
125
+ });
126
+ }
127
+ // Only the breadcrumb proves we are on the process application page. The
128
+ // folder explorer does NOT: hub renders a `region[name="Folder explorer"]` on
129
+ // the enclosing PROJECT page too (trace snapshots on a
130
+ // `...--cross-component-test-project` URL carry one), so accepting it let
131
+ // this resolve on the project page whenever creation had not actually landed.
132
+ // ModelerHomePage then remembered the project URL as the container URL and
133
+ // every later navigation went back to the project page, where the
134
+ // container's `[data-test="diagram-dropdown"]` create menu does not exist --
135
+ // surfacing 60s later as `element(s) not found` on an unrelated step.
136
+ pageReady() {
137
+ // Accept the Folder explorer region as well as the breadcrumb: under the
138
+ // current Hub Web Modeler the process-application breadcrumb menu no longer
139
+ // renders, but the Folder explorer does, so requiring the breadcrumb alone
140
+ // times out on every process-application flow. Mirrors 8.8/8.9.
141
+ return this.folderExplorer.or(this.breadcrumb).first();
142
+ }
143
+ async waitForProcessApplication(timeout = 90000) {
144
+ await (0, test_1.expect)(this.pageReady()).toBeVisible({ timeout });
145
+ }
146
+ async clickCreateProcessApplicationButton() {
147
+ await (0, test_1.expect)(this.createProcessApplicationButton).toBeVisible({
148
+ timeout: 60000,
149
+ });
150
+ await this.createProcessApplicationButton.click({ timeout: 60000 });
151
+ }
152
+ async clickCreateProcessApplicationOption() {
153
+ await (0, test_1.expect)(this.createProcessApplicationOption).toBeVisible({
154
+ timeout: 60000,
155
+ });
156
+ await this.createProcessApplicationOption.click({ timeout: 60000 });
157
+ }
158
+ // Hub creates a process application through a modal today. It used an inline
159
+ // editable title before, and #27593 is still moving this surface, so the
160
+ // inline path is kept as a fallback — this is the one method that has to
161
+ // change if naming moves back inline.
162
+ //
163
+ // readyTimeout is how long the caller is prepared to wait for the created
164
+ // application to actually open. It is a parameter because a closed modal
165
+ // does NOT mean the application exists (see
166
+ // ModelerHomePage.createResourceContainer): a caller that can retry the
167
+ // whole creation wants to find that out quickly rather than spend the full
168
+ // budget on a page that is never going to render.
169
+ async nameNewProcessApplication(name, readyTimeout = 90000) {
170
+ const isModal = await this.creationDialog
171
+ .waitFor({ state: 'visible', timeout: 15000 })
172
+ .then(() => true)
173
+ .catch(() => false);
174
+ if (isModal) {
175
+ await this.nameInput.click({ timeout: 30000 });
176
+ await this.nameInput.fill(name);
177
+ await (0, test_1.expect)(this.nameInput).toHaveValue(name, { timeout: 10000 });
178
+ await (0, submitModalWithRetry_1.submitModalWithRetry)(this.submitButton, this.creationDialog);
179
+ await this.waitForProcessApplication(readyTimeout);
180
+ return;
181
+ }
182
+ await (0, test_1.expect)(this.inlineNameInput).toBeVisible({ timeout: 30000 });
183
+ await this.inlineNameInput.click({ timeout: 60000 });
184
+ await this.inlineNameInput.fill(name);
185
+ await this.inlineNameInput.press('Enter');
186
+ await this.waitForProcessApplication(readyTimeout);
187
+ }
188
+ // Assigns a cluster to this process application's development stage.
189
+ //
190
+ // Deploying from inside a process application goes through
191
+ // ProcessAppClusterSelection, which only lists clusters the application has
192
+ // assigned to a stage, and does not auto-select anything when that list is
193
+ // empty. A freshly created process application has no stages, so the deploy
194
+ // dialog shows "Clusters not configured for stages" and offers nothing to
195
+ // pick -- which is why the old per-deploy cluster toggle was nowhere to be
196
+ // found. Assign the stage once, at creation, and the deploy dialog then
197
+ // auto-selects it.
198
+ //
199
+ // clusterName is matched as a prefix because the dropdown renders each
200
+ // cluster as "<name> <generation>". Without it, the first real cluster is
201
+ // taken -- callers that care assert the name in the deploy dialog anyway.
202
+ async defineDevelopmentStage(clusterName) {
203
+ await (0, test_1.expect)(this.defineStagesDialog).toBeVisible({ timeout: 60000 });
204
+ // Escape before interpolating: a cluster name can carry regex
205
+ // metacharacters -- "Test Cluster (v2)" is the common case -- which would
206
+ // otherwise mis-match or throw. Same treatment as
207
+ // utils/modelerCluster.selectModelerCluster.
208
+ const escapedClusterName = clusterName?.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
209
+ const option = clusterName
210
+ ? this.defineStagesDialog
211
+ .getByRole('option', { name: new RegExp(`^${escapedClusterName}`) })
212
+ .first()
213
+ : this.defineStagesDialog
214
+ .getByRole('option')
215
+ .filter({ hasNotText: 'Select a development cluster' })
216
+ .first();
217
+ // Committing a selection is what unmounts the option list: the dropdown is
218
+ // a Carbon Dropdown over Downshift, so the click that lands is also the
219
+ // click whose target disappears. Playwright's default actionability re-check
220
+ // reads that as a lost element ("element was detached from the DOM,
221
+ // retrying") and then spends the rest of its budget waiting for an option
222
+ // that has already done its job and will not come back -- three of the four
223
+ // failures in the 2026-08-31 SaaS 8.10 run ended that way, each on a
224
+ // 30000ms locator.click against an option the log shows it had resolved.
225
+ //
226
+ // So: dispatch the click without the post-click stability re-check, and
227
+ // treat the option list closing as the proof it landed rather than the
228
+ // click call resolving cleanly. Retried as a whole because a click that
229
+ // genuinely missed leaves the menu open, which the next pass sees and
230
+ // re-clicks. This also covers the menu opening with the wanted cluster
231
+ // already selected: clicking it still closes the menu, and the stage the
232
+ // caller asked for is bound either way.
233
+ await (0, test_1.expect)(async () => {
234
+ const menuOpen = await option.isVisible().catch(() => false);
235
+ if (!menuOpen) {
236
+ await this.developmentClusterSelect.click({ timeout: 15000 });
237
+ await (0, test_1.expect)(option).toBeVisible({ timeout: 15000 });
238
+ }
239
+ await option.click({ timeout: 15000, force: true });
240
+ await (0, test_1.expect)(option).toBeHidden({ timeout: 15000 });
241
+ }).toPass({ timeout: 120000, intervals: [1000, 2000, 5000] });
242
+ // Saving is retried the same way the option click is, and for the same
243
+ // reason: the click resolving is not proof the save was taken. The nightly
244
+ // recorded a Save that reported success and left the dialog standing --
245
+ // `expect(getByRole('dialog').filter({hasText: 'Define stages'}))
246
+ // .toBeHidden()` re-resolving it 63 times over 60s -- which one long wait
247
+ // can only sit out. A save that did land closes the dialog, so the dialog
248
+ // still being there is itself the signal to press Save again.
249
+ await (0, test_1.expect)(async () => {
250
+ await this.defineStagesSaveButton.click({ timeout: 15000 });
251
+ await (0, test_1.expect)(this.defineStagesDialog).toBeHidden({ timeout: 20000 });
252
+ }).toPass({ timeout: 120000, intervals: [1000, 2000, 5000] });
253
+ }
254
+ rememberResourceContainer(url) {
255
+ resourceContainers.set(this.page, { url });
256
+ }
257
+ // Drops the recorded development-stage binding so the next ensureStageCluster
258
+ // call binds again. Called when the deploy dialog turns out not to offer the
259
+ // cluster we believe we bound: the dialog offers exactly what the
260
+ // application's stages point at, so if the cluster is missing the binding
261
+ // did not take, and reopening the dialog can never change that. Without
262
+ // this, a caller's retries all re-check a state nothing is changing.
263
+ forgetStageCluster() {
264
+ const container = resourceContainers.get(this.page);
265
+ if (container) {
266
+ container.developmentCluster = undefined;
267
+ }
268
+ }
269
+ // A process application deploys to the clusters bound to its stages, and
270
+ // nothing else: inside a container DeployModal renders
271
+ // ProcessAppClusterSelection, which lists only those and auto-selects the
272
+ // first. Which cluster a test wants is known only once a deploy flow names
273
+ // it, so the binding happens here, on demand -- leave the diagram, bind the
274
+ // cluster to the development stage, come back. Repeat calls for the same
275
+ // cluster cost nothing, and a test deploying to a second cluster rebinds.
276
+ // Returns whether it navigated: the caller may have been on a view that a
277
+ // reload does not restore -- Play is a tab click, not a URL -- and has to
278
+ // re-enter it.
279
+ async ensureStageCluster(clusterName) {
280
+ const container = resourceContainers.get(this.page);
281
+ if (!container || container.developmentCluster === clusterName) {
282
+ return false;
283
+ }
284
+ // A caller that just reloaded can still be on Hub's /login-callback. Its
285
+ // code is single use, so returning to that URL afterwards would land on
286
+ // the Auth0 login page. Let Hub finish the exchange first.
287
+ if (this.page.url().includes('/login-callback')) {
288
+ await this.page.waitForURL((url) => !url.pathname.startsWith('/login-callback'), { timeout: 120000 });
289
+ }
290
+ const returnTo = this.page.url();
291
+ const paUrl = container.url.replace(/[?#].*$/, '').replace(/\/$/, '');
292
+ // Under Hub workspaces (/workspaces/<ws>/projects/<id>) there is no
293
+ // /connected-clusters route -- it renders "No match for the current
294
+ // location". With Hub's Environments feature on (camunda-hub#29210) the
295
+ // deploy dialog offers the environments assigned to the parent workspace,
296
+ // so the binding is made there. Ported from pages/8.9.
297
+ const workspaceId = paUrl.match(/\/workspaces\/([^/]+)\/projects\//)?.[1];
298
+ if (workspaceId) {
299
+ await (0, test_1.expect)(async () => {
300
+ await this.ensureWorkspaceEnvironment(paUrl, workspaceId, clusterName);
301
+ }).toPass({ timeout: 240000, intervals: [1000, 2000, 5000] });
302
+ }
303
+ else {
304
+ const deepLink = `${paUrl}/connected-clusters`;
305
+ await this.page.goto(deepLink, { waitUntil: 'domcontentloaded' });
306
+ await this.openStageDefinition(deepLink);
307
+ await this.defineDevelopmentStage(clusterName);
308
+ }
309
+ container.developmentCluster = clusterName;
310
+ await this.page.goto(returnTo, { waitUntil: 'domcontentloaded' });
311
+ // A full navigation on Hub bounces through /login and /login-callback
312
+ // before it lands back on returnTo, and goto() resolves on the first
313
+ // document.
314
+ await this.page.waitForURL((url) => !/^\/login(-callback)?\/?$/.test(url.pathname), { timeout: 120000 });
315
+ return true;
316
+ }
317
+ // Assigns the Environment backed by clusterName to the workspace, from
318
+ // workspace management's Environments tab (camunda-hub
319
+ // WorkspaceEnvironmentsTab). Without the Environments feature the project
320
+ // page still carries the Connected clusters card, whose "Configure" button
321
+ // opens the Define stages dialog -- that path is taken instead.
322
+ //
323
+ // Save replaces the workspace's whole assignment with the picker's
324
+ // selection, and parallel workers share this workspace, so only this
325
+ // cluster's toggle is touched and the result re-read afterwards.
326
+ async ensureWorkspaceEnvironment(paUrl, workspaceId, clusterName) {
327
+ await this.page.goto(paUrl, { waitUntil: 'domcontentloaded' });
328
+ await this.waitForProcessApplication();
329
+ const configure = this.page.getByRole('button', {
330
+ name: 'Configure',
331
+ exact: true,
332
+ });
333
+ const configureAppeared = await configure
334
+ .waitFor({ state: 'visible', timeout: 10000 })
335
+ .then(() => true)
336
+ .catch(() => false);
337
+ if (configureAppeared) {
338
+ await configure.click({ timeout: 30000 });
339
+ await this.defineDevelopmentStage(clusterName);
340
+ return;
341
+ }
342
+ const manageUrl = `${new URL(paUrl).origin}/workspaces/${workspaceId}/manage?tab=environments`;
343
+ await this.page.goto(manageUrl, { waitUntil: 'domcontentloaded' });
344
+ const heading = this.page.locator('[data-test="manage-environments-heading"]');
345
+ // Hub only offers the Environments tab to users with an elevated or
346
+ // DevOps org role (camunda-hub WorkspaceManageBody, #28955) and rewrites
347
+ // `?tab=environments` to `?tab=members` for everyone else. Such a user
348
+ // cannot assign anything here; the spec's elevated user has to have done
349
+ // it already, and the deploy dialog's selectDeployEnvironment reports a
350
+ // precise "not assigned" error otherwise.
351
+ const onMembersTab = () => new URL(this.page.url()).searchParams.get('tab') === 'members';
352
+ await (0, test_1.expect)(async () => {
353
+ if (!onMembersTab()) {
354
+ await (0, test_1.expect)(heading).toBeVisible({ timeout: 2000 });
355
+ }
356
+ }).toPass({ timeout: 60000 });
357
+ if (onMembersTab()) {
358
+ console.log(`The workspace Environments tab is not available to this user; ` +
359
+ `relying on "${clusterName}" having been assigned by an elevated user`);
360
+ return;
361
+ }
362
+ const editButton = this.page.locator('[data-test="edit-environments-button"]');
363
+ await (0, test_1.expect)(editButton).toBeEnabled({ timeout: 60000 });
364
+ await editButton.click({ timeout: 30000 });
365
+ const editor = this.page.getByRole('group', {
366
+ name: 'Edit assigned environments',
367
+ });
368
+ await (0, test_1.expect)(editor).toBeVisible({ timeout: 30000 });
369
+ const search = editor.locator('[data-test="picker-search"]');
370
+ if (await search.isVisible().catch(() => false)) {
371
+ await search.fill(clusterName);
372
+ }
373
+ // Picker card toggles are named "Select <environment> (<cluster>)" and
374
+ // flip to "Selected ..." with aria-pressed once picked.
375
+ const escapedClusterName = clusterName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
376
+ const toggle = editor
377
+ .locator('[data-test="picker-environment"]')
378
+ .getByRole('button', {
379
+ name: new RegExp(`^Select(ed)? .*\\(${escapedClusterName}\\)$`),
380
+ })
381
+ .first();
382
+ await (0, test_1.expect)(toggle).toBeVisible({ timeout: 60000 });
383
+ if ((await toggle.getAttribute('aria-pressed')) === 'true') {
384
+ await this.page
385
+ .getByRole('button', { name: 'Cancel', exact: true })
386
+ .click({ timeout: 30000 });
387
+ await (0, test_1.expect)(editor).toBeHidden({ timeout: 30000 });
388
+ return;
389
+ }
390
+ await toggle.click({ timeout: 30000 });
391
+ await (0, test_1.expect)(toggle).toHaveAttribute('aria-pressed', 'true');
392
+ await this.page
393
+ .getByRole('button', { name: 'Save', exact: true })
394
+ .click({ timeout: 30000 });
395
+ await (0, test_1.expect)(editor).toBeHidden({ timeout: 60000 });
396
+ await (0, test_1.expect)(this.page
397
+ .getByRole('list', { name: 'Assigned environments' })
398
+ .getByRole('listitem')
399
+ .filter({ hasText: clusterName })
400
+ .first()).toBeVisible({ timeout: 60000 });
401
+ }
402
+ // The /connected-clusters deep link opens the Define stages dialog by itself
403
+ // while the application has no stage bound. Once one is bound -- a test that
404
+ // deploys to a second cluster -- it has to be reopened from the page, so try
405
+ // the affordances hub offers before failing with exactly what was looked for.
406
+ // Worth the noise: an unbound cluster otherwise surfaces as a deploy dialog
407
+ // that silently offers nothing, which says nothing about its own cause.
408
+ async openStageDefinition(deepLink) {
409
+ // Page-scoped .first(): hub renders one such control on this page, and a
410
+ // second placement must not turn every rebinding test into a strict-mode
411
+ // violation.
412
+ const reopen = this.page
413
+ .getByRole('button', { name: /define stages|edit stages|configure/i })
414
+ .first();
415
+ // Retried as a whole, because the two ways in race each other. On a slow
416
+ // load the deep link's own auto-open lands AFTER the first wait below has
417
+ // given up; the dialog then sits on top of the reopen control, so the
418
+ // fallback click waits out its timeout on an intercepted pointer while the
419
+ // dialog it was meant to open is already on screen. Re-probing for the
420
+ // dialog at the top of every attempt settles that: whichever route got it
421
+ // there, the next pass sees it and returns.
422
+ //
423
+ // Re-navigating between attempts is what makes that retry able to recover
424
+ // at all. Hub renders the "Configure" control and MOUNTS DefineStagesModal
425
+ // in the same component -- ConnectedClusters, inside the process
426
+ // application's right column -- and gates it on `isAdmin || isEditor`,
427
+ // i.e. on projectStore having loaded. processApplicationStore.init()
428
+ // swallows a failed fetch (it only toasts "Yikes! Couldn't retrieve your
429
+ // project" and clears its loading flag), so one transient 5xx on the
430
+ // freshly created application leaves a fully rendered page that has no
431
+ // card: no control to click, and the deep link's own auto-open never fires
432
+ // either, because useConnectedClustersDeepLink only calls open() when that
433
+ // same `canSee` is true. Re-probing and re-clicking cannot bring back a
434
+ // component that was never mounted -- only a reload, which re-runs the
435
+ // store init, can. Without it every attempt burned its two waits on
436
+ // elements that could not appear and the whole budget expired on a page
437
+ // that one navigation would have fixed.
438
+ let attempt = 0;
439
+ await (0, test_1.expect)(async () => {
440
+ if (attempt++ > 0) {
441
+ await this.page.goto(deepLink, { waitUntil: 'domcontentloaded' });
442
+ // Proof the process application page itself came back, so a failure
443
+ // here still names the missing dialog rather than a blank page.
444
+ await this.waitForProcessApplication(60000);
445
+ }
446
+ const opened = await this.defineStagesDialog
447
+ .waitFor({ state: 'visible', timeout: 15000 })
448
+ .then(() => true)
449
+ .catch(() => false);
450
+ if (opened) {
451
+ return;
452
+ }
453
+ await reopen.waitFor({ state: 'visible', timeout: 10000 });
454
+ await reopen.click({ timeout: 15000 });
455
+ await (0, test_1.expect)(this.defineStagesDialog).toBeVisible({ timeout: 15000 });
456
+ }).toPass({ timeout: 180000 });
457
+ }
458
+ // Adopts an application that already carries this name on the workspace
459
+ // root, reporting whether it opened. Used by the creation retry so a
460
+ // creation that did land but rendered slowly is re-entered instead of being
461
+ // duplicated by the next attempt.
462
+ async openByNameIfPresent(name, timeout = 15000) {
463
+ // Link first: a Design System row link lies over the title and takes its
464
+ // clicks (see ModelerHomePage.clickProcessDiagram).
465
+ const row = this.page.getByRole('row').filter({ hasText: name });
466
+ const processApplication = row
467
+ .getByRole('link', { name })
468
+ .or(row.getByTitle(name))
469
+ .first();
470
+ const present = await processApplication
471
+ .waitFor({ state: 'visible', timeout })
472
+ .then(() => true)
473
+ .catch(() => false);
474
+ if (!present) {
475
+ return false;
476
+ }
477
+ await processApplication.click({ timeout: 60000 });
478
+ return await this.pageReady()
479
+ .waitFor({ state: 'visible', timeout: 60000 })
480
+ .then(() => true)
481
+ .catch(() => false);
482
+ }
483
+ async openByName(name) {
484
+ // Link first: a Design System row link lies over the title and takes its
485
+ // clicks (see ModelerHomePage.clickProcessDiagram).
486
+ const row = this.page.getByRole('row').filter({ hasText: name });
487
+ const processApplication = row
488
+ .getByRole('link', { name })
489
+ .or(row.getByTitle(name))
490
+ .first();
491
+ await (0, test_1.expect)(processApplication).toBeVisible({ timeout: 90000 });
492
+ await processApplication.click({ timeout: 60000 });
493
+ await this.waitForProcessApplication();
494
+ }
495
+ }
496
+ exports.ProcessApplicationPage = ProcessApplicationPage;
@@ -0,0 +1,10 @@
1
+ import { Page, Locator } from '@playwright/test';
2
+ declare class SettingsPage {
3
+ private page;
4
+ readonly openSettingsButton: Locator;
5
+ readonly logoutButton: Locator;
6
+ constructor(page: Page);
7
+ clickOpenSettingsButton(retries?: number): Promise<void>;
8
+ clickLogoutButton(retries?: number): Promise<void>;
9
+ }
10
+ export { SettingsPage };
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettingsPage = void 0;
4
+ class SettingsPage {
5
+ page;
6
+ openSettingsButton;
7
+ logoutButton;
8
+ constructor(page) {
9
+ this.page = page;
10
+ // Camunda Hub's design-system shell renders a `UserMenu` button named
11
+ // "User menu, <full name>" in place of the legacy Carbon "Open Settings"
12
+ // icon button, and its logout control is a menuitem inside that menu
13
+ // rather than a plain button. Both shells still ship -- match either.
14
+ // Ported from camunda-hub's own e2e-playwright/pages/Console/ConsoleBasePage.ts
15
+ // (settingsButton / dsLogoutMenuItem / carbonLogoutButton).
16
+ this.openSettingsButton = page
17
+ .getByRole('button', { name: /^User menu,/ })
18
+ .or(page.getByLabel('Open Settings'));
19
+ this.logoutButton = page
20
+ .getByRole('menuitem', { name: 'Log out', exact: true })
21
+ .or(page.getByRole('button', { name: 'Log out' }));
22
+ }
23
+ async clickOpenSettingsButton(retries = 3) {
24
+ for (let i = 0; i < retries; i++) {
25
+ try {
26
+ await this.openSettingsButton.click({ timeout: 180000 });
27
+ return; // If successful, exit the function
28
+ }
29
+ catch (error) {
30
+ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
31
+ await sleep(10000);
32
+ }
33
+ }
34
+ throw new Error(`Failed to click button after ${retries} retries`);
35
+ }
36
+ async clickLogoutButton(retries = 3) {
37
+ for (let i = 0; i < retries; i++) {
38
+ try {
39
+ await this.logoutButton.click({ timeout: 120000 });
40
+ return; // Click succeeded, exit the loop
41
+ }
42
+ catch (error) {
43
+ console.error(`Attempt ${i + 1} to click deploy button failed: ${error}`);
44
+ // Wait for 10 seconds
45
+ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
46
+ await sleep(10000);
47
+ await this.clickOpenSettingsButton();
48
+ }
49
+ }
50
+ throw new Error(`Failed to click deploy button after ${retries} retries`);
51
+ }
52
+ }
53
+ exports.SettingsPage = SettingsPage;
@@ -0,0 +1,42 @@
1
+ import { Page, Locator } from '@playwright/test';
2
+ declare class SignUpPage {
3
+ private page;
4
+ readonly firstNameInput: Locator;
5
+ readonly lastNameInput: Locator;
6
+ readonly passwordInput: Locator;
7
+ readonly passwordInputInvitedUser: Locator;
8
+ readonly signupButton: Locator;
9
+ readonly emailInput: Locator;
10
+ readonly companyInput: Locator;
11
+ readonly createAccountButton: Locator;
12
+ readonly backgroundDrodownList: Locator;
13
+ readonly whatDoYouDoDropdownList: Locator;
14
+ readonly APIClientDropdownList: Locator;
15
+ readonly levelOfExperienceDropdownList: Locator;
16
+ readonly nextButton: Locator;
17
+ readonly runProcessRadioButton: Locator;
18
+ readonly whyAreYouEvaluatingCamunda: Locator;
19
+ readonly confirmSaaSTrial: Locator;
20
+ readonly loginToCamundaButton: Locator;
21
+ readonly backgroundPageHeading: Locator;
22
+ readonly useCasePageHeading: Locator;
23
+ readonly goalPageHeading: Locator;
24
+ readonly camundaPlansPageHeading: Locator;
25
+ readonly setPasswordPageHeading: Locator;
26
+ readonly signUpCompletedPageHeading: Locator;
27
+ readonly verifyEmailText: Locator;
28
+ constructor(page: Page);
29
+ signupToC8(emailAddress: string): Promise<void>;
30
+ clickFirstNameInput(): Promise<void>;
31
+ fillFirstNameInput(firstName: string): Promise<void>;
32
+ clickLastNameInput(): Promise<void>;
33
+ fillLastNameInput(lastName: string): Promise<void>;
34
+ clickPasswordInput(): Promise<void>;
35
+ fillPasswordInput(password: string): Promise<void>;
36
+ clickPasswordInputInvitedUser(): Promise<void>;
37
+ fillPasswordInputInvitedUser(password: string): Promise<void>;
38
+ clickSignupButton(): Promise<void>;
39
+ clickEmailInput(): Promise<void>;
40
+ fillEmailInput(email: string): Promise<void>;
41
+ }
42
+ export { SignUpPage };