@camunda/e2e-test-suite 0.0.1553 → 0.0.1555
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.
|
@@ -366,12 +366,30 @@ _8_8_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
366
366
|
timeout: 120000,
|
|
367
367
|
});
|
|
368
368
|
const url = await modelerCreatePage.copyWebhookUrlToClipboardButton.innerText();
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
369
|
+
// The modeler's "webhook is active" banner can lead the connector
|
|
370
|
+
// runtime actually serving the endpoint: an intermediate catch event is
|
|
371
|
+
// only registered once the runtime has picked up the new process
|
|
372
|
+
// instance, so the first POST (seconds after "Deploy & run") can land
|
|
373
|
+
// on a not-yet-registered webhook.
|
|
374
|
+
//
|
|
375
|
+
// Retry ONLY while the request provably was not processed: a 5xx, or a
|
|
376
|
+
// 404 with an empty body -- the runtime's InboundWebhookRestController
|
|
377
|
+
// answers `notFound().build()` when no connector is registered for the
|
|
378
|
+
// path, before any correlation is attempted, so re-posting cannot
|
|
379
|
+
// double-trigger the process. A 404 from a failed correlation carries a
|
|
380
|
+
// body, and any other 4xx/2xx is a real answer that is asserted as-is.
|
|
381
|
+
const deadline = Date.now() + 180000;
|
|
382
|
+
let response = await request.post(url, { data: { test: 'test' } });
|
|
383
|
+
while (Date.now() < deadline) {
|
|
384
|
+
const status = response.status();
|
|
385
|
+
const notRegistered = status === 404 && (await response.body()).length === 0;
|
|
386
|
+
if (status < 500 && !notRegistered)
|
|
387
|
+
break;
|
|
388
|
+
console.warn(`Webhook not ready yet: ${url} -> ${status}`);
|
|
389
|
+
await (0, sleep_1.sleep)(10000);
|
|
390
|
+
response = await request.post(url, { data: { test: 'test' } });
|
|
391
|
+
}
|
|
392
|
+
(0, test_1.expect)(response.status()).toBe(200);
|
|
375
393
|
});
|
|
376
394
|
await _8_8_1.test.step('Assert Diagram Has Successfully Completed in Operate', async () => {
|
|
377
395
|
await (0, sleep_1.sleep)(90000);
|
|
@@ -57,7 +57,8 @@ c8Run_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
57
57
|
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, operateProcessInstancePage.messageVariable.getByText('"Awesome!"'), 'Message variable text');
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
|
-
|
|
60
|
+
// Skipped due to bug #8440: https://github.com/camunda/connectors/issues/8440
|
|
61
|
+
c8Run_8_9_1.test.skip('REST Connector Basic Auth User Flow', async ({ page, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
61
62
|
await c8Run_8_9_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
|
|
62
63
|
await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 180000 });
|
|
63
64
|
await operateHomePage.clickProcessesTab();
|
|
@@ -68,7 +69,8 @@ c8Run_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
68
69
|
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, operateProcessInstancePage.messageVariable.getByText('"Awesome!"'), 'Status variable text');
|
|
69
70
|
});
|
|
70
71
|
});
|
|
71
|
-
|
|
72
|
+
// Skipped due to bug #8440: https://github.com/camunda/connectors/issues/8440
|
|
73
|
+
c8Run_8_9_1.test.skip('REST Connector Bearer Token Auth User Flow', async ({ operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
|
|
72
74
|
await c8Run_8_9_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
|
|
73
75
|
await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 180000 });
|
|
74
76
|
await operateHomePage.clickProcessesTab();
|
|
@@ -83,7 +85,8 @@ c8Run_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
83
85
|
});
|
|
84
86
|
});
|
|
85
87
|
});
|
|
86
|
-
|
|
88
|
+
// Skipped due to bug #8440: https://github.com/camunda/connectors/issues/8440
|
|
89
|
+
c8Run_8_9_1.test.skip('Start Event Webhook Connector No Auth User Flow', async ({ page, request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
|
|
87
90
|
await c8Run_8_9_1.test.step('Make Authorization Request', async () => {
|
|
88
91
|
await (0, apiHelpers_1.waitForInboundWebhookRegistered)('test-webhook-id');
|
|
89
92
|
await (0, test_1.expect)(async () => {
|
|
@@ -101,7 +104,8 @@ c8Run_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
101
104
|
await operateProcessInstancePage.completedIconAssertion();
|
|
102
105
|
});
|
|
103
106
|
});
|
|
104
|
-
|
|
107
|
+
// Skipped due to bug #8440: https://github.com/camunda/connectors/issues/8440
|
|
108
|
+
c8Run_8_9_1.test.skip('Intermediate Event Webhook Connector No Auth User Flow', async ({ request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
|
|
105
109
|
await c8Run_8_9_1.test.step('Make Authorization Request', async () => {
|
|
106
110
|
await (0, apiHelpers_1.waitForInboundWebhookRegistered)('test-webhook-intermediate');
|
|
107
111
|
await (0, test_1.expect)(async () => {
|
|
@@ -19,11 +19,15 @@ const authMethods = [
|
|
|
19
19
|
{
|
|
20
20
|
name: 'Bearer Token',
|
|
21
21
|
processId: 'mcp_remote_client_bearer_auth',
|
|
22
|
+
// Skipped due to bug #8440: https://github.com/camunda/connectors/issues/8440
|
|
23
|
+
skip: true,
|
|
22
24
|
getVariables: () => ({ bearerToken }),
|
|
23
25
|
},
|
|
24
26
|
{
|
|
25
27
|
name: 'OAuth Client Credentials',
|
|
26
28
|
processId: 'mcp_remote_client_oauth_auth',
|
|
29
|
+
// Skipped due to bug #8440: https://github.com/camunda/connectors/issues/8440
|
|
30
|
+
skip: true,
|
|
27
31
|
},
|
|
28
32
|
];
|
|
29
33
|
c8Run_8_9_1.test.beforeAll(async () => {
|