@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,28 @@
1
+ import { Page, Locator } from '@playwright/test';
2
+ declare class OperateProcessesPage {
3
+ private page;
4
+ readonly processResultCount: Locator;
5
+ readonly processActiveCheckbox: Locator;
6
+ readonly processCompletedCheckbox: Locator;
7
+ readonly processRunningInstancesCheckbox: Locator;
8
+ readonly processIncidentsCheckbox: Locator;
9
+ readonly processPageHeading: Locator;
10
+ readonly noMatchingInstancesMessage: Locator;
11
+ readonly processFinishedInstancesCheckbox: Locator;
12
+ readonly processInstanceLink: (name: string) => Locator;
13
+ readonly moreFiltersButton: Locator;
14
+ readonly processInstanceKeyTextBox: Locator;
15
+ private readonly whatsNewPopUp;
16
+ private readonly gotItButton;
17
+ constructor(page: Page);
18
+ private getMoreFilterValueLocator;
19
+ clickProcessActiveCheckbox(): Promise<void>;
20
+ clickProcessCompletedCheckbox(): Promise<void>;
21
+ clickProcessIncidentsCheckbox(): Promise<void>;
22
+ clickRunningProcessInstancesCheckbox(): Promise<void>;
23
+ clickFinishedProcessInstancesCheckbox(): Promise<void>;
24
+ private returnToProcessesList;
25
+ clickProcessInstanceLink(processName: string): Promise<void>;
26
+ applyMoreFilters(filter: string, value: string): Promise<void>;
27
+ }
28
+ export { OperateProcessesPage };
@@ -0,0 +1,153 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OperateProcessesPage = void 0;
4
+ const test_1 = require("@playwright/test");
5
+ const sleep_1 = require("../../utils/sleep");
6
+ class OperateProcessesPage {
7
+ page;
8
+ processResultCount;
9
+ processActiveCheckbox;
10
+ processCompletedCheckbox;
11
+ processRunningInstancesCheckbox;
12
+ processIncidentsCheckbox;
13
+ processPageHeading;
14
+ noMatchingInstancesMessage;
15
+ processFinishedInstancesCheckbox;
16
+ processInstanceLink;
17
+ moreFiltersButton;
18
+ processInstanceKeyTextBox;
19
+ whatsNewPopUp;
20
+ gotItButton;
21
+ constructor(page) {
22
+ this.page = page;
23
+ this.processResultCount = page.getByTestId('result-count');
24
+ this.processInstanceLink = (name) => this.page
25
+ .getByRole('row')
26
+ .filter({ hasText: name })
27
+ .first()
28
+ .getByRole('link', { name: /^View instance \d+/ });
29
+ this.processActiveCheckbox = page
30
+ .locator('label')
31
+ .filter({ hasText: 'Active' });
32
+ this.processCompletedCheckbox = page
33
+ .locator('label')
34
+ .filter({ hasText: 'Completed' });
35
+ this.processRunningInstancesCheckbox = page
36
+ .locator('label')
37
+ .filter({ hasText: 'Running Instances' });
38
+ this.processIncidentsCheckbox = page
39
+ .locator('label')
40
+ .filter({ hasText: 'Incidents' });
41
+ this.processPageHeading = page
42
+ .getByTestId('expanded-panel')
43
+ .getByText('Process', { exact: true });
44
+ this.noMatchingInstancesMessage = page.getByText('There are no Instances matching this filter set');
45
+ this.processFinishedInstancesCheckbox = page
46
+ .getByTestId('filter-finished-instances')
47
+ .getByRole('checkbox');
48
+ this.moreFiltersButton = page.getByRole('button', { name: 'More filters' });
49
+ this.processInstanceKeyTextBox = page
50
+ .locator('#processInstanceKey')
51
+ .or(page.locator('#ids'));
52
+ this.whatsNewPopUp = page.getByRole('heading', {
53
+ name: "Here's what moved in Operate",
54
+ });
55
+ this.gotItButton = page.getByRole('button', { name: 'Got it' });
56
+ }
57
+ getMoreFilterValueLocator(filter) {
58
+ switch (filter.trim()) {
59
+ case 'Process Instance Key(s)':
60
+ return this.processInstanceKeyTextBox;
61
+ default:
62
+ throw new Error(`Unsupported filter: "${filter}". Add a mapping in getMoreFilterValueLocator().`);
63
+ }
64
+ }
65
+ async clickProcessActiveCheckbox() {
66
+ await this.processActiveCheckbox.click();
67
+ }
68
+ async clickProcessCompletedCheckbox() {
69
+ await this.processCompletedCheckbox.click({ timeout: 60000 });
70
+ await (0, sleep_1.sleep)(1000);
71
+ }
72
+ async clickProcessIncidentsCheckbox() {
73
+ await this.processIncidentsCheckbox.click();
74
+ }
75
+ async clickRunningProcessInstancesCheckbox() {
76
+ await this.processRunningInstancesCheckbox.click();
77
+ }
78
+ async clickFinishedProcessInstancesCheckbox() {
79
+ await this.processFinishedInstancesCheckbox.click();
80
+ }
81
+ // Puts the tab back on the processes list before the next attempt of
82
+ // `clickProcessInstanceLink`. A click that DID navigate to the instance page
83
+ // but whose "Instance History" panel was slow to render leaves the tab on
84
+ // `/processes/<key>`, and the instance row the loop looks for can never
85
+ // appear there: reloading that page spent every remaining attempt waiting
86
+ // 60s for a row that is not on it, which is what reported "Failed to click
87
+ // the link after 5 attempts" while the instance was perfectly fine.
88
+ // Re-opening the list URL also restores the filters the caller applied
89
+ // (they live in the query string), which a `goBack()` would not guarantee.
90
+ //
91
+ // Navigation errors are logged and retried rather than thrown: a reload that
92
+ // races the click's still-in-flight navigation fails with
93
+ // `net::ERR_ABORTED; maybe frame was detached?` and a DNS blip with
94
+ // `net::ERR_NAME_NOT_RESOLVED`. Both used to escape this loop's catch block
95
+ // and fail the test outright instead of being retried like every other
96
+ // recovery step here.
97
+ async returnToProcessesList(listUrl) {
98
+ try {
99
+ if (this.page.url() === listUrl) {
100
+ await this.page.reload({ waitUntil: 'domcontentloaded' });
101
+ return;
102
+ }
103
+ await this.page.goto(listUrl, { waitUntil: 'domcontentloaded' });
104
+ }
105
+ catch (error) {
106
+ console.warn(`Could not return to the processes list: ${error}`);
107
+ }
108
+ }
109
+ async clickProcessInstanceLink(processName) {
110
+ // Increased from 3 to 5 retries: process-instance indexing in Operate can take
111
+ // longer than 3 × (60 s visible + 10 s reload) on busy SaaS environments,
112
+ // causing intermittent failures in the webhook connector nightly tests.
113
+ const maxRetries = 5;
114
+ // Captured before the first click so a retry can re-open the list with the
115
+ // caller's filters instead of reloading whatever page the click landed on.
116
+ const listUrl = this.page.url();
117
+ for (let retries = 0; retries < maxRetries; retries++) {
118
+ try {
119
+ await (0, test_1.expect)(this.processInstanceLink(processName)).toBeVisible({
120
+ timeout: 60000,
121
+ });
122
+ await this.processInstanceLink(processName).click({ timeout: 60000 });
123
+ // The instance page is rendered from the same Zeebe -> Operate import
124
+ // this list was filtered on, so on a busy cluster the panel regularly
125
+ // needs longer than 10s to paint. That short budget turned a slow
126
+ // render into a full re-attempt — and every re-attempt then looked for
127
+ // the row on the instance page it had just opened.
128
+ await (0, test_1.expect)(this.page.getByText('Instance History').first()).toBeVisible({
129
+ timeout: 60000,
130
+ });
131
+ if (await this.whatsNewPopUp.isVisible()) {
132
+ await this.gotItButton.click();
133
+ }
134
+ return;
135
+ }
136
+ catch (error) {
137
+ console.error(`Click attempt ${retries + 1} failed: ${error}`);
138
+ await this.returnToProcessesList(listUrl);
139
+ await (0, sleep_1.sleep)(10000);
140
+ }
141
+ }
142
+ throw new Error(`Failed to click the link after ${maxRetries} attempts.`);
143
+ }
144
+ async applyMoreFilters(filter, value) {
145
+ await this.moreFiltersButton.click();
146
+ await this.page.getByRole('menuitem', { name: filter }).click();
147
+ const valueInput = this.getMoreFilterValueLocator(filter);
148
+ await (0, test_1.expect)(valueInput).toBeVisible({ timeout: 10000 });
149
+ await valueInput.fill(value);
150
+ await (0, sleep_1.sleep)(2000);
151
+ }
152
+ }
153
+ exports.OperateProcessesPage = OperateProcessesPage;
@@ -0,0 +1,30 @@
1
+ import { Page, Locator } from '@playwright/test';
2
+ declare class OptimizeCollectionsPage {
3
+ private page;
4
+ readonly collectionsPageHeader: Locator;
5
+ readonly createNewButton: Locator;
6
+ readonly reportOption: Locator;
7
+ readonly collectionOption: Locator;
8
+ readonly modalCloseButton: Locator;
9
+ readonly processReport: Locator;
10
+ readonly collectionsLink: Locator;
11
+ readonly collectionNameInput: Locator;
12
+ readonly createCollectionConfirmButton: Locator;
13
+ readonly collectionContextMenuButton: Locator;
14
+ readonly editContextMenuOption: Locator;
15
+ readonly deleteContextMenuOption: Locator;
16
+ readonly confirmDeleteButton: Locator;
17
+ constructor(page: Page);
18
+ clickCollectionsLink(): Promise<void>;
19
+ clickCreateNewButton(): Promise<void>;
20
+ clickCreateNewButtonWithRetry(): Promise<void>;
21
+ clickReportOption(): Promise<void>;
22
+ clickMostRecentProcessReport(reportName: string): Promise<void>;
23
+ createCollection(name: string): Promise<void>;
24
+ finalizeCollectionCreationIfNeeded(): Promise<void>;
25
+ assertCollectionVisible(name: string): Promise<void>;
26
+ renameCollection(newName: string): Promise<void>;
27
+ deleteCollection(): Promise<void>;
28
+ assertCollectionNotVisible(name: string): Promise<void>;
29
+ }
30
+ export { OptimizeCollectionsPage };
@@ -0,0 +1,175 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OptimizeCollectionsPage = void 0;
4
+ const test_1 = require("@playwright/test");
5
+ const sleep_1 = require("../../utils/sleep");
6
+ class OptimizeCollectionsPage {
7
+ page;
8
+ collectionsPageHeader;
9
+ createNewButton;
10
+ reportOption;
11
+ collectionOption;
12
+ modalCloseButton;
13
+ processReport;
14
+ collectionsLink;
15
+ collectionNameInput;
16
+ createCollectionConfirmButton;
17
+ collectionContextMenuButton;
18
+ editContextMenuOption;
19
+ deleteContextMenuOption;
20
+ confirmDeleteButton;
21
+ constructor(page) {
22
+ this.page = page;
23
+ this.collectionsPageHeader = page.getByRole('heading', {
24
+ name: 'Collections, Dashboards, and Reports',
25
+ });
26
+ this.createNewButton = page.getByRole('button', {
27
+ name: 'Create new',
28
+ exact: true,
29
+ });
30
+ this.reportOption = page.getByText('Report', { exact: true });
31
+ this.collectionOption = page
32
+ .getByRole('menuitem', { name: 'Collection', exact: true })
33
+ .or(page.getByRole('button', { name: 'Collection', exact: true }));
34
+ this.modalCloseButton = page.locator('button').filter({ hasText: /^Close$/ });
35
+ this.processReport = page.getByText('Process Report').first();
36
+ // See OptimizeHomePage: Optimize's Design System navigation moved this
37
+ // link out of the top banner into the left sidebar.
38
+ this.collectionsLink = page
39
+ .getByRole('navigation', { name: 'Main navigation' })
40
+ .getByRole('link', { name: 'Collections' });
41
+ this.collectionNameInput = page
42
+ .getByRole('dialog')
43
+ .getByRole('textbox')
44
+ .first();
45
+ this.createCollectionConfirmButton = page
46
+ .getByRole('dialog')
47
+ .getByRole('button', { name: /add data sources|create collection|save/i })
48
+ .or(page.locator('.cds--modal button.confirm.cds--btn--primary'))
49
+ .first();
50
+ this.collectionContextMenuButton = page
51
+ .locator('button.cds--overflow-menu')
52
+ .or(page.getByRole('button', {
53
+ name: /options|context menu|open menu|more|actions/i,
54
+ }))
55
+ .first();
56
+ this.editContextMenuOption = page
57
+ .getByRole('menuitem', { name: /edit/i })
58
+ .or(page.getByRole('button', { name: /edit/i }))
59
+ .or(page.locator('button.cds--overflow-menu-options__btn', {
60
+ hasText: /edit/i,
61
+ }))
62
+ .first();
63
+ this.deleteContextMenuOption = page
64
+ .getByRole('menuitem', { name: /delete/i })
65
+ .or(page.getByRole('button', { name: /delete/i }))
66
+ .or(page.locator('button.cds--overflow-menu-options__btn', {
67
+ hasText: /delete/i,
68
+ }))
69
+ .first();
70
+ this.confirmDeleteButton = page
71
+ .locator('.cds--modal button.confirm')
72
+ .or(page.locator('.Deleter button.confirm'))
73
+ .or(page.getByRole('dialog').getByRole('button', { name: /delete/i }))
74
+ .first();
75
+ }
76
+ async clickCollectionsLink() {
77
+ await (0, test_1.expect)(this.collectionsLink).toBeVisible({ timeout: 60000 });
78
+ await this.collectionsLink.click({ timeout: 60000 });
79
+ }
80
+ async clickCreateNewButton() {
81
+ await (0, test_1.expect)(this.createNewButton).toBeVisible({ timeout: 60000 });
82
+ await this.createNewButton.click({ timeout: 60000 });
83
+ }
84
+ async clickCreateNewButtonWithRetry() {
85
+ const maxRetries = 5;
86
+ for (let attempt = 0; attempt < maxRetries; attempt++) {
87
+ try {
88
+ if (await this.modalCloseButton.isVisible({ timeout: 15000 })) {
89
+ await this.modalCloseButton.click({ timeout: 60000 });
90
+ }
91
+ await this.clickCollectionsLink();
92
+ await this.clickCreateNewButton();
93
+ return;
94
+ }
95
+ catch (error) {
96
+ if (attempt < maxRetries - 1) {
97
+ console.warn(`Attempt ${attempt + 1} failed. Retrying...`);
98
+ await this.page.reload();
99
+ await (0, sleep_1.sleep)(60000);
100
+ }
101
+ else {
102
+ throw new Error(`Assertion failed after ${maxRetries} attempts: ` + error);
103
+ }
104
+ }
105
+ }
106
+ }
107
+ async clickReportOption() {
108
+ await this.reportOption.click();
109
+ }
110
+ async clickMostRecentProcessReport(reportName) {
111
+ await this.page.getByText(reportName).click({ timeout: 60000 });
112
+ }
113
+ async createCollection(name) {
114
+ await this.clickCreateNewButton();
115
+ await (0, test_1.expect)(this.collectionOption).toBeVisible({ timeout: 30000 });
116
+ await this.collectionOption.click({ timeout: 30000 });
117
+ await (0, test_1.expect)(this.collectionNameInput).toBeVisible({ timeout: 30000 });
118
+ await this.collectionNameInput.click();
119
+ await this.collectionNameInput.fill(name);
120
+ await (0, test_1.expect)(this.createCollectionConfirmButton).toBeVisible({
121
+ timeout: 30000,
122
+ });
123
+ await this.createCollectionConfirmButton.click({ timeout: 30000 });
124
+ await this.finalizeCollectionCreationIfNeeded();
125
+ }
126
+ async finalizeCollectionCreationIfNeeded() {
127
+ const addSourceModal = this.page.getByRole('dialog', {
128
+ name: /add source/i,
129
+ });
130
+ if (await addSourceModal.isVisible({ timeout: 15000 }).catch(() => false)) {
131
+ const createCollectionButton = addSourceModal.getByRole('button', {
132
+ name: /^create collection$/i,
133
+ });
134
+ await (0, test_1.expect)(createCollectionButton).toBeVisible({ timeout: 30000 });
135
+ await createCollectionButton.click({ timeout: 30000 });
136
+ }
137
+ }
138
+ async assertCollectionVisible(name) {
139
+ await (0, test_1.expect)(this.page
140
+ .getByRole('heading', { name })
141
+ .or(this.page.getByText(name))
142
+ .first()).toBeVisible({ timeout: 60000 });
143
+ }
144
+ async renameCollection(newName) {
145
+ await (0, test_1.expect)(this.collectionContextMenuButton).toBeVisible({
146
+ timeout: 30000,
147
+ });
148
+ await this.collectionContextMenuButton.click({ timeout: 30000 });
149
+ await (0, test_1.expect)(this.editContextMenuOption).toBeVisible({ timeout: 30000 });
150
+ await this.editContextMenuOption.click({ timeout: 30000 });
151
+ await (0, test_1.expect)(this.collectionNameInput).toBeVisible({ timeout: 30000 });
152
+ await this.collectionNameInput.click();
153
+ await this.collectionNameInput.fill(newName);
154
+ await (0, test_1.expect)(this.createCollectionConfirmButton).toBeVisible({
155
+ timeout: 30000,
156
+ });
157
+ await this.createCollectionConfirmButton.click({ timeout: 30000 });
158
+ }
159
+ async deleteCollection() {
160
+ await (0, test_1.expect)(this.collectionContextMenuButton).toBeVisible({
161
+ timeout: 30000,
162
+ });
163
+ await this.collectionContextMenuButton.click({ timeout: 30000 });
164
+ await (0, test_1.expect)(this.deleteContextMenuOption).toBeVisible({ timeout: 30000 });
165
+ await this.deleteContextMenuOption.click({ timeout: 30000 });
166
+ await (0, test_1.expect)(this.confirmDeleteButton).toBeVisible({ timeout: 30000 });
167
+ await this.confirmDeleteButton.click({ timeout: 30000 });
168
+ }
169
+ async assertCollectionNotVisible(name) {
170
+ await (0, test_1.expect)(this.page.getByText(name).first()).toBeHidden({
171
+ timeout: 60000,
172
+ });
173
+ }
174
+ }
175
+ exports.OptimizeCollectionsPage = OptimizeCollectionsPage;
@@ -0,0 +1,11 @@
1
+ import { Page, Locator } from '@playwright/test';
2
+ declare class OptimizeDashboardPage {
3
+ private page;
4
+ readonly filterTable: Locator;
5
+ constructor(page: Page);
6
+ clickFilterTable(): Promise<void>;
7
+ fillFilterTable(processName: string): Promise<void>;
8
+ processLinkAssertion(processName: string, maxRetries: number, retryDelay?: number): Promise<void>;
9
+ processOwnerNameAssertion(processName: string, userEmail: string): Promise<void>;
10
+ }
11
+ export { OptimizeDashboardPage };
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OptimizeDashboardPage = void 0;
4
+ const test_1 = require("@playwright/test");
5
+ class OptimizeDashboardPage {
6
+ page;
7
+ filterTable;
8
+ constructor(page) {
9
+ this.page = page;
10
+ // Optimize's Design System EntityList replaced the Carbon table toolbar
11
+ // search (placeholder "Filter table") with a plain input whose placeholder
12
+ // is the `home.search.name` translation, "Search for name...". With the
13
+ // old placeholder `clickFilterTable` waited out its 120s on every one of
14
+ // the five attempts, which is what reported "Process link in Optimize
15
+ // assertion failed after 5 attempts".
16
+ this.filterTable = page.getByPlaceholder(/Search for name/i);
17
+ }
18
+ async clickFilterTable() {
19
+ await this.filterTable.click({ timeout: 120000 });
20
+ }
21
+ async fillFilterTable(processName) {
22
+ await this.filterTable.fill(processName, { timeout: 60000 });
23
+ await this.filterTable.press('Enter');
24
+ }
25
+ async processLinkAssertion(processName, maxRetries, retryDelay = 60000) {
26
+ for (let attempt = 0; attempt < maxRetries; attempt++) {
27
+ try {
28
+ await this.page.reload();
29
+ await this.clickFilterTable();
30
+ await this.fillFilterTable(processName);
31
+ await (0, test_1.expect)(this.page.getByRole('link', { name: processName })).toBeVisible({ timeout: 70000 });
32
+ return;
33
+ }
34
+ catch (error) {
35
+ if (attempt < maxRetries - 1) {
36
+ console.warn(`Attempt ${attempt + 1} failed for asserting process link in Optimize. Retrying...`);
37
+ await new Promise((resolve) => setTimeout(resolve, retryDelay));
38
+ }
39
+ else {
40
+ throw new Error(`Process link in Optimize assertion failed after ${maxRetries} attempts`);
41
+ }
42
+ }
43
+ }
44
+ }
45
+ async processOwnerNameAssertion(processName, userEmail) {
46
+ const maxRetries = 15;
47
+ const retryDelay = 60000;
48
+ const localPart = userEmail.split('@')[0];
49
+ const uuid = localPart.replace('qa-user-', '');
50
+ const result = !uuid ? 'QA Camunda' : `QA User ${uuid}`;
51
+ for (let attempt = 0; attempt < maxRetries; attempt++) {
52
+ try {
53
+ await (0, test_1.expect)(this.page.getByRole('row', {
54
+ name: `${processName}\nProcess\n\t${result}`,
55
+ })).toBeVisible({ timeout: 90000 });
56
+ return;
57
+ }
58
+ catch (error) {
59
+ if (attempt < maxRetries - 1) {
60
+ console.warn(`Attempt ${attempt + 1} failed for asserting owner name ${result} assertion for ${processName} in Optimize.. Retrying...`);
61
+ await this.page.reload();
62
+ await new Promise((resolve) => setTimeout(resolve, retryDelay));
63
+ }
64
+ else {
65
+ throw new Error(`Owner name ${result} assertion for ${processName} failed after ${maxRetries} attempts`);
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ exports.OptimizeDashboardPage = OptimizeDashboardPage;
@@ -0,0 +1,17 @@
1
+ import { Page, Locator } from '@playwright/test';
2
+ declare class OptimizeHomePage {
3
+ private page;
4
+ readonly collectionsLink: Locator;
5
+ readonly dashboardLink: Locator;
6
+ readonly modalCloseButton: Locator;
7
+ readonly optimizeBanner: Locator;
8
+ readonly noPermissionsMessage: Locator;
9
+ readonly filterTableInput: Locator;
10
+ constructor(page: Page);
11
+ private waitForOptimizeToRender;
12
+ closeModalIfVisible(): Promise<void>;
13
+ assertProcessImportedWithRetry(processName: string, timeout: number, maxRetries?: number): Promise<void>;
14
+ clickCollectionsLink(): Promise<void>;
15
+ clickDashboardLink(): Promise<void>;
16
+ }
17
+ export { OptimizeHomePage };
@@ -0,0 +1,171 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OptimizeHomePage = void 0;
4
+ const test_1 = require("@playwright/test");
5
+ const sleep_1 = require("../../utils/sleep");
6
+ // Optimize's SSO hand-off can fail on the way into the app and leave the tab on
7
+ // `/login?error`, which is not an Optimize page at all: nothing on it ever
8
+ // renders a process definition, and `page.reload()` only re-requests the very
9
+ // same static error page. A polling loop that reloads is therefore stuck there
10
+ // for its whole budget -- that is what reported "Assertion of process <name> in
11
+ // Optimize failed after 1200000ms of polling
12
+ // (url=<region>.optimize.ultrawombat.com/login?error)". Re-entering the app
13
+ // root instead restarts the hand-off, so the poll can get back onto the app.
14
+ const OPTIMIZE_LOGIN_PATH = /^\/login\/?$/;
15
+ function isOptimizeLoginPage(rawUrl) {
16
+ try {
17
+ return OPTIMIZE_LOGIN_PATH.test(new URL(rawUrl).pathname);
18
+ }
19
+ catch {
20
+ // Not a parsable URL yet (e.g. a tab still on about:blank).
21
+ return false;
22
+ }
23
+ }
24
+ class OptimizeHomePage {
25
+ page;
26
+ collectionsLink;
27
+ dashboardLink;
28
+ modalCloseButton;
29
+ optimizeBanner;
30
+ noPermissionsMessage;
31
+ filterTableInput;
32
+ constructor(page) {
33
+ this.page = page;
34
+ // Optimize's Design System EntityList search; its placeholder is the
35
+ // `home.search.name` translation, "Search for name...".
36
+ this.filterTableInput = page.getByPlaceholder(/Search for name/i);
37
+ // The same navigation rollout moved Dashboards/Collections out of the top
38
+ // banner into a left sidebar (`<nav aria-label="Main navigation">`), and
39
+ // the legacy banner navigation was deleted outright, so a banner-scoped
40
+ // link can never resolve again.
41
+ this.collectionsLink = page
42
+ .getByRole('navigation', { name: 'Main navigation' })
43
+ .getByRole('link', { name: 'Collections' });
44
+ this.dashboardLink = page.getByRole('link', { name: 'Dashboards' });
45
+ this.modalCloseButton = page.locator('button').filter({ hasText: /^Close$/ });
46
+ // Optimize's Design System navigation ("nav V2") renders the logo link as
47
+ // "Camunda Optimize"; the legacy header used "Camunda logo Optimize" and
48
+ // stays available as a fallback, so match either so the banner gate works
49
+ // whichever navigation is served (mirrors OperateHomePage.operateBanner).
50
+ this.optimizeBanner = page
51
+ .getByRole('link', { name: 'Camunda logo Optimize' })
52
+ .or(page.getByRole('link', { name: 'Camunda Optimize' }));
53
+ this.noPermissionsMessage = page.getByText('default backend - 404');
54
+ }
55
+ // Every round's reload returns while the Optimize SPA is still mounting,
56
+ // so probes that answer at once (the onboarding modal) only mean something
57
+ // after the app shell has rendered. Bounded, so a page that never renders
58
+ // Optimize still falls through and reloads.
59
+ async waitForOptimizeToRender(timeout) {
60
+ await this.filterTableInput
61
+ .or(this.optimizeBanner)
62
+ .first()
63
+ .waitFor({ state: 'visible', timeout })
64
+ .catch(() => { });
65
+ }
66
+ async closeModalIfVisible() {
67
+ if (await this.modalCloseButton.isVisible()) {
68
+ await this.modalCloseButton.click({ timeout: 60000 });
69
+ }
70
+ }
71
+ // Optimize pulls process definitions on its own import cycle, so the only
72
+ // lever is patience — but the patience has to be spent re-asking, not idling.
73
+ // This list does not live-update: a definition that lands mid-wait is only
74
+ // rendered by the next reload, so a long `toBeVisible` per round just sits on
75
+ // a page that already answered. `timeout` x `maxRetries` is kept as the total
76
+ // budget and spent in short slices that each reload, which turns 10 re-asks
77
+ // over 20 minutes into one every ~20s. That is the same "re-ask instead of
78
+ // idling" change already made for the Operate import waits, and it is what
79
+ // ran out as "Assertion of process <name> in Optimize failed after 10
80
+ // attempts" whenever the import lagged behind the exporter.
81
+ // Each round also dismisses the onboarding modal Optimize shows on this
82
+ // page — it is re-rendered by every reload and covers the process list, so
83
+ // without closing it the remaining rounds all assert against a modal.
84
+ async assertProcessImportedWithRetry(processName, timeout, maxRetries = 8) {
85
+ const processLink = this.page.getByRole('link', { name: processName });
86
+ const deadline = Date.now() + timeout * maxRetries;
87
+ // Short enough that a definition imported mid-wait is picked up by the next
88
+ // reload within seconds, long enough to keep the reload rate modest.
89
+ const checkSlice = 20000;
90
+ let lastError;
91
+ while (Date.now() < deadline) {
92
+ const remaining = deadline - Date.now();
93
+ if (remaining <= 0) {
94
+ break;
95
+ }
96
+ try {
97
+ await this.waitForOptimizeToRender(Math.min(checkSlice, remaining));
98
+ await this.closeModalIfVisible();
99
+ // No "Search for name" filtering here: on this page it narrows the
100
+ // entity list and the process link never renders once it is applied.
101
+ // The one round that passed was one where the input had not rendered
102
+ // yet, and 8.9's passing smoke asserts on the unfiltered page.
103
+ await (0, test_1.expect)(processLink).toBeVisible({
104
+ timeout: Math.min(checkSlice, remaining),
105
+ });
106
+ return;
107
+ }
108
+ catch (error) {
109
+ lastError = error;
110
+ }
111
+ if (Date.now() >= deadline) {
112
+ break;
113
+ }
114
+ // A reload that races an in-flight navigation fails with
115
+ // `net::ERR_ABORTED; maybe frame was detached?`, a DNS blip with
116
+ // `net::ERR_NAME_NOT_RESOLVED`. Both used to escape this polling loop
117
+ // and fail the test outright instead of being retried on the next round;
118
+ // an import that genuinely never lands still fails below.
119
+ try {
120
+ if (isOptimizeLoginPage(this.page.url())) {
121
+ // Off the app entirely (see the note above the class): re-enter the
122
+ // app root so the SSO hand-off is retried. Reloading the login page
123
+ // can only ever render the login page again.
124
+ await this.page.goto(new URL('/', this.page.url()).toString(), {
125
+ waitUntil: 'domcontentloaded',
126
+ });
127
+ }
128
+ else {
129
+ await this.page.reload();
130
+ await this.page.waitForLoadState('domcontentloaded');
131
+ }
132
+ }
133
+ catch (error) {
134
+ console.warn(`Could not reload the Optimize process list: ${error}`);
135
+ }
136
+ }
137
+ throw new Error(`Assertion of process ${processName} in Optimize failed after ` +
138
+ `${timeout * maxRetries}ms of polling (url=${this.page.url()}): ` +
139
+ `${lastError}`);
140
+ }
141
+ async clickCollectionsLink() {
142
+ if (await this.modalCloseButton.isVisible({ timeout: 60000 })) {
143
+ await this.modalCloseButton.click();
144
+ }
145
+ await this.collectionsLink.click({ timeout: 60000 });
146
+ }
147
+ async clickDashboardLink() {
148
+ const maxRetries = 5;
149
+ for (let attempt = 0; attempt < maxRetries; attempt++) {
150
+ try {
151
+ if (await this.modalCloseButton.isVisible({ timeout: 15000 })) {
152
+ await this.modalCloseButton.click({ timeout: 60000 });
153
+ }
154
+ await (0, test_1.expect)(this.dashboardLink).toBeVisible({ timeout: 60000 });
155
+ await this.dashboardLink.click({ timeout: 60000 });
156
+ return;
157
+ }
158
+ catch (error) {
159
+ if (attempt < maxRetries - 1) {
160
+ console.warn(`Attempt ${attempt + 1} failed. Retrying...`);
161
+ await this.page.reload();
162
+ await (0, sleep_1.sleep)(60000);
163
+ }
164
+ else {
165
+ throw new Error(`Assertion failed after ${maxRetries} attempts: ` + error);
166
+ }
167
+ }
168
+ }
169
+ }
170
+ }
171
+ exports.OptimizeHomePage = OptimizeHomePage;