@camunda/e2e-test-suite 0.0.1538 → 0.0.1540
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/pages/8.7/AppsPage.d.ts +1 -0
- package/dist/pages/8.7/AppsPage.js +24 -5
- package/dist/pages/8.7/ConsoleOrganizationPage.d.ts +5 -2
- package/dist/pages/8.7/ConsoleOrganizationPage.js +76 -8
- package/dist/tests/8.7/web-modeler-user-flows.spec.js +60 -29
- package/dist/tests/8.9/agentic-ai-user-flows.spec.js +3 -6
- package/dist/tests/8.9/connectors-user-flows.spec.js +7 -14
- package/dist/tests/8.9/console-user-flows.spec.js +1 -2
- package/dist/tests/8.9/idp-user-flows.spec.js +1 -2
- package/dist/tests/8.9/orchestration-cluster-mcp-server/mcp-cluster-tools.spec.js +1 -2
- package/dist/tests/8.9/orchestration-cluster-mcp-server/mcp-incident-tools.spec.js +1 -2
- package/dist/tests/8.9/orchestration-cluster-mcp-server/mcp-process-definition-tools.spec.js +1 -2
- package/dist/tests/8.9/orchestration-cluster-mcp-server/mcp-process-instance-tools.spec.js +1 -2
- package/dist/tests/8.9/orchestration-cluster-mcp-server/mcp-user-task-tools.spec.js +1 -2
- package/dist/tests/8.9/orchestration-cluster-mcp-server/mcp-variable-tools.spec.js +1 -2
- package/dist/tests/8.9/smoke-tests.spec.js +1 -2
- package/package.json +1 -1
|
@@ -22,6 +22,7 @@ declare class AppsPage {
|
|
|
22
22
|
private expandHubClusterGroup;
|
|
23
23
|
private clickHubClusterApp;
|
|
24
24
|
private hubAppLink;
|
|
25
|
+
goBackToHub(): Promise<void>;
|
|
25
26
|
isHubClusterAppPresent(clusterName: string, appName: string): Promise<boolean>;
|
|
26
27
|
clickModeler(): Promise<void>;
|
|
27
28
|
clickTasklist(clusterName: string): Promise<void>;
|
|
@@ -292,12 +292,31 @@ class AppsPage {
|
|
|
292
292
|
}))
|
|
293
293
|
.first();
|
|
294
294
|
}
|
|
295
|
+
// Returns to the Hub shell after a cluster app was opened.
|
|
296
|
+
// clickHubClusterApp follows the app's href in the CURRENT tab (Hub marks
|
|
297
|
+
// these links target="_blank"), so a caller that opened Operate/Tasklist to
|
|
298
|
+
// check its permission gate is left on operate.*/tasklist.* and has to come
|
|
299
|
+
// back deliberately. goBack() restores the exact Hub route; when the app's
|
|
300
|
+
// own redirects have already replaced that history entry it can land
|
|
301
|
+
// off-Hub, so fall back to the Hub root -- a relative goto() resolves
|
|
302
|
+
// against baseURL, which is Hub. Mirrors pages/8.9/AppsPage.ts
|
|
303
|
+
// goBackToHub().
|
|
304
|
+
async goBackToHub() {
|
|
305
|
+
await this.page.goBack();
|
|
306
|
+
if (!new URL(this.page.url()).hostname.startsWith('hub.')) {
|
|
307
|
+
await this.page.goto('/', { waitUntil: 'domcontentloaded' });
|
|
308
|
+
}
|
|
309
|
+
}
|
|
295
310
|
// Checks whether an app link is present inside the requested cluster's Hub
|
|
296
|
-
// sidebar group, without clicking it.
|
|
297
|
-
//
|
|
298
|
-
//
|
|
299
|
-
//
|
|
300
|
-
//
|
|
311
|
+
// sidebar group, without clicking it. Absence is an expected, valid outcome
|
|
312
|
+
// here (unlike clickHubClusterApp), so this never throws on a miss. Note it
|
|
313
|
+
// is NOT an authorization check: camunda-hub's
|
|
314
|
+
// use-organization-environment-sidebar-model.ts states outright that "there
|
|
315
|
+
// is no role gate here" -- the org environment listing is filtered
|
|
316
|
+
// server-side by workspace visibility only, so every environment the viewer
|
|
317
|
+
// can see lists every one of its applications regardless of the viewer's
|
|
318
|
+
// Operate/Tasklist/Optimize permission. A caller proving "this role has no
|
|
319
|
+
// access" must open the app and assert its forbidden page instead.
|
|
301
320
|
async isHubClusterAppPresent(clusterName, appName) {
|
|
302
321
|
try {
|
|
303
322
|
await this.expandHubClusterGroup(clusterName);
|
|
@@ -53,8 +53,11 @@ declare class ConsoleOrganizationPage {
|
|
|
53
53
|
checkReadPermissionCheckbox(): Promise<void>;
|
|
54
54
|
checkStartInstancePermissionCheckbox(): Promise<void>;
|
|
55
55
|
clickUsersTab(): Promise<void>;
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
filterTableToUser(username: string): Promise<void>;
|
|
57
|
+
private userRow;
|
|
58
|
+
private rowActionsTrigger;
|
|
59
|
+
clickOptionsButton(username?: string): Promise<void>;
|
|
60
|
+
clickEditUserMenuItem(username?: string): Promise<void>;
|
|
58
61
|
clickOperationsEngineerCheckbox(): Promise<void>;
|
|
59
62
|
checkDeveloperCheckbox(): Promise<void>;
|
|
60
63
|
uncheckDeveloperCheckbox(): Promise<void>;
|
|
@@ -243,22 +243,90 @@ class ConsoleOrganizationPage {
|
|
|
243
243
|
},
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
// The Users table loads the org member list once per page load and filters
|
|
247
|
+
// it client side -- the trace shows a single /members request per load with
|
|
248
|
+
// no search parameter -- so a member who joined after that fetch is simply
|
|
249
|
+
// not findable, and the table settles on "No results.". filterTable only
|
|
250
|
+
// waits for rows.nth(1), which is still satisfied by the stale pre-filter
|
|
251
|
+
// rows, so the caller would then drive a different user's row. Reload to
|
|
252
|
+
// refetch the member list until the searched user's own row is present.
|
|
253
|
+
async filterTableToUser(username) {
|
|
254
|
+
await (0, test_1.expect)(async () => {
|
|
255
|
+
await this.filterTable([username]);
|
|
256
|
+
const found = await this.userRow(username)
|
|
257
|
+
.waitFor({ state: 'visible', timeout: 10000 })
|
|
258
|
+
.then(() => true)
|
|
259
|
+
.catch(() => false);
|
|
260
|
+
if (!found) {
|
|
261
|
+
await this.page.reload();
|
|
262
|
+
await this.clickUsersTab();
|
|
263
|
+
throw new Error(`Users table has no row for ${username} yet`);
|
|
264
|
+
}
|
|
265
|
+
}).toPass({ timeout: 180000, intervals: [5000, 10000, 15000] });
|
|
266
|
+
}
|
|
267
|
+
// Scoped to the user's own row: the table still lists other members until
|
|
268
|
+
// the client-side filter settles, and an unscoped row would open -- and edit
|
|
269
|
+
// -- the wrong user's menu. Mirrors pages/8.9/ConsoleOrganizationPage.ts.
|
|
270
|
+
userRow(username) {
|
|
271
|
+
return this.rows.filter({ hasText: username }).first();
|
|
272
|
+
}
|
|
273
|
+
// The design-system Users table renders the row kebab with a stable
|
|
274
|
+
// data-slot, but its accessible name is not stable: the a11y tree captured
|
|
275
|
+
// at the failure moment shows the same element as an unnamed
|
|
276
|
+
// `button [expanded]` once its menu is open, so a name-only locator stops
|
|
277
|
+
// resolving in exactly the state the retry loop keeps re-entering. Match the
|
|
278
|
+
// data-slot first and keep the name-based variants for any org still served
|
|
279
|
+
// the older table.
|
|
280
|
+
rowActionsTrigger(row) {
|
|
281
|
+
return row
|
|
282
|
+
.locator('button[data-slot="data-table-actions-trigger"]')
|
|
283
|
+
.or(row.getByRole('button', { name: 'Options' }))
|
|
284
|
+
.or(row.getByRole('button', { name: 'Row actions' }))
|
|
285
|
+
.first();
|
|
286
|
+
}
|
|
287
|
+
async clickOptionsButton(username) {
|
|
288
|
+
const dataRow = username ? this.userRow(username) : this.rows.nth(1);
|
|
248
289
|
await dataRow.hover({ timeout: 30000 }).catch(() => { });
|
|
290
|
+
const rowOptions = this.rowActionsTrigger(dataRow);
|
|
291
|
+
// A second click on an already-open trigger closes the menu again, and the
|
|
292
|
+
// open menu's overlay blocks the trigger anyway, so only click it closed.
|
|
293
|
+
const alreadyOpen = await rowOptions
|
|
294
|
+
.getAttribute('aria-expanded', { timeout: 10000 })
|
|
295
|
+
.then((value) => value === 'true')
|
|
296
|
+
.catch(() => false);
|
|
297
|
+
if (alreadyOpen) {
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
if (username) {
|
|
301
|
+
await rowOptions.click({ timeout: 30000 });
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
249
304
|
// Try scoped click first; fall back to page-level with force
|
|
250
305
|
try {
|
|
251
|
-
await
|
|
252
|
-
.getByRole('button', { name: 'Options' })
|
|
253
|
-
.or(dataRow.getByRole('button', { name: 'Row actions' }))
|
|
254
|
-
.click({ timeout: 30000 });
|
|
306
|
+
await rowOptions.click({ timeout: 30000 });
|
|
255
307
|
}
|
|
256
308
|
catch (_e) {
|
|
257
309
|
await this.optionsButton.first().click({ force: true, timeout: 60000 });
|
|
258
310
|
}
|
|
259
311
|
}
|
|
260
|
-
|
|
261
|
-
|
|
312
|
+
// The row menu can close under the click when the Users table re-renders
|
|
313
|
+
// ("element was detached from the DOM", after which the item never returns),
|
|
314
|
+
// so reopen the row menu and retry rather than wait on a closed menu. Same
|
|
315
|
+
// recovery as pages/8.9/ConsoleOrganizationPage.ts. The item is also probed
|
|
316
|
+
// for enabled, not just visible: Console renders it aria-disabled when the
|
|
317
|
+
// viewer may not manage org users, and a pinned click would otherwise burn
|
|
318
|
+
// its whole timeout on an element that never becomes actionable.
|
|
319
|
+
async clickEditUserMenuItem(username) {
|
|
320
|
+
await (0, test_1.expect)(async () => {
|
|
321
|
+
const clickable = await this.editUserMenuItem
|
|
322
|
+
.waitFor({ state: 'visible', timeout: 5000 })
|
|
323
|
+
.then(() => this.editUserMenuItem.isEnabled())
|
|
324
|
+
.catch(() => false);
|
|
325
|
+
if (!clickable) {
|
|
326
|
+
await this.clickOptionsButton(username);
|
|
327
|
+
}
|
|
328
|
+
await this.editUserMenuItem.click({ timeout: 10000 });
|
|
329
|
+
}).toPass({ timeout: 90000, intervals: [1000, 2000, 5000] });
|
|
262
330
|
}
|
|
263
331
|
async clickOperationsEngineerCheckbox() {
|
|
264
332
|
await this.operationsEngineerCheckbox.click();
|
|
@@ -15,6 +15,15 @@ const resetSession_1 = require("../../utils/resetSession");
|
|
|
15
15
|
const users_1 = require("../../utils/users");
|
|
16
16
|
const node_crypto_1 = require("node:crypto");
|
|
17
17
|
const testUser = (0, users_1.getTestUser)('eleventhUser');
|
|
18
|
+
// Console's permissions rework gates org user management on the viewer's own
|
|
19
|
+
// org role: an `admin` gets `org.users.admin`/`org.users.owner` all-false in
|
|
20
|
+
// the accounts permissions payload, and the Users tab then renders "Edit
|
|
21
|
+
// user", "Remove" and "Add new user" aria-disabled for every row. Only "User
|
|
22
|
+
// Roles User Flow" edits another member's roles, so it runs as the org owner
|
|
23
|
+
// -- the same actor 8.9/8.10/8.11 access-user-role-management.spec.ts use for
|
|
24
|
+
// these flows. Every other test in this file keeps testUser.
|
|
25
|
+
const orgOwner = (0, users_1.getTestUser)('mainUser');
|
|
26
|
+
const ORG_ROLE_MANAGEMENT_TEST = 'User Roles User Flow';
|
|
18
27
|
_8_7_1.test.describe.configure({ mode: 'parallel' });
|
|
19
28
|
_8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
20
29
|
const clusterName = 'Test Cluster';
|
|
@@ -23,7 +32,7 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
23
32
|
'Invite Existing C8 member to Web Modeler flow': '',
|
|
24
33
|
};
|
|
25
34
|
_8_7_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
26
|
-
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
35
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testInfo.title === ORG_ROLE_MANAGEMENT_TEST ? orgOwner : testUser, (testInfo.workerIndex + 1) * 1000);
|
|
27
36
|
});
|
|
28
37
|
_8_7_1.test.afterEach(async ({ page }, testInfo) => {
|
|
29
38
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
@@ -95,8 +104,7 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
95
104
|
});
|
|
96
105
|
});
|
|
97
106
|
});
|
|
98
|
-
|
|
99
|
-
_8_7_1.test.skip('User Roles User Flow', async ({ page, modelerHomePage, appsPage, consoleOrganizationsPage, settingsPage, loginPage, homePage, modelerCreatePage, }) => {
|
|
107
|
+
(0, _8_7_1.test)('User Roles User Flow', async ({ page, modelerHomePage, appsPage, consoleOrganizationsPage, settingsPage, loginPage, homePage, modelerCreatePage, }) => {
|
|
100
108
|
_8_7_1.test.slow();
|
|
101
109
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
102
110
|
const processName = 'User Roles User Flow' + randomString;
|
|
@@ -111,11 +119,9 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
111
119
|
await _8_7_1.test.step('Change User Roles and Assert This Updates in Web Modeler', async () => {
|
|
112
120
|
await modelerHomePage.openOrganizationManagement(120000);
|
|
113
121
|
await consoleOrganizationsPage.clickUsersTab();
|
|
114
|
-
await consoleOrganizationsPage.
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
await consoleOrganizationsPage.clickOptionsButton();
|
|
118
|
-
await consoleOrganizationsPage.clickEditUserMenuItem();
|
|
122
|
+
await consoleOrganizationsPage.filterTableToUser(process.env.C8_USERNAME_TEST_3);
|
|
123
|
+
await consoleOrganizationsPage.clickOptionsButton(process.env.C8_USERNAME_TEST_3);
|
|
124
|
+
await consoleOrganizationsPage.clickEditUserMenuItem(process.env.C8_USERNAME_TEST_3);
|
|
119
125
|
await consoleOrganizationsPage.checkAnalystCheckbox();
|
|
120
126
|
await consoleOrganizationsPage.uncheckDeveloperCheckbox();
|
|
121
127
|
await consoleOrganizationsPage.clickConfirmButton();
|
|
@@ -124,10 +130,10 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
124
130
|
});
|
|
125
131
|
await settingsPage.clickOpenSettingsButton();
|
|
126
132
|
await settingsPage.clickLogoutButton();
|
|
127
|
-
await
|
|
133
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, {
|
|
128
134
|
username: process.env.C8_USERNAME_TEST_3,
|
|
129
135
|
password: process.env.C8_PASSWORD_TEST_3,
|
|
130
|
-
});
|
|
136
|
+
}, 1000);
|
|
131
137
|
await (0, test_1.expect)(homePage.camundaComponentsButton).toBeVisible({
|
|
132
138
|
timeout: 60000,
|
|
133
139
|
});
|
|
@@ -143,8 +149,30 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
143
149
|
// (organization-store.saas.ts CLUSTER_OPERATOR_ROLE_IDS), so the
|
|
144
150
|
// just-downgraded-to-Analyst user here should no longer see it either.
|
|
145
151
|
await (0, test_1.expect)(appsPage.consoleLink).not.toBeVisible();
|
|
146
|
-
|
|
147
|
-
|
|
152
|
+
// Link absence is no longer a valid proxy for "this role has no access".
|
|
153
|
+
// Hub's Environments sidebar applies no role gate at all -- camunda-hub
|
|
154
|
+
// use-organization-environment-sidebar-model.ts says so in those words,
|
|
155
|
+
// and filters the org listing server-side by workspace visibility only
|
|
156
|
+
// (EnvironmentVisibilityResolver) -- so every environment the viewer can
|
|
157
|
+
// see lists every one of its applications. Run 40496984694's failure
|
|
158
|
+
// snapshot shows exactly that: the just-downgraded Analyst still has
|
|
159
|
+
// Operate, Tasklist and Optimize under "Test Cluster". Prove the gate
|
|
160
|
+
// where it now lives, on the component itself.
|
|
161
|
+
await appsPage.assertOperatePresent(clusterName);
|
|
162
|
+
await appsPage.assertTasklistPresent(clusterName);
|
|
163
|
+
// The denial is Operate/Tasklist rejecting the SSO callback and sending
|
|
164
|
+
// the user to <app>/noPermission through Auth0's /v2/logout?returnTo=...
|
|
165
|
+
// The URL carries it either way: where that returnTo is an allowed
|
|
166
|
+
// logout URL the browser lands on /noPermission, and where it is not
|
|
167
|
+
// (camunda-dev answers 400 invalid_request) it stays on the logout URL
|
|
168
|
+
// whose returnTo is /noPermission. The forbidden page's own text can
|
|
169
|
+
// therefore not be asserted portably.
|
|
170
|
+
await appsPage.clickOperate(clusterName);
|
|
171
|
+
await (0, test_1.expect)(page).toHaveURL(/noPermission/, { timeout: 90000 });
|
|
172
|
+
await appsPage.goBackToHub();
|
|
173
|
+
await appsPage.clickTasklist(clusterName);
|
|
174
|
+
await (0, test_1.expect)(page).toHaveURL(/noPermission/, { timeout: 90000 });
|
|
175
|
+
await appsPage.goBackToHub();
|
|
148
176
|
await appsPage.clickModeler();
|
|
149
177
|
await homePage.clickSkipCustomization();
|
|
150
178
|
await modelerHomePage.createCrossComponentProjectFolder();
|
|
@@ -177,7 +205,7 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
177
205
|
});
|
|
178
206
|
await settingsPage.clickOpenSettingsButton();
|
|
179
207
|
await settingsPage.clickLogoutButton();
|
|
180
|
-
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage,
|
|
208
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, orgOwner, 1000);
|
|
181
209
|
await (0, sleep_1.sleep)(30000);
|
|
182
210
|
await appsPage.clickCamundaApps();
|
|
183
211
|
await appsPage.clickModeler();
|
|
@@ -187,11 +215,9 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
187
215
|
await modelerHomePage.clickMessageBanner();
|
|
188
216
|
await modelerHomePage.openOrganizationManagement(120000);
|
|
189
217
|
await consoleOrganizationsPage.clickUsersTab();
|
|
190
|
-
await consoleOrganizationsPage.
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
await consoleOrganizationsPage.clickOptionsButton();
|
|
194
|
-
await consoleOrganizationsPage.clickEditUserMenuItem();
|
|
218
|
+
await consoleOrganizationsPage.filterTableToUser(process.env.C8_USERNAME_TEST_3);
|
|
219
|
+
await consoleOrganizationsPage.clickOptionsButton(process.env.C8_USERNAME_TEST_3);
|
|
220
|
+
await consoleOrganizationsPage.clickEditUserMenuItem(process.env.C8_USERNAME_TEST_3);
|
|
195
221
|
await consoleOrganizationsPage.uncheckAnalystCheckbox();
|
|
196
222
|
await consoleOrganizationsPage.checkDeveloperCheckbox();
|
|
197
223
|
await consoleOrganizationsPage.clickConfirmButton();
|
|
@@ -203,10 +229,10 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
203
229
|
});
|
|
204
230
|
await settingsPage.clickOpenSettingsButton();
|
|
205
231
|
await settingsPage.clickLogoutButton();
|
|
206
|
-
await
|
|
232
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, {
|
|
207
233
|
username: process.env.C8_USERNAME_TEST_3,
|
|
208
234
|
password: process.env.C8_PASSWORD_TEST_3,
|
|
209
|
-
});
|
|
235
|
+
}, 1000);
|
|
210
236
|
await (0, test_1.expect)(homePage.camundaComponentsButton).toBeVisible({
|
|
211
237
|
timeout: 120000,
|
|
212
238
|
});
|
|
@@ -217,7 +243,14 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
217
243
|
});
|
|
218
244
|
await appsPage.assertOperatePresent(clusterName);
|
|
219
245
|
await appsPage.assertTasklistPresent(clusterName);
|
|
220
|
-
|
|
246
|
+
// Same ungated Hub sidebar as above: Optimize is listed for this
|
|
247
|
+
// Developer too, so its former `false` expectation asserted nothing real.
|
|
248
|
+
// Unlike Operate and Tasklist there is no component-side gate to assert
|
|
249
|
+
// instead -- 8.7's Optimize ships no forbidden page (no
|
|
250
|
+
// "You don't have access to this component" anywhere under optimize/) --
|
|
251
|
+
// so Developer-vs-Optimize access is deliberately left uncovered here
|
|
252
|
+
// rather than asserted against a page shape nobody has verified.
|
|
253
|
+
await appsPage.assertOptimizePresent(clusterName);
|
|
221
254
|
await appsPage.clickModeler();
|
|
222
255
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
223
256
|
await modelerHomePage.clickProcessDiagram(processName);
|
|
@@ -233,7 +266,7 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
233
266
|
});
|
|
234
267
|
await settingsPage.clickOpenSettingsButton();
|
|
235
268
|
await settingsPage.clickLogoutButton();
|
|
236
|
-
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage,
|
|
269
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, orgOwner, 1000);
|
|
237
270
|
await (0, sleep_1.sleep)(20000);
|
|
238
271
|
await appsPage.clickCamundaApps();
|
|
239
272
|
await appsPage.clickModeler();
|
|
@@ -243,11 +276,9 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
243
276
|
await modelerHomePage.clickMessageBanner();
|
|
244
277
|
await modelerHomePage.openOrganizationManagement(60000);
|
|
245
278
|
await consoleOrganizationsPage.clickUsersTab();
|
|
246
|
-
await consoleOrganizationsPage.
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
await consoleOrganizationsPage.clickOptionsButton();
|
|
250
|
-
await consoleOrganizationsPage.clickEditUserMenuItem();
|
|
279
|
+
await consoleOrganizationsPage.filterTableToUser(process.env.C8_USERNAME_TEST_3);
|
|
280
|
+
await consoleOrganizationsPage.clickOptionsButton(process.env.C8_USERNAME_TEST_3);
|
|
281
|
+
await consoleOrganizationsPage.clickEditUserMenuItem(process.env.C8_USERNAME_TEST_3);
|
|
251
282
|
await consoleOrganizationsPage.checkAnalystCheckbox();
|
|
252
283
|
await consoleOrganizationsPage.clickConfirmButton();
|
|
253
284
|
await (0, test_1.expect)(page.getByText('Updating...')).not.toBeVisible({
|
|
@@ -258,10 +289,10 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
258
289
|
});
|
|
259
290
|
await settingsPage.clickOpenSettingsButton();
|
|
260
291
|
await settingsPage.clickLogoutButton();
|
|
261
|
-
await
|
|
292
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, {
|
|
262
293
|
username: process.env.C8_USERNAME_TEST_3,
|
|
263
294
|
password: process.env.C8_PASSWORD_TEST_3,
|
|
264
|
-
});
|
|
295
|
+
}, 1000);
|
|
265
296
|
await (0, test_1.expect)(homePage.camundaComponentsButton).toBeVisible({
|
|
266
297
|
timeout: 120000,
|
|
267
298
|
});
|
|
@@ -111,8 +111,7 @@ _8_9_1.test.describe('Agentic Orchestation User Flows', () => {
|
|
|
111
111
|
});
|
|
112
112
|
_8_9_1.test.describe('AI Agent connector - provider user tests flow', () => {
|
|
113
113
|
for (const params of aiAgentTestCases) {
|
|
114
|
-
|
|
115
|
-
_8_9_1.test.skip(`AI agent with tools provides feedback to user - ${params.provider}`, async ({ appsPage, operateHomePage, operateProcessInstancePage, operateProcessesPage, taskPanelPage, taskDetailsPage, }) => {
|
|
114
|
+
(0, _8_9_1.test)(`AI agent with tools provides feedback to user - ${params.provider}`, async ({ appsPage, operateHomePage, operateProcessInstancePage, operateProcessesPage, taskPanelPage, taskDetailsPage, }) => {
|
|
116
115
|
_8_9_1.test.slow();
|
|
117
116
|
const processKey = await (0, apiHelpers_1.deployProcess)(params.bpmnPath, authToken);
|
|
118
117
|
if (processKey == null) {
|
|
@@ -151,8 +150,7 @@ _8_9_1.test.describe('Agentic Orchestation User Flows', () => {
|
|
|
151
150
|
});
|
|
152
151
|
_8_9_1.test.describe('AI Agent sub process - provider user tests flow', () => {
|
|
153
152
|
for (const params of aiAgentSubProcessTestCases) {
|
|
154
|
-
|
|
155
|
-
_8_9_1.test.skip(`AI agent sub process with tools provides feedback to user - ${params.provider}`, async ({ appsPage, operateHomePage, operateProcessInstancePage, operateProcessesPage, taskPanelPage, taskDetailsPage, }) => {
|
|
153
|
+
(0, _8_9_1.test)(`AI agent sub process with tools provides feedback to user - ${params.provider}`, async ({ appsPage, operateHomePage, operateProcessInstancePage, operateProcessesPage, taskPanelPage, taskDetailsPage, }) => {
|
|
156
154
|
_8_9_1.test.slow();
|
|
157
155
|
const processKey = await (0, apiHelpers_1.deployProcess)(params.bpmnPath, authToken);
|
|
158
156
|
if (processKey == null) {
|
|
@@ -191,8 +189,7 @@ _8_9_1.test.describe('Agentic Orchestation User Flows', () => {
|
|
|
191
189
|
});
|
|
192
190
|
_8_9_1.test.describe('DB Vector Connector User Flow Tests', () => {
|
|
193
191
|
for (const params of dbVectorTestCases) {
|
|
194
|
-
|
|
195
|
-
_8_9_1.test.skip(`DB Vector connector embed via ${params.embedding_provider} and stored on ${params.embedding_store} with source as plain text`, async ({ appsPage, operateHomePage, operateProcessInstancePage, operateProcessesPage, taskPanelPage, taskDetailsPage, }) => {
|
|
192
|
+
(0, _8_9_1.test)(`DB Vector connector embed via ${params.embedding_provider} and stored on ${params.embedding_store} with source as plain text`, async ({ appsPage, operateHomePage, operateProcessInstancePage, operateProcessesPage, taskPanelPage, taskDetailsPage, }) => {
|
|
196
193
|
_8_9_1.test.slow();
|
|
197
194
|
const processKey = await (0, apiHelpers_1.deployProcess)(params.bpmnPath, authToken);
|
|
198
195
|
if (processKey == null) {
|
|
@@ -25,8 +25,7 @@ _8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
25
25
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
26
26
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
27
27
|
});
|
|
28
|
-
|
|
29
|
-
_8_9_1.test.skip('REST Connector No Auth User Flow', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, }) => {
|
|
28
|
+
(0, _8_9_1.test)('REST Connector No Auth User Flow', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, }) => {
|
|
30
29
|
_8_9_1.test.slow();
|
|
31
30
|
const processName = 'REST_Connector_No_Auth_Process' + (await (0, _setup_1.generateRandomStringAsync)(3));
|
|
32
31
|
await _8_9_1.test.step('Navigate to Web Modeler', async () => {
|
|
@@ -66,8 +65,7 @@ _8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
66
65
|
});
|
|
67
66
|
});
|
|
68
67
|
});
|
|
69
|
-
|
|
70
|
-
_8_9_1.test.skip('REST Connector Bearer Token Auth User Flow', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, }) => {
|
|
68
|
+
(0, _8_9_1.test)('REST Connector Bearer Token Auth User Flow', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, }) => {
|
|
71
69
|
_8_9_1.test.slow();
|
|
72
70
|
const processName = 'REST_Connector_Bearer_Auth_Process' +
|
|
73
71
|
(await (0, _setup_1.generateRandomStringAsync)(3));
|
|
@@ -108,8 +106,7 @@ _8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
108
106
|
});
|
|
109
107
|
});
|
|
110
108
|
});
|
|
111
|
-
|
|
112
|
-
_8_9_1.test.skip('Message Start Event Webhook Connector No Auth User Flow', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
|
|
109
|
+
(0, _8_9_1.test)('Message Start Event Webhook Connector No Auth User Flow', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
|
|
113
110
|
_8_9_1.test.slow();
|
|
114
111
|
const processName = 'Start_Event_Webhook_Connector_No_Auth_Process' +
|
|
115
112
|
(await (0, _setup_1.generateRandomStringAsync)(3));
|
|
@@ -171,8 +168,7 @@ _8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
171
168
|
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(operateProcessInstancePage, operateProcessInstancePage.completedIcon, 'Completed icon', 60000);
|
|
172
169
|
});
|
|
173
170
|
});
|
|
174
|
-
|
|
175
|
-
_8_9_1.test.skip('Connector Secrets User Flow - GCP', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, clusterPage, clusterSecretsPage, }) => {
|
|
171
|
+
(0, _8_9_1.test)('Connector Secrets User Flow - GCP', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, clusterPage, clusterSecretsPage, }) => {
|
|
176
172
|
_8_9_1.test.slow();
|
|
177
173
|
const processName = 'REST_Connector_Process' + (await (0, _setup_1.generateRandomStringAsync)(3));
|
|
178
174
|
await _8_9_1.test.step('Navigate to Connectors Secrets', async () => {
|
|
@@ -271,8 +267,7 @@ _8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
271
267
|
});
|
|
272
268
|
});
|
|
273
269
|
});
|
|
274
|
-
|
|
275
|
-
_8_9_1.test.skip('Marketplace Connector User Flow', async ({ page, homePage, appsPage, modelerHomePage, modelerCreatePage, connectorMarketplacePage, connectorSettingsPage, }) => {
|
|
270
|
+
(0, _8_9_1.test)('Marketplace Connector User Flow', async ({ page, homePage, appsPage, modelerHomePage, modelerCreatePage, connectorMarketplacePage, connectorSettingsPage, }) => {
|
|
276
271
|
_8_9_1.test.slow();
|
|
277
272
|
const processName = 'Public Holiday Marketplace Connector' +
|
|
278
273
|
(await (0, _setup_1.generateRandomStringAsync)(3));
|
|
@@ -338,8 +333,7 @@ _8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
338
333
|
});
|
|
339
334
|
});
|
|
340
335
|
});
|
|
341
|
-
|
|
342
|
-
_8_9_1.test.skip('Intermediate Event Webhook Connector No Auth User Flow', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, request, operateHomePage, operateProcessInstancePage, operateProcessesPage, connectorSettingsPage, }) => {
|
|
336
|
+
(0, _8_9_1.test)('Intermediate Event Webhook Connector No Auth User Flow', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, request, operateHomePage, operateProcessInstancePage, operateProcessesPage, connectorSettingsPage, }) => {
|
|
343
337
|
const processName = 'Intermediate_Event_Webhook_Connector_No_Auth_Process' +
|
|
344
338
|
(await (0, _setup_1.generateRandomStringAsync)(3));
|
|
345
339
|
await _8_9_1.test.step('Navigate to Web Modeler', async () => {
|
|
@@ -423,8 +417,7 @@ _8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
423
417
|
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(operateProcessInstancePage, operateProcessInstancePage.completedIcon, 'Completed icon', 60000);
|
|
424
418
|
});
|
|
425
419
|
});
|
|
426
|
-
|
|
427
|
-
_8_9_1.test.skip('Document Handling Connectors User Flow - GCP', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, clusterPage, clusterDetailsPage, connectorMarketplacePage, }) => {
|
|
420
|
+
(0, _8_9_1.test)('Document Handling Connectors User Flow - GCP', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, clusterPage, clusterDetailsPage, connectorMarketplacePage, }) => {
|
|
428
421
|
_8_9_1.test.slow();
|
|
429
422
|
const apiClientName = await (0, _setup_1.generateRandomStringAsync)(6);
|
|
430
423
|
const processName = 'Document_Handling_Connectors_User_Flow_GCP_Process' +
|
|
@@ -82,8 +82,7 @@ _8_9_1.test.describe('Console User Flow Tests @tasklistV2', () => {
|
|
|
82
82
|
await clusterPage.assertClusterHealthyStatusWithRetry(newClusterName, 300000, 1500000);
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
|
-
|
|
86
|
-
_8_9_1.test.skip('Alert Trigger Flow - Email Notification', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, clusterPage, clusterDetailsPage, connectorSettingsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
85
|
+
(0, _8_9_1.test)('Alert Trigger Flow - Email Notification', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, clusterPage, clusterDetailsPage, connectorSettingsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
87
86
|
_8_9_1.test.slow();
|
|
88
87
|
const processName = 'Email_Alert_Process' + (await (0, _setup_1.generateRandomStringAsync)(3));
|
|
89
88
|
const invalidURl = 'https://invalid';
|
|
@@ -237,8 +237,7 @@ _8_9_1.test.describe('IDP User Flow Tests', () => {
|
|
|
237
237
|
});
|
|
238
238
|
_8_9_1.test.describe('Classification Template', () => {
|
|
239
239
|
for (const params of classificationTestCases) {
|
|
240
|
-
|
|
241
|
-
_8_9_1.test.skip(`${params.provider} classification - User creates an idp application with a classification template`, async ({ page, idpCreatePage, modelerHomePage, homePage, appsPage, clusterPage, clusterSecretsPage, }) => {
|
|
240
|
+
(0, _8_9_1.test)(`${params.provider} classification - User creates an idp application with a classification template`, async ({ page, idpCreatePage, modelerHomePage, homePage, appsPage, clusterPage, clusterSecretsPage, }) => {
|
|
242
241
|
_8_9_1.test.slow();
|
|
243
242
|
const idpApplicationName = await (0, randomName_1.randomNameAgregator)(`${params.provider} classification` + ' - IDP_Application_Name');
|
|
244
243
|
const idpClassificationTemplateName = await (0, randomName_1.randomNameAgregator)(`${params.provider} classification` +
|
|
@@ -51,8 +51,7 @@ _8_9_1.test.describe('Orchestration Cluster MCP Server - Cluster Tools @tasklist
|
|
|
51
51
|
},
|
|
52
52
|
];
|
|
53
53
|
for (const testCase of clusterToolTests) {
|
|
54
|
-
|
|
55
|
-
_8_9_1.test.skip(testCase.name, async ({ homePage, appsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
54
|
+
(0, _8_9_1.test)(testCase.name, async ({ homePage, appsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
56
55
|
_8_9_1.test.slow();
|
|
57
56
|
await _8_9_1.test.step('Navigate to completed process in Operate', async () => {
|
|
58
57
|
await homePage.clickClusters();
|
|
@@ -99,8 +99,7 @@ _8_9_1.test.describe('Orchestration Cluster MCP Server - Incident Tools @tasklis
|
|
|
99
99
|
},
|
|
100
100
|
];
|
|
101
101
|
for (const testCase of incidentToolTests) {
|
|
102
|
-
|
|
103
|
-
_8_9_1.test.skip(testCase.name, async ({ homePage, appsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
102
|
+
(0, _8_9_1.test)(testCase.name, async ({ homePage, appsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
104
103
|
_8_9_1.test.slow();
|
|
105
104
|
await _8_9_1.test.step('Navigate to completed process in Operate', async () => {
|
|
106
105
|
await homePage.clickClusters();
|
package/dist/tests/8.9/orchestration-cluster-mcp-server/mcp-process-definition-tools.spec.js
CHANGED
|
@@ -80,8 +80,7 @@ _8_9_1.test.describe('Orchestration Cluster MCP Server - Process Definition Tool
|
|
|
80
80
|
},
|
|
81
81
|
];
|
|
82
82
|
for (const testCase of processDefinitionToolTests) {
|
|
83
|
-
|
|
84
|
-
_8_9_1.test.skip(testCase.name, async ({ homePage, appsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
83
|
+
(0, _8_9_1.test)(testCase.name, async ({ homePage, appsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
85
84
|
_8_9_1.test.slow();
|
|
86
85
|
await _8_9_1.test.step('Navigate to completed process in Operate', async () => {
|
|
87
86
|
await homePage.clickClusters();
|
|
@@ -89,8 +89,7 @@ _8_9_1.test.describe('Orchestration Cluster MCP Server - Process Instance Tools
|
|
|
89
89
|
},
|
|
90
90
|
];
|
|
91
91
|
for (const testCase of processInstanceToolTests) {
|
|
92
|
-
|
|
93
|
-
_8_9_1.test.skip(testCase.name, async ({ homePage, appsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
92
|
+
(0, _8_9_1.test)(testCase.name, async ({ homePage, appsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
94
93
|
_8_9_1.test.slow();
|
|
95
94
|
await _8_9_1.test.step('Navigate to completed process in Operate', async () => {
|
|
96
95
|
await homePage.clickClusters();
|
|
@@ -103,8 +103,7 @@ _8_9_1.test.describe('Orchestration Cluster MCP Server - User Task Tools @taskli
|
|
|
103
103
|
},
|
|
104
104
|
];
|
|
105
105
|
for (const testCase of userTaskToolTests) {
|
|
106
|
-
|
|
107
|
-
_8_9_1.test.skip(testCase.name, async ({ page, homePage, appsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
106
|
+
(0, _8_9_1.test)(testCase.name, async ({ page, homePage, appsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
108
107
|
_8_9_1.test.slow();
|
|
109
108
|
await _8_9_1.test.step('Navigate to completed process in Operate', async () => {
|
|
110
109
|
await page.goto('/');
|
|
@@ -95,8 +95,7 @@ _8_9_1.test.describe('Orchestration Cluster MCP Server - Variable Tools @tasklis
|
|
|
95
95
|
},
|
|
96
96
|
];
|
|
97
97
|
for (const testCase of variableToolTests) {
|
|
98
|
-
|
|
99
|
-
_8_9_1.test.skip(testCase.name, async ({ homePage, appsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
98
|
+
(0, _8_9_1.test)(testCase.name, async ({ homePage, appsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
100
99
|
_8_9_1.test.slow();
|
|
101
100
|
await _8_9_1.test.step('Navigate to completed process in Operate', async () => {
|
|
102
101
|
await homePage.clickClusters();
|
|
@@ -182,8 +182,7 @@ _8_9_1.test.describe('Smoke Tests', () => {
|
|
|
182
182
|
});
|
|
183
183
|
});
|
|
184
184
|
});
|
|
185
|
-
|
|
186
|
-
_8_9_1.test.skip('Most Common REST Connector User Flow', async ({ page, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, }) => {
|
|
185
|
+
(0, _8_9_1.test)('Most Common REST Connector User Flow', async ({ page, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, }) => {
|
|
187
186
|
_8_9_1.test.slow();
|
|
188
187
|
const randomString = useFixedNames
|
|
189
188
|
? 'UpgradeTest'
|