@camunda/e2e-test-suite 0.0.831 → 0.0.833
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.
- package/dist/tests/c8Run-8.10/connectors-user-flows.spec.js +12 -6
- package/dist/tests/c8Run-8.10/mcp-connector-authentication.spec.js +2 -1
- package/dist/tests/c8Run-8.10/mcp-user-flows.spec.js +2 -1
- package/dist/utils/consoleApiHelpers.d.ts +1 -0
- package/dist/utils/consoleApiHelpers.js +23 -1
- package/package.json +1 -1
|
@@ -9,7 +9,8 @@ const sleep_1 = require("../../utils/sleep");
|
|
|
9
9
|
const constants_1 = require("../../utils/constants");
|
|
10
10
|
const apiHelpers_1 = require("../../utils/apiHelpers");
|
|
11
11
|
c8Run_8_10_1.test.beforeAll(async () => {
|
|
12
|
-
|
|
12
|
+
c8Run_8_10_1.test.setTimeout(18 * 60 * 1000);
|
|
13
|
+
await (0, apiHelpers_1.waitForConnectorsReady)(undefined, 900000);
|
|
13
14
|
await Promise.all([
|
|
14
15
|
(0, zeebeClient_1.deploy)('./resources/Basic_Auth_REST_Connector.bpmn'),
|
|
15
16
|
(0, zeebeClient_1.deploy)('./resources/Intermediate_Event_Webhook_Connector_No_Auth_Process.bpmn'),
|
|
@@ -35,7 +36,8 @@ c8Run_8_10_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
35
36
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
36
37
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
37
38
|
});
|
|
38
|
-
|
|
39
|
+
// Skipped due to bug #7984: https://github.com/camunda/connectors/issues/7984
|
|
40
|
+
c8Run_8_10_1.test.skip('REST Connector No Auth User Flow', async ({ page, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
|
|
39
41
|
await c8Run_8_10_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
|
|
40
42
|
await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 180000 });
|
|
41
43
|
await operateHomePage.clickProcessesTab();
|
|
@@ -46,7 +48,8 @@ c8Run_8_10_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
46
48
|
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, operateProcessInstancePage.statusVariable.getByText('"Awesome!"'), 'Status variable text');
|
|
47
49
|
});
|
|
48
50
|
});
|
|
49
|
-
|
|
51
|
+
// Skipped due to bug #7984: https://github.com/camunda/connectors/issues/7984
|
|
52
|
+
c8Run_8_10_1.test.skip('REST Connector Basic Auth User Flow', async ({ page, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
50
53
|
await c8Run_8_10_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
|
|
51
54
|
await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 180000 });
|
|
52
55
|
await operateHomePage.clickProcessesTab();
|
|
@@ -57,7 +60,8 @@ c8Run_8_10_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
57
60
|
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, operateProcessInstancePage.messageVariable.getByText('"Awesome!"'), 'Status variable text');
|
|
58
61
|
});
|
|
59
62
|
});
|
|
60
|
-
|
|
63
|
+
// Skipped due to bug #7984: https://github.com/camunda/connectors/issues/7984
|
|
64
|
+
c8Run_8_10_1.test.skip('REST Connector Bearer Token Auth User Flow', async ({ operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
|
|
61
65
|
await c8Run_8_10_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
|
|
62
66
|
await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 180000 });
|
|
63
67
|
await operateHomePage.clickProcessesTab();
|
|
@@ -72,7 +76,8 @@ c8Run_8_10_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
72
76
|
});
|
|
73
77
|
});
|
|
74
78
|
});
|
|
75
|
-
|
|
79
|
+
// Skipped due to bug #7984: https://github.com/camunda/connectors/issues/7984
|
|
80
|
+
c8Run_8_10_1.test.skip('Start Event Webhook Connector No Auth User Flow', async ({ page, request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
|
|
76
81
|
await c8Run_8_10_1.test.step('Make Authorization Request', async () => {
|
|
77
82
|
await (0, sleep_1.sleep)(300000);
|
|
78
83
|
await (0, test_1.expect)(async () => {
|
|
@@ -90,7 +95,8 @@ c8Run_8_10_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
90
95
|
await operateProcessInstancePage.completedIconAssertion();
|
|
91
96
|
});
|
|
92
97
|
});
|
|
93
|
-
|
|
98
|
+
// Skipped due to bug #7984: https://github.com/camunda/connectors/issues/7984
|
|
99
|
+
c8Run_8_10_1.test.skip('Intermediate Event Webhook Connector No Auth User Flow', async ({ request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
|
|
94
100
|
await c8Run_8_10_1.test.step('Make Authorization Request', async () => {
|
|
95
101
|
await (0, sleep_1.sleep)(60000);
|
|
96
102
|
await (0, test_1.expect)(async () => {
|
|
@@ -52,7 +52,8 @@ c8Run_8_10_1.test.describe('@tasklistV2 MCP Client connector authentication test
|
|
|
52
52
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
53
53
|
});
|
|
54
54
|
for (const { name, processId, getVariables } of authMethods) {
|
|
55
|
-
|
|
55
|
+
// Skipped due to bug #7984: https://github.com/camunda/connectors/issues/7984
|
|
56
|
+
c8Run_8_10_1.test.skip(`As a user I can authenticate using ${name} and list tools`, async ({ operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
56
57
|
await (0, zeebeClient_1.createInstances)(processId, 1, 1, getVariables?.());
|
|
57
58
|
await (0, sleep_1.sleep)(2000);
|
|
58
59
|
await c8Run_8_10_1.test.step('Navigate to completed process instance', async () => {
|
|
@@ -28,7 +28,8 @@ c8Run_8_10_1.test.describe('@tasklistV2 MCP Client connector tests', () => {
|
|
|
28
28
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
29
29
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
30
30
|
});
|
|
31
|
-
|
|
31
|
+
// Skipped due to bug #7984: https://github.com/camunda/connectors/issues/7984
|
|
32
|
+
c8Run_8_10_1.test.skip('As an user I can invoke the MCP Client connector and use all its operations', async ({ operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
32
33
|
c8Run_8_10_1.test.slow();
|
|
33
34
|
await c8Run_8_10_1.test.step('Navigate to completed process instance', async () => {
|
|
34
35
|
await operateHomePage.clickProcessesTab();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Page } from '@playwright/test';
|
|
2
2
|
export declare function deleteClusterViaApi(page: Page, clusterName: string): Promise<void>;
|
|
3
3
|
export declare function createClusterViaApi(page: Page, clusterName: string, region?: string): Promise<string>;
|
|
4
|
+
export declare function ensureClusterViaApi(page: Page, clusterName: string, region?: string): Promise<string>;
|
|
4
5
|
export declare function waitForClusterHealthyViaApi(page: Page, clusterUuid: string, timeoutMs?: number): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitForClusterHealthyViaApi = exports.createClusterViaApi = exports.deleteClusterViaApi = void 0;
|
|
3
|
+
exports.waitForClusterHealthyViaApi = exports.ensureClusterViaApi = exports.createClusterViaApi = exports.deleteClusterViaApi = void 0;
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
5
|
const sleep_1 = require("./sleep");
|
|
6
6
|
const PLAN_TYPE_ID = '574cde5f-54ae-43c1-851a-e6fb4f03423a';
|
|
@@ -125,6 +125,28 @@ async function createClusterViaApi(page, clusterName, region = 'GCP') {
|
|
|
125
125
|
return clusterId;
|
|
126
126
|
}
|
|
127
127
|
exports.createClusterViaApi = createClusterViaApi;
|
|
128
|
+
async function ensureClusterViaApi(page, clusterName, region = 'GCP') {
|
|
129
|
+
// Versions with more than one Tasklist-mode Playwright project (e.g. 8.8,
|
|
130
|
+
// 8.9's chromium-v1/chromium-v2) run test-setup.spec.ts once per project,
|
|
131
|
+
// concurrently, against the same org -- and both target a cluster with
|
|
132
|
+
// this same name. Deleting-then-recreating unconditionally here would race
|
|
133
|
+
// with the sibling project's setup: whichever one runs its delete second
|
|
134
|
+
// rips out the cluster the other project already started using, silently
|
|
135
|
+
// orphaning any process instances/jobs created on it in the meantime.
|
|
136
|
+
//
|
|
137
|
+
// Each PR/nightly run gets a brand-new, empty org (see the
|
|
138
|
+
// create-organization/delete-organization jobs), so within a single run a
|
|
139
|
+
// cluster with this name can only mean one thing: the sibling project's
|
|
140
|
+
// setup already created it. Adopt it instead of destroying it -- whichever
|
|
141
|
+
// project's setup gets here first "wins" and creates it, the other one
|
|
142
|
+
// just reuses it.
|
|
143
|
+
const existing = await findClusterByName(page, clusterName);
|
|
144
|
+
if (existing) {
|
|
145
|
+
return existing.uuid;
|
|
146
|
+
}
|
|
147
|
+
return createClusterViaApi(page, clusterName, region);
|
|
148
|
+
}
|
|
149
|
+
exports.ensureClusterViaApi = ensureClusterViaApi;
|
|
128
150
|
async function waitForClusterHealthyViaApi(page, clusterUuid, timeoutMs = 1500000) {
|
|
129
151
|
const orgId = getOrgId();
|
|
130
152
|
const url = `${getConsoleBaseUrl()}/api/orgs/${orgId}/clusters/${clusterUuid}`;
|