@camunda/e2e-test-suite 0.0.451 → 0.0.452

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 (37) hide show
  1. package/dist/pages/SM-8.10/ClusterPage.js +1 -0
  2. package/dist/pages/SM-8.10/ManagementIdentityPage.js +4 -3
  3. package/dist/pages/SM-8.10/ModelerCreatePage.d.ts +1 -0
  4. package/dist/pages/SM-8.10/ModelerCreatePage.js +48 -20
  5. package/dist/pages/SM-8.10/NavigationPage.js +29 -17
  6. package/dist/pages/SM-8.10/OCIdentityHomePage.js +4 -3
  7. package/dist/pages/SM-8.10/OCTenantPage.js +3 -5
  8. package/dist/pages/SM-8.10/OperateHomePage.js +4 -2
  9. package/dist/pages/SM-8.10/OperateProcessesPage.d.ts +1 -0
  10. package/dist/pages/SM-8.10/OperateProcessesPage.js +18 -23
  11. package/dist/pages/SM-8.10/TaskPanelPage.js +2 -3
  12. package/dist/pages/SM-8.8/ModelerCreatePage.d.ts +1 -0
  13. package/dist/pages/SM-8.8/ModelerCreatePage.js +22 -20
  14. package/dist/pages/SM-8.8/OCTenantPage.js +3 -5
  15. package/dist/pages/SM-8.8/OperateHomePage.js +1 -1
  16. package/dist/pages/SM-8.8/OperateProcessesPage.js +3 -3
  17. package/dist/pages/SM-8.8/TaskPanelPage.js +2 -2
  18. package/dist/pages/SM-8.9/ClusterPage.js +1 -0
  19. package/dist/pages/SM-8.9/ManagementIdentityPage.js +4 -3
  20. package/dist/pages/SM-8.9/ModelerCreatePage.d.ts +1 -0
  21. package/dist/pages/SM-8.9/ModelerCreatePage.js +52 -20
  22. package/dist/pages/SM-8.9/NavigationPage.js +29 -17
  23. package/dist/pages/SM-8.9/OCIdentityHomePage.js +4 -3
  24. package/dist/pages/SM-8.9/OCTenantPage.js +3 -5
  25. package/dist/pages/SM-8.9/OperateHomePage.js +33 -8
  26. package/dist/pages/SM-8.9/OperateProcessesPage.js +5 -3
  27. package/dist/pages/SM-8.9/TaskPanelPage.js +2 -3
  28. package/dist/tests/SM-8.10/connectors-user-flows.spec.js +15 -8
  29. package/dist/tests/SM-8.10/hto-user-flows.spec.js +7 -6
  30. package/dist/tests/SM-8.10/mt-enabled-user-flows.spec.js +41 -38
  31. package/dist/tests/SM-8.10/rba-enabled-user-flows.spec.js +0 -7
  32. package/dist/tests/SM-8.8/connectors-user-flows.spec.js +14 -6
  33. package/dist/tests/SM-8.8/mt-enabled-user-flows.spec.js +40 -38
  34. package/dist/tests/SM-8.9/connectors-user-flows.spec.js +15 -8
  35. package/dist/tests/SM-8.9/mt-enabled-user-flows.spec.js +40 -38
  36. package/dist/utils/resetSession.js +4 -2
  37. package/package.json +1 -1
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const test_1 = require("@playwright/test");
4
4
  const SM_8_10_1 = require("../../fixtures/SM-8.10");
5
5
  const _setup_1 = require("../../test-setup.js");
6
- const sleep_1 = require("../../utils/sleep");
7
6
  const UtilitiesPage_1 = require("../../pages/SM-8.10/UtilitiesPage");
8
7
  const resetSession_1 = require("../../utils/resetSession");
9
8
  const expectTextWithRetry_1 = require("../../utils/assertionHelpers/expectTextWithRetry");
@@ -81,18 +80,16 @@ if (process.env.IS_MT === 'true') {
81
80
  await SM_8_10_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
82
81
  await navigationPage.goToOptimize();
83
82
  await optimizeHomePage.clickDashboardLink();
84
- await (0, sleep_1.sleep)(60000);
85
- await page.reload();
86
- await optimizeDashboardPage.clickFilterTable();
87
- await optimizeDashboardPage.fillFilterTable(processName);
88
- await optimizeDashboardPage.processAssertion(processName, {
89
- timeout: 250000,
90
- });
83
+ await (0, test_1.expect)(async () => {
84
+ await page.reload();
85
+ await optimizeDashboardPage.clickFilterTable();
86
+ await optimizeDashboardPage.fillFilterTable(processName);
87
+ await optimizeDashboardPage.processAssertion(processName);
88
+ }).toPass({ timeout: 300000, intervals: [15000] });
91
89
  });
92
90
  }
93
91
  await SM_8_10_1.test.step('Clear cookies and reset session', async () => {
94
92
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
95
- await (0, sleep_1.sleep)(10000);
96
93
  });
97
94
  await SM_8_10_1.test.step('Open Cross Component Test Project', async () => {
98
95
  await navigationPage.goToModeler(undefined, credentials);
@@ -111,16 +108,19 @@ if (process.env.IS_MT === 'true') {
111
108
  await SM_8_10_1.test.step('Assert "test" user cannot view process in Tasklist, Operate or Optimize', async () => {
112
109
  await navigationPage.goToOperate(undefined, credentials);
113
110
  await operateHomePage.clickProcessesTab();
111
+ await page.waitForLoadState('networkidle');
114
112
  await (0, test_1.expect)(page.getByText(processName)).not.toBeVisible({
115
113
  timeout: 60000,
116
114
  });
117
115
  await navigationPage.goToTasklist(undefined, credentials);
116
+ await page.waitForLoadState('networkidle');
118
117
  await (0, test_1.expect)(page.getByText(processName)).not.toBeVisible({
119
118
  timeout: 60000,
120
119
  });
121
120
  if (process.env.IS_OPTIMIZE !== 'false') {
122
121
  await navigationPage.goToOptimize(undefined, credentials);
123
122
  await optimizeHomePage.clickDashboardLink();
123
+ await page.waitForLoadState('networkidle');
124
124
  await (0, test_1.expect)(page.getByText(processName)).not.toBeVisible({
125
125
  timeout: 60000,
126
126
  });
@@ -177,11 +177,12 @@ if (process.env.IS_MT === 'true') {
177
177
  await SM_8_10_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
178
178
  await navigationPage.goToOptimize();
179
179
  await optimizeHomePage.clickDashboardLink();
180
- await (0, sleep_1.sleep)(60000);
181
- await page.reload();
182
- await optimizeDashboardPage.clickFilterTable();
183
- await optimizeDashboardPage.fillFilterTable(processName);
184
- await optimizeDashboardPage.processAssertion(processName);
180
+ await (0, test_1.expect)(async () => {
181
+ await page.reload();
182
+ await optimizeDashboardPage.clickFilterTable();
183
+ await optimizeDashboardPage.fillFilterTable(processName);
184
+ await optimizeDashboardPage.processAssertion(processName);
185
+ }).toPass({ timeout: 300000, intervals: [15000] });
185
186
  });
186
187
  }
187
188
  });
@@ -216,7 +217,6 @@ if (process.env.IS_MT === 'true') {
216
217
  });
217
218
  await SM_8_10_1.test.step('Clear cookies and reset session', async () => {
218
219
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
219
- await (0, sleep_1.sleep)(10000);
220
220
  });
221
221
  await SM_8_10_1.test.step('Open Cross Component Test Project', async () => {
222
222
  await navigationPage.goToModeler(undefined, credentials);
@@ -250,11 +250,12 @@ if (process.env.IS_MT === 'true') {
250
250
  await SM_8_10_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
251
251
  await navigationPage.goToOptimize(undefined, credentials);
252
252
  await optimizeHomePage.clickDashboardLink();
253
- await (0, sleep_1.sleep)(60000);
254
- await page.reload();
255
- await optimizeDashboardPage.clickFilterTable();
256
- await optimizeDashboardPage.fillFilterTable(processName);
257
- await optimizeDashboardPage.processAssertion(processName);
253
+ await (0, test_1.expect)(async () => {
254
+ await page.reload();
255
+ await optimizeDashboardPage.clickFilterTable();
256
+ await optimizeDashboardPage.fillFilterTable(processName);
257
+ await optimizeDashboardPage.processAssertion(processName);
258
+ }).toPass({ timeout: 300000, intervals: [15000] });
258
259
  });
259
260
  }
260
261
  });
@@ -292,7 +293,6 @@ if (process.env.IS_MT === 'true') {
292
293
  });
293
294
  await SM_8_10_1.test.step('Clear cookies and reset session', async () => {
294
295
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
295
- await (0, sleep_1.sleep)(10000);
296
296
  });
297
297
  await SM_8_10_1.test.step('Open Cross Component Test Project', async () => {
298
298
  await navigationPage.goToModeler(undefined, credentials);
@@ -321,11 +321,12 @@ if (process.env.IS_MT === 'true') {
321
321
  await SM_8_10_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
322
322
  await navigationPage.goToOptimize(undefined, credentials);
323
323
  await optimizeHomePage.clickDashboardLink();
324
- await (0, sleep_1.sleep)(60000);
325
- await page.reload();
326
- await optimizeDashboardPage.clickFilterTable();
327
- await optimizeDashboardPage.fillFilterTable(processName);
328
- await optimizeDashboardPage.processAssertion(processName);
324
+ await (0, test_1.expect)(async () => {
325
+ await page.reload();
326
+ await optimizeDashboardPage.clickFilterTable();
327
+ await optimizeDashboardPage.fillFilterTable(processName);
328
+ await optimizeDashboardPage.processAssertion(processName);
329
+ }).toPass({ timeout: 300000, intervals: [15000] });
329
330
  });
330
331
  }
331
332
  });
@@ -378,11 +379,12 @@ if (process.env.IS_MT === 'true') {
378
379
  await SM_8_10_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
379
380
  await navigationPage.goToOptimize();
380
381
  await optimizeHomePage.clickDashboardLink();
381
- await (0, sleep_1.sleep)(60000);
382
- await page.reload();
383
- await optimizeDashboardPage.clickFilterTable();
384
- await optimizeDashboardPage.fillFilterTable(processName);
385
- await optimizeDashboardPage.processAssertion(processName);
382
+ await (0, test_1.expect)(async () => {
383
+ await page.reload();
384
+ await optimizeDashboardPage.clickFilterTable();
385
+ await optimizeDashboardPage.fillFilterTable(processName);
386
+ await optimizeDashboardPage.processAssertion(processName);
387
+ }).toPass({ timeout: 300000, intervals: [15000] });
386
388
  });
387
389
  }
388
390
  });
@@ -518,13 +520,12 @@ if (process.env.IS_MT === 'true') {
518
520
  await SM_8_10_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
519
521
  await navigationPage.goToOptimize();
520
522
  await optimizeHomePage.clickDashboardLink();
521
- await (0, sleep_1.sleep)(90000);
522
- await page.reload();
523
- await optimizeDashboardPage.clickFilterTable();
524
- await optimizeDashboardPage.fillFilterTable(processName1);
525
- await optimizeDashboardPage.processAssertion(processName1, {
526
- timeout: 300000,
527
- });
523
+ await (0, test_1.expect)(async () => {
524
+ await page.reload();
525
+ await optimizeDashboardPage.clickFilterTable();
526
+ await optimizeDashboardPage.fillFilterTable(processName1);
527
+ await optimizeDashboardPage.processAssertion(processName1);
528
+ }).toPass({ timeout: 300000, intervals: [15000] });
528
529
  });
529
530
  }
530
531
  await SM_8_10_1.test.step('Delete Tenant Access For Demo User OC', async () => {
@@ -558,6 +559,7 @@ if (process.env.IS_MT === 'true') {
558
559
  await SM_8_10_1.test.step('Assert "demo" user cannot view process in Tasklist, Operate or Optimize', async () => {
559
560
  await navigationPage.goToOperate();
560
561
  await operateHomePage.clickProcessesTab();
562
+ await page.waitForLoadState('networkidle');
561
563
  await (0, test_1.expect)(page.getByText(processName1)).not.toBeVisible({
562
564
  timeout: 60000,
563
565
  });
@@ -565,6 +567,7 @@ if (process.env.IS_MT === 'true') {
565
567
  timeout: 60000,
566
568
  });
567
569
  await navigationPage.goToTasklist();
570
+ await page.waitForLoadState('networkidle');
568
571
  await (0, test_1.expect)(page.getByText(processName1)).not.toBeVisible({
569
572
  timeout: 60000,
570
573
  });
@@ -101,7 +101,6 @@ if (node_process_1.default.env.IS_RBA === 'true') {
101
101
  });
102
102
  await SM_8_10_1.test.step('Clear cookies and reset session', async () => {
103
103
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
104
- await (0, sleep_1.sleep)(10000);
105
104
  });
106
105
  await SM_8_10_1.test.step('Navigate to Web Modeler', async () => {
107
106
  await navigationPage.goToModeler(undefined, credentials);
@@ -239,7 +238,6 @@ if (node_process_1.default.env.IS_RBA === 'true') {
239
238
  });
240
239
  await SM_8_10_1.test.step('Clear cookies and reset session', async () => {
241
240
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
242
- await (0, sleep_1.sleep)(10000);
243
241
  });
244
242
  await SM_8_10_1.test.step('Navigate to Web Modeler', async () => {
245
243
  await navigationPage.goToModeler(undefined, credentials);
@@ -385,7 +383,6 @@ if (node_process_1.default.env.IS_RBA === 'true') {
385
383
  });
386
384
  await SM_8_10_1.test.step('Clear cookies and reset session', async () => {
387
385
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
388
- await (0, sleep_1.sleep)(10000);
389
386
  });
390
387
  await SM_8_10_1.test.step('Navigate to Web Modeler', async () => {
391
388
  await navigationPage.goToModeler(undefined, credentials);
@@ -424,7 +421,6 @@ if (node_process_1.default.env.IS_RBA === 'true') {
424
421
  });
425
422
  await SM_8_10_1.test.step('Clear cookies and reset session', async () => {
426
423
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
427
- await (0, sleep_1.sleep)(10000);
428
424
  });
429
425
  await SM_8_10_1.test.step('Navigate to Operate and Check Processes Are Not Accessible', async () => {
430
426
  await navigationPage.goToOperate(undefined, credentials);
@@ -533,7 +529,6 @@ if (node_process_1.default.env.IS_RBA === 'true') {
533
529
  });
534
530
  await SM_8_10_1.test.step('Clear cookies and reset session', async () => {
535
531
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
536
- await (0, sleep_1.sleep)(10000);
537
532
  });
538
533
  await SM_8_10_1.test.step('Navigate to Web Modeler', async () => {
539
534
  await navigationPage.goToModeler(undefined, credentials);
@@ -572,7 +567,6 @@ if (node_process_1.default.env.IS_RBA === 'true') {
572
567
  });
573
568
  await SM_8_10_1.test.step('Clear cookies and reset session', async () => {
574
569
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
575
- await (0, sleep_1.sleep)(10000);
576
570
  });
577
571
  await SM_8_10_1.test.step('Navigate to Operate and Check Processes Are Not Accessible', async () => {
578
572
  await navigationPage.goToOperate(undefined, credentials);
@@ -659,7 +653,6 @@ if (node_process_1.default.env.IS_RBA === 'true') {
659
653
  });
660
654
  await SM_8_10_1.test.step('Clear cookies and reset session', async () => {
661
655
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
662
- await (0, sleep_1.sleep)(10000);
663
656
  });
664
657
  await SM_8_10_1.test.step('Navigate to Web Modeler', async () => {
665
658
  await navigationPage.goToModeler(undefined, credentials);
@@ -217,12 +217,20 @@ SM_8_8_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
217
217
  await SM_8_8_1.test.step('Make Authorization Request', async () => {
218
218
  const baseURL = process.env.PLAYWRIGHT_BASE_URL ||
219
219
  `http://gke-${process.env.BASE_URL}.ci.distro.ultrawombat.com`;
220
- const response = await request.post(`${baseURL}/connectors/inbound/test-webhook-intermediate${randomString}`, {
221
- data: {
222
- test: 'test',
223
- },
224
- });
225
- (0, test_1.expect)(response.status()).toBe(200);
220
+ const url = `${baseURL}/connectors/inbound/test-webhook-intermediate${randomString}`;
221
+ // Poll for inbound endpoint readiness — connector deployment is async after PI start
222
+ const deadline = Date.now() + 180000;
223
+ let response;
224
+ let attempt = 0;
225
+ while (Date.now() < deadline) {
226
+ attempt++;
227
+ response = await request.post(url, { data: { test: 'test' } });
228
+ if (response.status() === 200)
229
+ break;
230
+ console.error(`Webhook readiness attempt ${attempt}: ${url} -> ${response.status()}`);
231
+ await (0, sleep_1.sleep)(10000);
232
+ }
233
+ (0, test_1.expect)(response?.status()).toBe(200);
226
234
  await (0, sleep_1.sleep)(30000);
227
235
  });
228
236
  await SM_8_8_1.test.step('Assert Diagram Has Successfully Completed in Operate', async () => {
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const test_1 = require("@playwright/test");
4
4
  const SM_8_8_1 = require("../../fixtures/SM-8.8");
5
5
  const _setup_1 = require("../../test-setup.js");
6
- const sleep_1 = require("../../utils/sleep");
7
6
  const UtilitiesPage_1 = require("../../pages/SM-8.8/UtilitiesPage");
8
7
  const resetSession_1 = require("../../utils/resetSession");
9
8
  const expectTextWithRetry_1 = require("../../utils/assertionHelpers/expectTextWithRetry");
@@ -80,18 +79,16 @@ if (process.env.IS_MT === 'true') {
80
79
  await SM_8_8_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
81
80
  await navigationPage.goToOptimize();
82
81
  await optimizeHomePage.clickDashboardLink();
83
- await (0, sleep_1.sleep)(60000);
84
- await page.reload();
85
- await optimizeDashboardPage.clickFilterTable();
86
- await optimizeDashboardPage.fillFilterTable(processName);
87
- await optimizeDashboardPage.processAssertion(processName, {
88
- timeout: 200000,
89
- });
82
+ await (0, test_1.expect)(async () => {
83
+ await page.reload();
84
+ await optimizeDashboardPage.clickFilterTable();
85
+ await optimizeDashboardPage.fillFilterTable(processName);
86
+ await optimizeDashboardPage.processAssertion(processName);
87
+ }).toPass({ timeout: 300000, intervals: [15000] });
90
88
  });
91
89
  }
92
90
  await SM_8_8_1.test.step('Clear cookies and reset session', async () => {
93
91
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
94
- await (0, sleep_1.sleep)(10000);
95
92
  });
96
93
  await SM_8_8_1.test.step('Open Cross Component Test Project', async () => {
97
94
  await navigationPage.goToModeler(undefined, credentials);
@@ -110,10 +107,12 @@ if (process.env.IS_MT === 'true') {
110
107
  await SM_8_8_1.test.step('Assert "test" user cannot view process in Tasklist, Operate or Optimize', async () => {
111
108
  await navigationPage.goToOperate(undefined, credentials);
112
109
  await operateHomePage.clickProcessesTab();
110
+ await page.waitForLoadState('networkidle');
113
111
  await (0, test_1.expect)(page.getByText(processName)).not.toBeVisible({
114
112
  timeout: 60000,
115
113
  });
116
114
  await navigationPage.goToTasklist(undefined, credentials);
115
+ await page.waitForLoadState('networkidle');
117
116
  await (0, test_1.expect)(page.getByText(processName)).not.toBeVisible({
118
117
  timeout: 60000,
119
118
  });
@@ -177,11 +176,12 @@ if (process.env.IS_MT === 'true') {
177
176
  await SM_8_8_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
178
177
  await navigationPage.goToOptimize();
179
178
  await optimizeHomePage.clickDashboardLink();
180
- await (0, sleep_1.sleep)(60000);
181
- await page.reload();
182
- await optimizeDashboardPage.clickFilterTable();
183
- await optimizeDashboardPage.fillFilterTable(processName);
184
- await optimizeDashboardPage.processAssertion(processName);
179
+ await (0, test_1.expect)(async () => {
180
+ await page.reload();
181
+ await optimizeDashboardPage.clickFilterTable();
182
+ await optimizeDashboardPage.fillFilterTable(processName);
183
+ await optimizeDashboardPage.processAssertion(processName);
184
+ }).toPass({ timeout: 300000, intervals: [15000] });
185
185
  });
186
186
  }
187
187
  });
@@ -216,7 +216,6 @@ if (process.env.IS_MT === 'true') {
216
216
  });
217
217
  await SM_8_8_1.test.step('Clear cookies and reset session', async () => {
218
218
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
219
- await (0, sleep_1.sleep)(10000);
220
219
  });
221
220
  await SM_8_8_1.test.step('Open Cross Component Test Project', async () => {
222
221
  await navigationPage.goToModeler(undefined, credentials);
@@ -250,11 +249,12 @@ if (process.env.IS_MT === 'true') {
250
249
  await SM_8_8_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
251
250
  await navigationPage.goToOptimize(undefined, credentials);
252
251
  await optimizeHomePage.clickDashboardLink();
253
- await (0, sleep_1.sleep)(60000);
254
- await page.reload();
255
- await optimizeDashboardPage.clickFilterTable();
256
- await optimizeDashboardPage.fillFilterTable(processName);
257
- await optimizeDashboardPage.processAssertion(processName);
252
+ await (0, test_1.expect)(async () => {
253
+ await page.reload();
254
+ await optimizeDashboardPage.clickFilterTable();
255
+ await optimizeDashboardPage.fillFilterTable(processName);
256
+ await optimizeDashboardPage.processAssertion(processName);
257
+ }).toPass({ timeout: 300000, intervals: [15000] });
258
258
  });
259
259
  }
260
260
  });
@@ -293,7 +293,6 @@ if (process.env.IS_MT === 'true') {
293
293
  });
294
294
  await SM_8_8_1.test.step('Clear cookies and reset session', async () => {
295
295
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
296
- await (0, sleep_1.sleep)(10000);
297
296
  });
298
297
  await SM_8_8_1.test.step('Open Cross Component Test Project', async () => {
299
298
  await navigationPage.goToModeler(undefined, credentials);
@@ -322,11 +321,12 @@ if (process.env.IS_MT === 'true') {
322
321
  await SM_8_8_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
323
322
  await navigationPage.goToOptimize(undefined, credentials);
324
323
  await optimizeHomePage.clickDashboardLink();
325
- await (0, sleep_1.sleep)(60000);
326
- await page.reload();
327
- await optimizeDashboardPage.clickFilterTable();
328
- await optimizeDashboardPage.fillFilterTable(processName);
329
- await optimizeDashboardPage.processAssertion(processName);
324
+ await (0, test_1.expect)(async () => {
325
+ await page.reload();
326
+ await optimizeDashboardPage.clickFilterTable();
327
+ await optimizeDashboardPage.fillFilterTable(processName);
328
+ await optimizeDashboardPage.processAssertion(processName);
329
+ }).toPass({ timeout: 300000, intervals: [15000] });
330
330
  });
331
331
  }
332
332
  });
@@ -379,11 +379,12 @@ if (process.env.IS_MT === 'true') {
379
379
  await SM_8_8_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
380
380
  await navigationPage.goToOptimize();
381
381
  await optimizeHomePage.clickDashboardLink();
382
- await (0, sleep_1.sleep)(60000);
383
- await page.reload();
384
- await optimizeDashboardPage.clickFilterTable();
385
- await optimizeDashboardPage.fillFilterTable(processName);
386
- await optimizeDashboardPage.processAssertion(processName);
382
+ await (0, test_1.expect)(async () => {
383
+ await page.reload();
384
+ await optimizeDashboardPage.clickFilterTable();
385
+ await optimizeDashboardPage.fillFilterTable(processName);
386
+ await optimizeDashboardPage.processAssertion(processName);
387
+ }).toPass({ timeout: 300000, intervals: [15000] });
387
388
  });
388
389
  }
389
390
  });
@@ -520,13 +521,12 @@ if (process.env.IS_MT === 'true') {
520
521
  await SM_8_8_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
521
522
  await navigationPage.goToOptimize();
522
523
  await optimizeHomePage.clickDashboardLink();
523
- await (0, sleep_1.sleep)(60000);
524
- await page.reload();
525
- await optimizeDashboardPage.clickFilterTable();
526
- await optimizeDashboardPage.fillFilterTable(processName1);
527
- await optimizeDashboardPage.processAssertion(processName1, {
528
- timeout: 300000,
529
- });
524
+ await (0, test_1.expect)(async () => {
525
+ await page.reload();
526
+ await optimizeDashboardPage.clickFilterTable();
527
+ await optimizeDashboardPage.fillFilterTable(processName1);
528
+ await optimizeDashboardPage.processAssertion(processName1);
529
+ }).toPass({ timeout: 300000, intervals: [15000] });
530
530
  });
531
531
  }
532
532
  await SM_8_8_1.test.step('Delete Tenant Access For Demo User OC', async () => {
@@ -555,6 +555,7 @@ if (process.env.IS_MT === 'true') {
555
555
  await SM_8_8_1.test.step('Assert "demo" user cannot view process in Tasklist, Operate or Optimize', async () => {
556
556
  await navigationPage.goToOperate();
557
557
  await operateHomePage.clickProcessesTab();
558
+ await page.waitForLoadState('networkidle');
558
559
  await (0, test_1.expect)(page.getByText(processName1)).not.toBeVisible({
559
560
  timeout: 60000,
560
561
  });
@@ -562,6 +563,7 @@ if (process.env.IS_MT === 'true') {
562
563
  timeout: 60000,
563
564
  });
564
565
  await navigationPage.goToTasklist();
566
+ await page.waitForLoadState('networkidle');
565
567
  await (0, test_1.expect)(page.getByText(processName1)).not.toBeVisible({
566
568
  timeout: 60000,
567
569
  });
@@ -205,14 +205,21 @@ SM_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
205
205
  await SM_8_9_1.test.step('Make Authorization Request', async () => {
206
206
  const baseURL = process.env.PLAYWRIGHT_BASE_URL ||
207
207
  `http://gke-${process.env.BASE_URL}.ci.distro.ultrawombat.com`;
208
- const response = await request.post(`${baseURL}/connectors/inbound/test-webhook-intermediate${randomString}`, {
209
- data: {
210
- test: 'test',
211
- },
212
- });
213
- if (response.status() !== 200) {
214
- console.error(`Authorization Request ${baseURL}/connectors/inbound/test-webhook-intermediate${randomString} failed with response ${response.status()}`);
215
- throw new Error(`Webhook request failed with status ${response.status()}`);
208
+ const url = `${baseURL}/connectors/inbound/test-webhook-intermediate${randomString}`;
209
+ // Poll for inbound endpoint readiness — connector deployment is async after PI start
210
+ const deadline = Date.now() + 180000;
211
+ let response;
212
+ let attempt = 0;
213
+ while (Date.now() < deadline) {
214
+ attempt++;
215
+ response = await request.post(url, { data: { test: 'test' } });
216
+ if (response.status() === 200)
217
+ break;
218
+ console.error(`Webhook readiness attempt ${attempt}: ${url} -> ${response.status()}`);
219
+ await (0, sleep_1.sleep)(10000);
220
+ }
221
+ if (!response || response.status() !== 200) {
222
+ throw new Error(`Webhook request failed with status ${response?.status()} after ${attempt} attempts`);
216
223
  }
217
224
  await (0, sleep_1.sleep)(60000);
218
225
  });
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const test_1 = require("@playwright/test");
4
4
  const SM_8_9_1 = require("../../fixtures/SM-8.9");
5
5
  const _setup_1 = require("../../test-setup.js");
6
- const sleep_1 = require("../../utils/sleep");
7
6
  const UtilitiesPage_1 = require("../../pages/SM-8.9/UtilitiesPage");
8
7
  const resetSession_1 = require("../../utils/resetSession");
9
8
  const expectTextWithRetry_1 = require("../../utils/assertionHelpers/expectTextWithRetry");
@@ -81,18 +80,16 @@ if (process.env.IS_MT === 'true') {
81
80
  await SM_8_9_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
82
81
  await navigationPage.goToOptimize();
83
82
  await optimizeHomePage.clickDashboardLink();
84
- await (0, sleep_1.sleep)(60000);
85
- await page.reload();
86
- await optimizeDashboardPage.clickFilterTable();
87
- await optimizeDashboardPage.fillFilterTable(processName);
88
- await optimizeDashboardPage.processAssertion(processName, {
89
- timeout: 250000,
90
- });
83
+ await (0, test_1.expect)(async () => {
84
+ await page.reload();
85
+ await optimizeDashboardPage.clickFilterTable();
86
+ await optimizeDashboardPage.fillFilterTable(processName);
87
+ await optimizeDashboardPage.processAssertion(processName);
88
+ }).toPass({ timeout: 300000, intervals: [15000] });
91
89
  });
92
90
  }
93
91
  await SM_8_9_1.test.step('Clear cookies and reset session', async () => {
94
92
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
95
- await (0, sleep_1.sleep)(10000);
96
93
  });
97
94
  await SM_8_9_1.test.step('Open Cross Component Test Project', async () => {
98
95
  await navigationPage.goToModeler(undefined, credentials);
@@ -111,10 +108,12 @@ if (process.env.IS_MT === 'true') {
111
108
  await SM_8_9_1.test.step('Assert "test" user cannot view process in Tasklist, Operate or Optimize', async () => {
112
109
  await navigationPage.goToOperate(undefined, credentials);
113
110
  await operateHomePage.clickProcessesTab();
111
+ await page.waitForLoadState('networkidle');
114
112
  await (0, test_1.expect)(page.getByText(processName)).not.toBeVisible({
115
113
  timeout: 60000,
116
114
  });
117
115
  await navigationPage.goToTasklist(undefined, credentials);
116
+ await page.waitForLoadState('networkidle');
118
117
  await (0, test_1.expect)(page.getByText(processName)).not.toBeVisible({
119
118
  timeout: 60000,
120
119
  });
@@ -175,11 +174,12 @@ if (process.env.IS_MT === 'true') {
175
174
  await SM_8_9_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
176
175
  await navigationPage.goToOptimize();
177
176
  await optimizeHomePage.clickDashboardLink();
178
- await (0, sleep_1.sleep)(60000);
179
- await page.reload();
180
- await optimizeDashboardPage.clickFilterTable();
181
- await optimizeDashboardPage.fillFilterTable(processName);
182
- await optimizeDashboardPage.processAssertion(processName);
177
+ await (0, test_1.expect)(async () => {
178
+ await page.reload();
179
+ await optimizeDashboardPage.clickFilterTable();
180
+ await optimizeDashboardPage.fillFilterTable(processName);
181
+ await optimizeDashboardPage.processAssertion(processName);
182
+ }).toPass({ timeout: 300000, intervals: [15000] });
183
183
  });
184
184
  }
185
185
  });
@@ -214,7 +214,6 @@ if (process.env.IS_MT === 'true') {
214
214
  });
215
215
  await SM_8_9_1.test.step('Clear cookies and reset session', async () => {
216
216
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
217
- await (0, sleep_1.sleep)(10000);
218
217
  });
219
218
  await SM_8_9_1.test.step('Open Cross Component Test Project', async () => {
220
219
  await navigationPage.goToModeler(undefined, credentials);
@@ -248,11 +247,12 @@ if (process.env.IS_MT === 'true') {
248
247
  await SM_8_9_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
249
248
  await navigationPage.goToOptimize(undefined, credentials);
250
249
  await optimizeHomePage.clickDashboardLink();
251
- await (0, sleep_1.sleep)(60000);
252
- await page.reload();
253
- await optimizeDashboardPage.clickFilterTable();
254
- await optimizeDashboardPage.fillFilterTable(processName);
255
- await optimizeDashboardPage.processAssertion(processName);
250
+ await (0, test_1.expect)(async () => {
251
+ await page.reload();
252
+ await optimizeDashboardPage.clickFilterTable();
253
+ await optimizeDashboardPage.fillFilterTable(processName);
254
+ await optimizeDashboardPage.processAssertion(processName);
255
+ }).toPass({ timeout: 300000, intervals: [15000] });
256
256
  });
257
257
  }
258
258
  });
@@ -290,7 +290,6 @@ if (process.env.IS_MT === 'true') {
290
290
  });
291
291
  await SM_8_9_1.test.step('Clear cookies and reset session', async () => {
292
292
  await (0, resetSession_1.resetSession)(browser, page); //a workaround for https://github.com/camunda/camunda/issues/34513
293
- await (0, sleep_1.sleep)(10000);
294
293
  });
295
294
  await SM_8_9_1.test.step('Open Cross Component Test Project', async () => {
296
295
  await navigationPage.goToModeler(undefined, credentials);
@@ -317,11 +316,12 @@ if (process.env.IS_MT === 'true') {
317
316
  await SM_8_9_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
318
317
  await navigationPage.goToOptimize(undefined, credentials);
319
318
  await optimizeHomePage.clickDashboardLink();
320
- await (0, sleep_1.sleep)(60000);
321
- await page.reload();
322
- await optimizeDashboardPage.clickFilterTable();
323
- await optimizeDashboardPage.fillFilterTable(processName);
324
- await optimizeDashboardPage.processAssertion(processName);
319
+ await (0, test_1.expect)(async () => {
320
+ await page.reload();
321
+ await optimizeDashboardPage.clickFilterTable();
322
+ await optimizeDashboardPage.fillFilterTable(processName);
323
+ await optimizeDashboardPage.processAssertion(processName);
324
+ }).toPass({ timeout: 300000, intervals: [15000] });
325
325
  });
326
326
  }
327
327
  });
@@ -374,11 +374,12 @@ if (process.env.IS_MT === 'true') {
374
374
  await SM_8_9_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
375
375
  await navigationPage.goToOptimize();
376
376
  await optimizeHomePage.clickDashboardLink();
377
- await (0, sleep_1.sleep)(60000);
378
- await page.reload();
379
- await optimizeDashboardPage.clickFilterTable();
380
- await optimizeDashboardPage.fillFilterTable(processName);
381
- await optimizeDashboardPage.processAssertion(processName);
377
+ await (0, test_1.expect)(async () => {
378
+ await page.reload();
379
+ await optimizeDashboardPage.clickFilterTable();
380
+ await optimizeDashboardPage.fillFilterTable(processName);
381
+ await optimizeDashboardPage.processAssertion(processName);
382
+ }).toPass({ timeout: 300000, intervals: [15000] });
382
383
  });
383
384
  }
384
385
  });
@@ -514,13 +515,12 @@ if (process.env.IS_MT === 'true') {
514
515
  await SM_8_9_1.test.step('Assert Process has been successfully imported in Optimize', async () => {
515
516
  await navigationPage.goToOptimize();
516
517
  await optimizeHomePage.clickDashboardLink();
517
- await (0, sleep_1.sleep)(90000);
518
- await page.reload();
519
- await optimizeDashboardPage.clickFilterTable();
520
- await optimizeDashboardPage.fillFilterTable(processName1);
521
- await optimizeDashboardPage.processAssertion(processName1, {
522
- timeout: 300000,
523
- });
518
+ await (0, test_1.expect)(async () => {
519
+ await page.reload();
520
+ await optimizeDashboardPage.clickFilterTable();
521
+ await optimizeDashboardPage.fillFilterTable(processName1);
522
+ await optimizeDashboardPage.processAssertion(processName1);
523
+ }).toPass({ timeout: 300000, intervals: [15000] });
524
524
  });
525
525
  }
526
526
  await SM_8_9_1.test.step('Delete Tenant Access For Demo User OC', async () => {
@@ -554,6 +554,7 @@ if (process.env.IS_MT === 'true') {
554
554
  await SM_8_9_1.test.step('Assert "demo" user cannot view process in Tasklist, Operate or Optimize', async () => {
555
555
  await navigationPage.goToOperate();
556
556
  await operateHomePage.clickProcessesTab();
557
+ await page.waitForLoadState('networkidle');
557
558
  await (0, test_1.expect)(page.getByText(processName1)).not.toBeVisible({
558
559
  timeout: 60000,
559
560
  });
@@ -561,6 +562,7 @@ if (process.env.IS_MT === 'true') {
561
562
  timeout: 60000,
562
563
  });
563
564
  await navigationPage.goToTasklist();
565
+ await page.waitForLoadState('networkidle');
564
566
  await (0, test_1.expect)(page.getByText(processName1)).not.toBeVisible({
565
567
  timeout: 60000,
566
568
  });