@camunda/e2e-test-suite 0.0.676 → 0.0.677
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.
|
@@ -50,6 +50,13 @@ class HomePage {
|
|
|
50
50
|
}
|
|
51
51
|
async clickClusters() {
|
|
52
52
|
await (0, test_1.expect)(this.clusterTab).toBeVisible({ timeout: 30000 });
|
|
53
|
+
// Dismiss any modal that may be intercepting pointer events on the nav link.
|
|
54
|
+
if (await this.informationDialog
|
|
55
|
+
.last()
|
|
56
|
+
.isVisible({ timeout: 2000 })
|
|
57
|
+
.catch(() => false)) {
|
|
58
|
+
await this.closeInformationDialog();
|
|
59
|
+
}
|
|
53
60
|
await this.clusterTab.click({ timeout: 15000 });
|
|
54
61
|
}
|
|
55
62
|
async clickDashboard() {
|
|
@@ -287,7 +287,7 @@ async function disableRBA(clusterName, homePage, clusterPage, clusterDetailsPage
|
|
|
287
287
|
await clusterDetailsPage.clickSettingsTab();
|
|
288
288
|
await clusterDetailsPage.disableAuthorizations();
|
|
289
289
|
await homePage.clickClusters();
|
|
290
|
-
await clusterPage.assertClusterHealthyStatusWithRetry(clusterName);
|
|
290
|
+
await clusterPage.assertClusterHealthyStatusWithRetry(clusterName, 120000, 600000);
|
|
291
291
|
await clusterPage.clickClusterLink(clusterName);
|
|
292
292
|
await (0, test_1.expect)(clusterDetailsPage.rbaEnabledMessage.first()).not.toBeVisible({
|
|
293
293
|
timeout: 30000,
|
|
@@ -321,7 +321,7 @@ async function enableAuthorizations(clusterName, homePage, clusterPage, clusterD
|
|
|
321
321
|
await clusterDetailsPage.clickSettingsTab();
|
|
322
322
|
await clusterDetailsPage.enableAuthorizations();
|
|
323
323
|
await homePage.clickClusters();
|
|
324
|
-
await clusterPage.assertClusterHealthyStatusWithRetry(clusterName);
|
|
324
|
+
await clusterPage.assertClusterHealthyStatusWithRetry(clusterName, 120000, 600000);
|
|
325
325
|
await clusterPage.clickClusterLink(clusterName);
|
|
326
326
|
await clusterDetailsPage.assertComponentsHealth();
|
|
327
327
|
}
|
package/dist/tests/8.10/orchestration-cluster-mcp-server/api/mcp-processes-call-tools.spec.js
CHANGED
|
@@ -176,22 +176,25 @@ _8_10_1.test.describe('Orchestration Cluster MCP Server — /mcp/processes tools
|
|
|
176
176
|
const apiContext = await (0, apiHelpers_1.getApiRequestContext)();
|
|
177
177
|
let instanceKey = smokeProcessInstanceKey;
|
|
178
178
|
await _8_10_1.test.step('Resolve process instance key', async () => {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
179
|
+
await (0, test_1.expect)(async () => {
|
|
180
|
+
if (!instanceKey) {
|
|
181
|
+
// Attempt to find any mcpAsToolProcess instance via the search API.
|
|
182
|
+
// Wrapped in toPass so propagation lag doesn't cause a one-shot failure.
|
|
183
|
+
const searchRes = await apiContext.post(processInstancesSearchUrl, {
|
|
184
|
+
headers: (0, mcpHelpers_1.buildMcpHeaders)(authToken, mcpSessionId),
|
|
185
|
+
data: {
|
|
186
|
+
filter: { processDefinitionId: 'mcpAsToolProcess' },
|
|
187
|
+
sort: [{ field: 'processInstanceKey', order: 'desc' }],
|
|
188
|
+
page: { limit: 1 },
|
|
189
|
+
},
|
|
190
|
+
});
|
|
191
|
+
if (searchRes.ok()) {
|
|
192
|
+
const searchJson = (await searchRes.json());
|
|
193
|
+
instanceKey = searchJson.items[0]?.processInstanceKey ?? null;
|
|
194
|
+
}
|
|
192
195
|
}
|
|
193
|
-
|
|
194
|
-
|
|
196
|
+
(0, test_1.expect)(instanceKey, 'No mcpAsToolProcess instance available for getProcessInstance smoke test').not.toBeNull();
|
|
197
|
+
}).toPass(constants_1.defaultAssertionOptions);
|
|
195
198
|
});
|
|
196
199
|
await _8_10_1.test.step('Call getProcessInstance tool and verify response', async () => {
|
|
197
200
|
const body = await (0, mcpHelpers_1.callTool)(apiContext, mcpProcessesUrl, authToken, mcpSessionId, 'getProcessInstance', { processInstanceKey: instanceKey });
|