@camunda/e2e-test-suite 0.0.1291 → 0.0.1293
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.
|
@@ -525,13 +525,27 @@ class ModelerCreatePage {
|
|
|
525
525
|
await this.secondPlacedElement.click({ timeout: 60000 });
|
|
526
526
|
}
|
|
527
527
|
async clickFirstPlacedGateway() {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
528
|
+
// isVisible() ignores its timeout, so wait for the context pad or the
|
|
529
|
+
// append indicator to confirm the gateway is actually selected. Right
|
|
530
|
+
// after switching back from Play the canvas may still be re-importing and
|
|
531
|
+
// drop the first click's selection.
|
|
532
|
+
const selectionIndicator = this.appendElementButton
|
|
533
|
+
.or(this.appendPreButton)
|
|
534
|
+
.first();
|
|
535
|
+
const maxAttempts = 3;
|
|
536
|
+
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
537
|
+
try {
|
|
538
|
+
await (0, test_1.expect)(this.firstPlacedGateway).toBeVisible({ timeout: 30000 });
|
|
539
|
+
await this.firstPlacedGateway.click({ timeout: 10000 });
|
|
540
|
+
await (0, test_1.expect)(selectionIndicator).toBeVisible({ timeout: 10000 });
|
|
541
|
+
return;
|
|
542
|
+
}
|
|
543
|
+
catch (error) {
|
|
544
|
+
if (attempt === maxAttempts)
|
|
545
|
+
throw error;
|
|
546
|
+
if (attempt > 1)
|
|
547
|
+
await this.page.reload();
|
|
548
|
+
}
|
|
535
549
|
}
|
|
536
550
|
}
|
|
537
551
|
async clickSecondPlacedGateway() {
|
package/dist/tests/SM-8.9/orchestration-cluster-mcp-server/mcp-process-instance-tools.spec.js
CHANGED
|
@@ -94,7 +94,7 @@ SM_8_9_1.test.describe('MCP Gateway - Process Instance Tools @tasklistV2', () =>
|
|
|
94
94
|
await operateHomePage.clickProcessesTab();
|
|
95
95
|
await operateProcessesPage.clickProcessCompletedCheckbox();
|
|
96
96
|
await operateProcessesPage.applyMoreFilters('Process Instance Key(s)', String(toolsInstanceKey));
|
|
97
|
-
await operateProcessesPage.clickProcessInstanceLink('MCP Process Instance Tools');
|
|
97
|
+
await operateProcessesPage.clickProcessInstanceLink('MCP Process Instance Tools', 'completed');
|
|
98
98
|
await operateProcessInstancePage.assertProcessCompleteStatusWithRetry();
|
|
99
99
|
});
|
|
100
100
|
for (const assertion of testCase.assertions) {
|
|
@@ -111,7 +111,7 @@ SM_8_9_1.test.describe('MCP Gateway - User Task Tools @tasklistV2', () => {
|
|
|
111
111
|
await operateHomePage.clickProcessesTab();
|
|
112
112
|
await operateProcessesPage.clickProcessCompletedCheckbox();
|
|
113
113
|
await operateProcessesPage.applyMoreFilters('Process Instance Key(s)', String(toolsInstanceKey));
|
|
114
|
-
await operateProcessesPage.clickProcessInstanceLink('MCP User Task Tools');
|
|
114
|
+
await operateProcessesPage.clickProcessInstanceLink('MCP User Task Tools', 'completed');
|
|
115
115
|
await operateProcessInstancePage.assertProcessCompleteStatusWithRetry();
|
|
116
116
|
});
|
|
117
117
|
for (const assertion of testCase.assertions) {
|