@camunda/e2e-test-suite 0.0.541 → 0.0.542
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.
|
@@ -78,7 +78,7 @@ class PlayPage {
|
|
|
78
78
|
await this.startInstanceButton
|
|
79
79
|
.or(this.startInstanceWithCachedButton)
|
|
80
80
|
.first()
|
|
81
|
-
.click({ timeout:
|
|
81
|
+
.click({ timeout: 60000 });
|
|
82
82
|
await (0, test_1.expect)(this.loadingInstanceDetailsText).toBeVisible();
|
|
83
83
|
await (0, test_1.expect)(this.loadingInstanceDetailsText).not.toBeVisible({
|
|
84
84
|
timeout: 60000,
|
|
@@ -100,6 +100,9 @@ SM_8_10_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
(0, SM_8_10_1.test)('Timer Event User Flow @tasklistV2', async ({ modelerHomePage, modelerCreatePage, operateHomePage, operateProcessInstancePage, operateProcessesPage, navigationPage, }) => {
|
|
103
|
+
// Timer waits 60 s before completing; combined with goToOperate retries
|
|
104
|
+
// (5 × ~3 min) this regularly exceeds the default 12-min test timeout.
|
|
105
|
+
SM_8_10_1.test.slow();
|
|
103
106
|
const processName = 'Timer_Event_Process' + (await (0, _setup_1.generateRandomStringAsync)(3));
|
|
104
107
|
await SM_8_10_1.test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
|
|
105
108
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
package/dist/utils/apiHelpers.js
CHANGED
|
@@ -297,12 +297,26 @@ async function createProcessInstance(processDefinitionKey, authToken, environmen
|
|
|
297
297
|
if (isMT) {
|
|
298
298
|
data.tenantId = '<default>';
|
|
299
299
|
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
300
|
+
// Retry on 400 (process definition not yet visible in Zeebe after deploy)
|
|
301
|
+
const maxAttempts = 5;
|
|
302
|
+
const retryDelayMs = 5000;
|
|
303
|
+
let response;
|
|
304
|
+
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
305
|
+
response = await apiRequestContext.post(url, {
|
|
306
|
+
headers: {
|
|
307
|
+
Authorization: authToken ?? '',
|
|
308
|
+
},
|
|
309
|
+
data,
|
|
310
|
+
});
|
|
311
|
+
if (response.status() === 200)
|
|
312
|
+
break;
|
|
313
|
+
if (response.status() === 400 && attempt < maxAttempts) {
|
|
314
|
+
console.warn(`createProcessInstance: got 400 for key ${processDefinitionKey}, attempt ${attempt}/${maxAttempts}, retrying in ${retryDelayMs}ms`);
|
|
315
|
+
await (0, sleep_1.sleep)(retryDelayMs);
|
|
316
|
+
continue;
|
|
317
|
+
}
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
306
320
|
(0, test_1.expect)(response.status()).toBe(200);
|
|
307
321
|
const responseBody = await response.json();
|
|
308
322
|
const processInstanceKey = responseBody?.processInstanceKey;
|