@camunda/e2e-test-suite 0.0.1294 → 0.0.1295
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.10/AppsPage.d.ts +7 -3
- package/dist/pages/8.10/AppsPage.js +166 -49
- package/dist/pages/8.10/ClusterDetailsPage.d.ts +2 -0
- package/dist/pages/8.10/ClusterDetailsPage.js +49 -2
- package/dist/pages/8.10/ClusterSecretsPage.js +5 -1
- package/dist/pages/8.10/ConnectorMarketplacePage.d.ts +6 -0
- package/dist/pages/8.10/ConnectorMarketplacePage.js +107 -1
- package/dist/pages/8.10/ConsoleOrganizationPage.d.ts +3 -2
- package/dist/pages/8.10/ConsoleOrganizationPage.js +64 -27
- package/dist/pages/8.10/FormJsPage.js +36 -18
- package/dist/pages/8.10/IdpCreatePage.js +6 -2
- package/dist/pages/8.10/ModelerCreatePage.d.ts +8 -0
- package/dist/pages/8.10/ModelerCreatePage.js +316 -40
- package/dist/pages/8.10/ModelerHomePage.d.ts +10 -0
- package/dist/pages/8.10/ModelerHomePage.js +165 -55
- package/dist/pages/8.10/OCIdentityClusterVariablesPage.js +3 -1
- package/dist/pages/8.10/OCIdentityHomePage.js +7 -3
- package/dist/pages/8.10/OptimizeHomePage.d.ts +0 -1
- package/dist/pages/8.10/OptimizeHomePage.js +10 -46
- package/dist/pages/8.10/PlayPage.js +9 -3
- package/dist/pages/8.10/ProcessApplicationPage.d.ts +1 -0
- package/dist/pages/8.10/ProcessApplicationPage.js +128 -6
- package/dist/pages/8.10/UtilitiesPage.js +44 -17
- package/dist/pages/8.10/WorkspaceMembersPage.d.ts +21 -0
- package/dist/pages/8.10/WorkspaceMembersPage.js +264 -0
- package/dist/resources/agentic_ai/ai-agent-chat-with-tools_gemini_vertex.bpmn +1 -1
- package/dist/tests/8.10/access-user-role-management.spec.js +142 -26
- package/dist/tests/8.10/idp-user-flows.spec.js +2 -1
- package/dist/tests/8.10/rba-enabled-v2-user-flows.spec.js +13 -4
- package/dist/tests/8.10/smoke-tests.spec.js +9 -25
- package/dist/tests/8.10/test-setup.spec.js +57 -4
- package/dist/tests/8.10/web-modeler-user-flows.spec.js +2 -1
- package/package.json +1 -1
- package/resources/agentic_ai/ai-agent-chat-with-tools_gemini_vertex.bpmn +1 -1
|
@@ -6,9 +6,16 @@ const UtilitiesPage_1 = require("../../pages/8.10/UtilitiesPage");
|
|
|
6
6
|
const sleep_1 = require("../../utils/sleep");
|
|
7
7
|
const resetSession_1 = require("../../utils/resetSession");
|
|
8
8
|
const LoginPage_1 = require("../../pages/8.10/LoginPage");
|
|
9
|
+
const WorkspaceMembersPage_1 = require("../../pages/8.10/WorkspaceMembersPage");
|
|
9
10
|
const test_1 = require("@playwright/test");
|
|
10
11
|
const users_1 = require("../../utils/users");
|
|
12
|
+
const consoleApiHelpers_1 = require("../../utils/consoleApiHelpers");
|
|
11
13
|
const testUser = (0, users_1.getTestUser)('mainUser');
|
|
14
|
+
// The workspace the Analyst flow borrows Editor rights on, and whether that
|
|
15
|
+
// grant is currently outstanding. Read by the teardown below so it only
|
|
16
|
+
// reaches for Hub's Manage members view when there is something to undo.
|
|
17
|
+
const analystWorkspaceName = 'Cross Component Test Project';
|
|
18
|
+
let analystWorkspaceGrantMade = false;
|
|
12
19
|
_8_10_1.test.describe.configure({ mode: 'parallel' });
|
|
13
20
|
_8_10_1.test.describe('User Roles User Flow', () => {
|
|
14
21
|
const clusterNames = {
|
|
@@ -17,6 +24,10 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
17
24
|
'Admin Role User Flow': 'Admin Role Cluster',
|
|
18
25
|
};
|
|
19
26
|
_8_10_1.test.beforeEach(async ({ page, homePage, clusterPage, loginPage, clusterDetailsPage, appsPage }, testInfo) => {
|
|
27
|
+
// Claimed here, not in each body: creating the cluster and waiting for
|
|
28
|
+
// it to come back Healthy after the authorizations toggle can outlast
|
|
29
|
+
// the default per-test timeout before the body starts. Same as 8.8.
|
|
30
|
+
_8_10_1.test.slow();
|
|
20
31
|
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
21
32
|
await (0, test_1.expect)(homePage.clusterTab).toBeVisible({ timeout: 120000 });
|
|
22
33
|
await homePage.clickClusters();
|
|
@@ -30,9 +41,33 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
30
41
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
31
42
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
32
43
|
});
|
|
44
|
+
// Workspace membership is durable organization state, so the Editor rights
|
|
45
|
+
// the Analyst flow grants must be handed back whether the test passed or
|
|
46
|
+
// failed. Left behind, a retry would start with the analyst already an
|
|
47
|
+
// Editor and its own "not reachable without workspace access" assertion
|
|
48
|
+
// would fail on the second attempt; the grant would also leak into every
|
|
49
|
+
// later nightly run against the same org.
|
|
50
|
+
_8_10_1.test.afterEach(async ({ page, loginPage }, testInfo) => {
|
|
51
|
+
if (!testInfo.title.startsWith('Analyst Role User Flow')) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (!analystWorkspaceGrantMade) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
// Leave Hub before the analyst's session is dropped. A Hub deep link
|
|
58
|
+
// reloaded signed out is persisted as the next login's destination
|
|
59
|
+
// (camunda-hub auth-service.saas.ts persistReturnTo), so the admin landed
|
|
60
|
+
// on the analyst's diagram, whose sidebar has no org link for
|
|
61
|
+
// assertTestUsesCorrectOrganization to find.
|
|
62
|
+
await page.goto('about:blank');
|
|
63
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
64
|
+
const workspaceMembersPage = new WorkspaceMembersPage_1.WorkspaceMembersPage(page);
|
|
65
|
+
await workspaceMembersPage.openManageMembers(analystWorkspaceName);
|
|
66
|
+
await workspaceMembersPage.removeMember(process.env.C8_USERNAME_TEST_9);
|
|
67
|
+
analystWorkspaceGrantMade = false;
|
|
68
|
+
});
|
|
33
69
|
//Fix will be implemented in https://github.com/camunda/c8-cross-component-e2e-tests/issues/1236
|
|
34
70
|
_8_10_1.test.skip('Modeler Role User Flow', async ({ page, modelerHomePage, appsPage, homePage, clusterPage, clusterDetailsPage, context, consoleOrganizationsPage, settingsPage, operateHomePage, ocIdentityHomePage, taskPanelPage, optimizeHomePage, modelerCreatePage, }) => {
|
|
35
|
-
_8_10_1.test.slow();
|
|
36
71
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
37
72
|
const processName = 'User Roles User Flow' + randomString;
|
|
38
73
|
const clusterName = clusterNames['Modeler Role User Flow'];
|
|
@@ -65,9 +100,9 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
65
100
|
timeout: 60000,
|
|
66
101
|
});
|
|
67
102
|
await appsPage.clickCamundaApps();
|
|
68
|
-
await appsPage.assertOptimizePresent();
|
|
69
|
-
await appsPage.assertOperatePresent();
|
|
70
|
-
await appsPage.assertTasklistPresent();
|
|
103
|
+
await appsPage.assertOptimizePresent(clusterName);
|
|
104
|
+
await appsPage.assertOperatePresent(clusterName);
|
|
105
|
+
await appsPage.assertTasklistPresent(clusterName);
|
|
71
106
|
await (0, test_1.expect)(appsPage.modelerLink).toBeVisible();
|
|
72
107
|
await appsPage.clickCamundaApps();
|
|
73
108
|
});
|
|
@@ -79,7 +114,7 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
79
114
|
});
|
|
80
115
|
});
|
|
81
116
|
await _8_10_1.test.step('Navigate to Tasklist and Ensure Tasklist is not Accessible', async () => {
|
|
82
|
-
await
|
|
117
|
+
await appsPage.goBackToHub();
|
|
83
118
|
await (0, UtilitiesPage_1.waitForLoadingToFinish)(page);
|
|
84
119
|
await appsPage.clickCamundaApps();
|
|
85
120
|
await appsPage.clickTasklist(clusterName);
|
|
@@ -88,7 +123,7 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
88
123
|
});
|
|
89
124
|
});
|
|
90
125
|
await _8_10_1.test.step('Navigate to Identity and Ensure Identity is not Accessible', async () => {
|
|
91
|
-
await
|
|
126
|
+
await appsPage.goBackToHub();
|
|
92
127
|
await (0, UtilitiesPage_1.waitForLoadingToFinish)(page);
|
|
93
128
|
await appsPage.clickCamundaApps();
|
|
94
129
|
await appsPage.clickAdmin(clusterName);
|
|
@@ -97,7 +132,7 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
97
132
|
});
|
|
98
133
|
});
|
|
99
134
|
await _8_10_1.test.step('Navigate to Optimize and Ensure Optimize is Not Accessible', async () => {
|
|
100
|
-
await
|
|
135
|
+
await appsPage.goBackToHub();
|
|
101
136
|
await (0, UtilitiesPage_1.waitForLoadingToFinish)(page);
|
|
102
137
|
await appsPage.clickCamundaApps();
|
|
103
138
|
await appsPage.clickOptimize(clusterName);
|
|
@@ -106,7 +141,7 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
106
141
|
});
|
|
107
142
|
});
|
|
108
143
|
await _8_10_1.test.step('Navigate to Modeler and Ensure Diagram Failed To Deploy', async () => {
|
|
109
|
-
await
|
|
144
|
+
await appsPage.goBackToHub();
|
|
110
145
|
await (0, UtilitiesPage_1.waitForLoadingToFinish)(page);
|
|
111
146
|
await appsPage.clickCamundaApps();
|
|
112
147
|
await appsPage.clickModeler();
|
|
@@ -130,10 +165,20 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
130
165
|
});
|
|
131
166
|
});
|
|
132
167
|
(0, _8_10_1.test)('Analyst Role User Flow', async ({ page, modelerHomePage, appsPage, homePage, clusterPage, clusterDetailsPage, browser, consoleOrganizationsPage, settingsPage, operateHomePage, ocIdentityHomePage, taskPanelPage, optimizeHomePage, modelerCreatePage, }) => {
|
|
133
|
-
_8_10_1.test.slow();
|
|
134
168
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
135
169
|
const processName = 'User Roles User Flow' + randomString;
|
|
136
170
|
const clusterName = clusterNames['Analyst Role User Flow'];
|
|
171
|
+
// A retry runs in a fresh worker, where analystWorkspaceGrantMade starts
|
|
172
|
+
// false even when the previous attempt's teardown failed to hand the
|
|
173
|
+
// grant back. The "not reachable" step below would then always fail.
|
|
174
|
+
if (_8_10_1.test.info().retry > 0) {
|
|
175
|
+
await _8_10_1.test.step('Hand back a workspace grant left by the previous attempt', async () => {
|
|
176
|
+
await appsPage.clickModeler();
|
|
177
|
+
const workspaceMembersPage = new WorkspaceMembersPage_1.WorkspaceMembersPage(page);
|
|
178
|
+
await workspaceMembersPage.openManageMembers(analystWorkspaceName);
|
|
179
|
+
await workspaceMembersPage.removeMember(process.env.C8_USERNAME_TEST_9);
|
|
180
|
+
});
|
|
181
|
+
}
|
|
137
182
|
await _8_10_1.test.step('Navigate to Console and Enable RBA', async () => {
|
|
138
183
|
await (0, UtilitiesPage_1.enableAuthorizations)(clusterName, homePage, clusterPage, clusterDetailsPage, appsPage);
|
|
139
184
|
await (0, sleep_1.sleep)(15000);
|
|
@@ -155,6 +200,77 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
155
200
|
password: process.env.C8_PASSWORD_TEST_9,
|
|
156
201
|
});
|
|
157
202
|
});
|
|
203
|
+
// An organization role no longer decides on its own what a non-admin can
|
|
204
|
+
// reach. Since camunda-hub's environments work (pdp-3443, pdp-3715), a
|
|
205
|
+
// cluster's apps are surfaced through an ENVIRONMENT, and an environment
|
|
206
|
+
// is visible only to users who are Editor or Workspace Admin on a
|
|
207
|
+
// workspace it is assigned to -- organization admins and owners excepted,
|
|
208
|
+
// who see every environment unconditionally. An Analyst with no workspace
|
|
209
|
+
// membership therefore reaches nothing, which is the decided design
|
|
210
|
+
// rather than a defect: "Clusters are shown only to org admins.
|
|
211
|
+
// Non-admins do not have cluster visibility (they operate with
|
|
212
|
+
// environments instead)."
|
|
213
|
+
//
|
|
214
|
+
// Assert that gate before granting the membership the rest of this test
|
|
215
|
+
// depends on, so both halves are covered: the role alone grants no
|
|
216
|
+
// access, and the role plus workspace editorship does.
|
|
217
|
+
await _8_10_1.test.step('Ensure Optimize is not reachable without workspace access', async () => {
|
|
218
|
+
// Assert the cause, not just the consequence. Hub shows the analyst an
|
|
219
|
+
// empty Workspaces overview -- "You don't have explicit membership in
|
|
220
|
+
// any workspace in this organization" before the scope is widened, and
|
|
221
|
+
// "Your organization has no workspaces yet" after -- because the
|
|
222
|
+
// workspace belongs to whoever created it. With no workspace there is
|
|
223
|
+
// no environment, and with no environment no cluster app, so checking
|
|
224
|
+
// the Optimize banner alone would pass for unrelated reasons too.
|
|
225
|
+
await appsPage.clickCamundaApps();
|
|
226
|
+
await (0, test_1.expect)(page
|
|
227
|
+
.getByText('Your organization has no workspaces yet')
|
|
228
|
+
.or(page.getByText("You don't have explicit membership in any workspace"))
|
|
229
|
+
.first()).toBeVisible({ timeout: 60000 });
|
|
230
|
+
// Assert the absence of THIS cluster's Optimize target directly rather
|
|
231
|
+
// than calling clickOptimize() and swallowing whatever it throws: a
|
|
232
|
+
// swallowed error would let this step pass because the hand-off helper
|
|
233
|
+
// itself broke and the page simply stayed on Hub, where the Optimize
|
|
234
|
+
// banner is absent for reasons that have nothing to do with the gate.
|
|
235
|
+
// On Hub a cluster's apps hang off the sidebar group named for the
|
|
236
|
+
// cluster, so with no environment neither the group nor the Optimize
|
|
237
|
+
// link inside it is ever rendered.
|
|
238
|
+
const hubSidebar = page.getByRole('navigation', {
|
|
239
|
+
name: 'Main navigation',
|
|
240
|
+
});
|
|
241
|
+
// The negative counts below mean nothing before the shell has rendered.
|
|
242
|
+
await (0, test_1.expect)(hubSidebar).toBeVisible({ timeout: 30000 });
|
|
243
|
+
await (0, test_1.expect)(hubSidebar.getByRole('button', { name: clusterName })).toHaveCount(0, { timeout: 30000 });
|
|
244
|
+
await (0, test_1.expect)(hubSidebar.getByRole('link', { name: /Optimize/ })).toHaveCount(0, { timeout: 30000 });
|
|
245
|
+
await (0, test_1.expect)(optimizeHomePage.optimizeBanner).not.toBeVisible({
|
|
246
|
+
timeout: 30000,
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
await _8_10_1.test.step('Grant the analyst Editor rights on the shared workspace', async () => {
|
|
250
|
+
// Only an organization admin may change workspace membership, so this
|
|
251
|
+
// switches to the main user and back rather than doing it as the
|
|
252
|
+
// analyst under test.
|
|
253
|
+
await (0, resetSession_1.resetSession)(browser, page);
|
|
254
|
+
await new LoginPage_1.LoginPage(page).loginWithTestUser({
|
|
255
|
+
username: process.env.C8_USERNAME,
|
|
256
|
+
password: process.env.C8_PASSWORD,
|
|
257
|
+
});
|
|
258
|
+
const workspaceMembersPage = new WorkspaceMembersPage_1.WorkspaceMembersPage(page);
|
|
259
|
+
await workspaceMembersPage.openManageMembers(analystWorkspaceName);
|
|
260
|
+
// Flagged before the grant, not after: a failure partway through
|
|
261
|
+
// setMemberRole can still have added the member, and teardown must
|
|
262
|
+
// clean that up too.
|
|
263
|
+
analystWorkspaceGrantMade = true;
|
|
264
|
+
await workspaceMembersPage.setMemberRole(process.env.C8_USERNAME_TEST_9, 'Editor');
|
|
265
|
+
// Editorship alone surfaces nothing: this cluster's environment must
|
|
266
|
+
// also be assigned to that same workspace, and nothing else assigns it.
|
|
267
|
+
await (0, consoleApiHelpers_1.linkClusterToWorkspaceViaApi)(page, workspaceMembersPage.workspaceId(), clusterName);
|
|
268
|
+
await (0, resetSession_1.resetSession)(browser, page);
|
|
269
|
+
await new LoginPage_1.LoginPage(page).loginWithTestUser({
|
|
270
|
+
username: process.env.C8_USERNAME_TEST_9,
|
|
271
|
+
password: process.env.C8_PASSWORD_TEST_9,
|
|
272
|
+
});
|
|
273
|
+
});
|
|
158
274
|
await _8_10_1.test.step('Wait for the role change to reach Optimize', async () => {
|
|
159
275
|
// Replaces a blind `sleep(600000)`. The role change only takes effect in
|
|
160
276
|
// Optimize once its permission cache refreshes, and reaching Optimize is
|
|
@@ -188,9 +304,9 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
188
304
|
timeout: 60000,
|
|
189
305
|
});
|
|
190
306
|
await appsPage.clickCamundaApps();
|
|
191
|
-
await appsPage.assertOptimizePresent();
|
|
192
|
-
await appsPage.assertOperatePresent();
|
|
193
|
-
await appsPage.assertTasklistPresent();
|
|
307
|
+
await appsPage.assertOptimizePresent(clusterName);
|
|
308
|
+
await appsPage.assertOperatePresent(clusterName);
|
|
309
|
+
await appsPage.assertTasklistPresent(clusterName);
|
|
194
310
|
await (0, test_1.expect)(appsPage.modelerLink).toBeVisible();
|
|
195
311
|
await appsPage.clickCamundaApps();
|
|
196
312
|
});
|
|
@@ -200,7 +316,7 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
200
316
|
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, operateHomePage.noPermissionsMessage, 'Operate No Permission message');
|
|
201
317
|
});
|
|
202
318
|
await _8_10_1.test.step('Navigate to Tasklist and Ensure Tasklist is not Accessible', async () => {
|
|
203
|
-
await
|
|
319
|
+
await appsPage.goBackToHub();
|
|
204
320
|
await appsPage.clickCamundaApps();
|
|
205
321
|
await appsPage.clickTasklist(clusterName);
|
|
206
322
|
await (0, test_1.expect)(taskPanelPage.noPermissionsMessage).toBeVisible({
|
|
@@ -208,7 +324,7 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
208
324
|
});
|
|
209
325
|
});
|
|
210
326
|
await _8_10_1.test.step('Navigate to Identity and Ensure Identity is not Accessible', async () => {
|
|
211
|
-
await
|
|
327
|
+
await appsPage.goBackToHub();
|
|
212
328
|
await appsPage.clickCamundaApps();
|
|
213
329
|
await appsPage.clickAdmin(clusterName);
|
|
214
330
|
await (0, test_1.expect)(ocIdentityHomePage.noPermissionsMessage).toBeVisible({
|
|
@@ -216,14 +332,14 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
216
332
|
});
|
|
217
333
|
});
|
|
218
334
|
await _8_10_1.test.step('Navigate to Optimize and Ensure Optimize is Accessible', async () => {
|
|
219
|
-
await
|
|
335
|
+
await appsPage.goBackToHub();
|
|
220
336
|
await appsPage.clickCamundaApps();
|
|
221
337
|
await appsPage.clickOptimize(clusterName);
|
|
222
338
|
await (0, test_1.expect)(optimizeHomePage.optimizeBanner).toBeVisible({
|
|
223
339
|
timeout: 60000,
|
|
224
340
|
});
|
|
225
341
|
});
|
|
226
|
-
await _8_10_1.test.step('Navigate to Modeler and Ensure Diagram
|
|
342
|
+
await _8_10_1.test.step('Navigate to Modeler and Ensure Diagram Cannot Be Deployed & Run', async () => {
|
|
227
343
|
await appsPage.clickCamundaApps();
|
|
228
344
|
await appsPage.clickModeler();
|
|
229
345
|
await homePage.clickSkipCustomization();
|
|
@@ -240,13 +356,13 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
240
356
|
await modelerCreatePage.clickAppendElementButton();
|
|
241
357
|
await modelerCreatePage.clickAppendEndEventButton();
|
|
242
358
|
await (0, sleep_1.sleep)(20000);
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
359
|
+
// Hub gates this in the UI: an Analyst holds no instance or workflow
|
|
360
|
+
// create permission, so "Deploy & run" is offered only disabled, where
|
|
361
|
+
// Console let the attempt through and reported a failed deployment.
|
|
362
|
+
await modelerCreatePage.assertDeployAndRunNotPermitted();
|
|
246
363
|
});
|
|
247
364
|
});
|
|
248
365
|
(0, _8_10_1.test)('Admin Role User Flow', async ({ page, modelerHomePage, appsPage, homePage, clusterPage, clusterDetailsPage, browser, consoleOrganizationsPage, settingsPage, operateHomePage, ocIdentityHomePage, taskPanelPage, optimizeHomePage, modelerCreatePage, }) => {
|
|
249
|
-
_8_10_1.test.slow();
|
|
250
366
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
251
367
|
const processName = 'User Roles User Flow' + randomString;
|
|
252
368
|
const clusterName = clusterNames['Admin Role User Flow'];
|
|
@@ -304,9 +420,9 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
304
420
|
timeout: 60000,
|
|
305
421
|
});
|
|
306
422
|
await appsPage.clickCamundaApps();
|
|
307
|
-
await appsPage.assertOptimizePresent();
|
|
308
|
-
await appsPage.assertOperatePresent();
|
|
309
|
-
await appsPage.assertTasklistPresent();
|
|
423
|
+
await appsPage.assertOptimizePresent(clusterName);
|
|
424
|
+
await appsPage.assertOperatePresent(clusterName);
|
|
425
|
+
await appsPage.assertTasklistPresent(clusterName);
|
|
310
426
|
await (0, test_1.expect)(appsPage.modelerLink).toBeVisible();
|
|
311
427
|
await appsPage.clickCamundaApps();
|
|
312
428
|
});
|
|
@@ -318,7 +434,7 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
318
434
|
});
|
|
319
435
|
});
|
|
320
436
|
await _8_10_1.test.step('Navigate to Tasklist and Ensure Tasklist is Accessible', async () => {
|
|
321
|
-
await
|
|
437
|
+
await appsPage.goBackToHub();
|
|
322
438
|
await appsPage.clickCamundaApps();
|
|
323
439
|
await appsPage.clickTasklist(clusterName);
|
|
324
440
|
await (0, test_1.expect)(taskPanelPage.taskListPageBanner).toBeVisible({
|
|
@@ -326,7 +442,7 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
326
442
|
});
|
|
327
443
|
});
|
|
328
444
|
await _8_10_1.test.step('Navigate to Identity and Ensure Identity is Accessible', async () => {
|
|
329
|
-
await
|
|
445
|
+
await appsPage.goBackToHub();
|
|
330
446
|
await appsPage.clickCamundaApps();
|
|
331
447
|
await appsPage.clickAdmin(clusterName);
|
|
332
448
|
await (0, test_1.expect)(ocIdentityHomePage.adminBanner).toBeVisible({
|
|
@@ -337,7 +453,7 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
337
453
|
});
|
|
338
454
|
});
|
|
339
455
|
await _8_10_1.test.step('Navigate to Optimize and Ensure Optimize is Accessible', async () => {
|
|
340
|
-
await
|
|
456
|
+
await appsPage.goBackToHub();
|
|
341
457
|
await appsPage.clickCamundaApps();
|
|
342
458
|
await appsPage.clickOptimize(clusterName);
|
|
343
459
|
await (0, test_1.expect)(optimizeHomePage.optimizeBanner).toBeVisible({
|
|
@@ -234,7 +234,8 @@ _8_10_1.test.describe('IDP User Flow Tests', () => {
|
|
|
234
234
|
});
|
|
235
235
|
_8_10_1.test.describe('Classification Template', () => {
|
|
236
236
|
for (const params of classificationTestCases) {
|
|
237
|
-
|
|
237
|
+
// Skipped due to bug #29644: https://github.com/camunda/camunda-hub/issues/29644
|
|
238
|
+
_8_10_1.test.skip(`${params.provider} classification - User creates an idp application with a classification template`, async ({ page, idpCreatePage, modelerHomePage, homePage, appsPage, clusterPage, clusterSecretsPage, }) => {
|
|
238
239
|
_8_10_1.test.slow();
|
|
239
240
|
const idpApplicationName = await (0, randomName_1.randomNameAgregator)(`${params.provider} classification` + ' - IDP_Application_Name');
|
|
240
241
|
const idpClassificationTemplateName = await (0, randomName_1.randomNameAgregator)(`${params.provider} classification` +
|
|
@@ -10,6 +10,7 @@ const expectTextWithRetry_1 = require("../../utils/assertionHelpers/expectTextWi
|
|
|
10
10
|
const expectTextWithPagination_1 = require("../../utils/assertionHelpers/expectTextWithPagination");
|
|
11
11
|
const users_1 = require("../../utils/users");
|
|
12
12
|
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
13
|
+
const consoleApiHelpers_1 = require("../../utils/consoleApiHelpers");
|
|
13
14
|
const mainUser = (0, users_1.getTestUser)('twentySixthUser');
|
|
14
15
|
_8_10_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () => {
|
|
15
16
|
const clusterNames = {
|
|
@@ -19,6 +20,10 @@ _8_10_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () =>
|
|
|
19
20
|
'RBA On User Flow - Permission for Selected Processes Only': 'Fourth RBA V2 Cluster',
|
|
20
21
|
};
|
|
21
22
|
_8_10_1.test.beforeEach(async ({ page, homePage, clusterPage, loginPage, clusterDetailsPage, appsPage }, testInfo) => {
|
|
23
|
+
// Claimed here, not in each body: creating the cluster and waiting for
|
|
24
|
+
// it to come back Healthy after the authorizations toggle can outlast
|
|
25
|
+
// the default per-test timeout before the body starts.
|
|
26
|
+
_8_10_1.test.slow();
|
|
22
27
|
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, mainUser, (testInfo.workerIndex + 1) * 1000);
|
|
23
28
|
await (0, test_1.expect)(homePage.clusterTab).toBeVisible({ timeout: 120000 });
|
|
24
29
|
await homePage.clickClusters();
|
|
@@ -26,13 +31,20 @@ _8_10_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () =>
|
|
|
26
31
|
(0, test_1.expect)(clusterName, `No cluster mapping for test title: "${testInfo.title}")`).toBeTruthy();
|
|
27
32
|
await clusterPage.createClusterIfNotExists(clusterName);
|
|
28
33
|
await (0, UtilitiesPage_1.disableRBA)(clusterName, homePage, clusterPage, clusterDetailsPage, appsPage);
|
|
34
|
+
// The flows below hand off to test users with no elevated or DevOps org
|
|
35
|
+
// role, and Hub only lets those roles assign an environment to a
|
|
36
|
+
// workspace (camunda-hub#28955). Without this, the test user's deploy
|
|
37
|
+
// dialog never offers this cluster and every runProcessInstance retry
|
|
38
|
+
// fails until the test times out. Assign it now, while the elevated
|
|
39
|
+
// main user's session is active. test-setup creates the test users'
|
|
40
|
+
// workspaces up front so that they exist at this point.
|
|
41
|
+
await (0, consoleApiHelpers_1.linkClusterToWorkspacesNamedViaApi)(page, clusterName);
|
|
29
42
|
});
|
|
30
43
|
_8_10_1.test.afterEach(async ({ page }, testInfo) => {
|
|
31
44
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
32
45
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
33
46
|
});
|
|
34
47
|
(0, _8_10_1.test)('RBA On User Flow - No User Permission', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, clusterPage, clusterDetailsPage, taskPanelPage, taskProcessesPage, operateHomePage, ocIdentityHomePage, ocIdentityAuthorizationsPage, ocIdentityRolesPage, loginPage, settingsPage, }, testInfo) => {
|
|
35
|
-
_8_10_1.test.slow();
|
|
36
48
|
const clusterName = clusterNames[testInfo.title];
|
|
37
49
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
38
50
|
const processName = 'RBA_NO_PERM' + randomString;
|
|
@@ -138,7 +150,6 @@ _8_10_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () =>
|
|
|
138
150
|
});
|
|
139
151
|
});
|
|
140
152
|
(0, _8_10_1.test)('RBA On User Flow - Permission for One Process', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, clusterPage, clusterDetailsPage, taskPanelPage, taskProcessesPage, operateHomePage, loginPage, ocIdentityHomePage, ocIdentityAuthorizationsPage, ocIdentityRolesPage, settingsPage, }, testInfo) => {
|
|
141
|
-
_8_10_1.test.slow();
|
|
142
153
|
const clusterName = clusterNames[testInfo.title];
|
|
143
154
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
144
155
|
const processName = 'RBA_ONE_PERM' + randomString;
|
|
@@ -290,7 +301,6 @@ _8_10_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () =>
|
|
|
290
301
|
});
|
|
291
302
|
});
|
|
292
303
|
(0, _8_10_1.test)('RBA On User Flow - Permission for All Processes with Full Permissions', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, clusterPage, clusterDetailsPage, taskPanelPage, taskProcessesPage, operateHomePage, ocIdentityHomePage, ocIdentityAuthorizationsPage, }, testInfo) => {
|
|
293
|
-
_8_10_1.test.slow();
|
|
294
304
|
const clusterName = clusterNames[testInfo.title];
|
|
295
305
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
296
306
|
const processName = 'AFTER_RBA' + randomString;
|
|
@@ -382,7 +392,6 @@ _8_10_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () =>
|
|
|
382
392
|
});
|
|
383
393
|
});
|
|
384
394
|
(0, _8_10_1.test)('RBA On User Flow - Permission for Selected Processes Only', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, clusterPage, clusterDetailsPage, taskPanelPage, taskProcessesPage, operateHomePage, ocIdentityHomePage, ocIdentityAuthorizationsPage, ocIdentityRolesPage, loginPage, settingsPage, }, testInfo) => {
|
|
385
|
-
_8_10_1.test.slow();
|
|
386
395
|
const clusterName = clusterNames[testInfo.title];
|
|
387
396
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
388
397
|
const processName = 'RBA_SELECTED_PERM' + randomString;
|
|
@@ -11,6 +11,7 @@ const OperateProcessesPage_1 = require("../../pages/8.10/OperateProcessesPage");
|
|
|
11
11
|
const OperateProcessInstancePage_1 = require("../../pages/8.10/OperateProcessInstancePage");
|
|
12
12
|
const UtilitiesPage_1 = require("../../pages/8.10/UtilitiesPage");
|
|
13
13
|
const OptimizeHomePage_1 = require("../../pages/8.10/OptimizeHomePage");
|
|
14
|
+
const OptimizeDashboardPage_1 = require("../../pages/8.10/OptimizeDashboardPage");
|
|
14
15
|
const OptimizeCollectionsPage_1 = require("../../pages/8.10/OptimizeCollectionsPage");
|
|
15
16
|
const OptimizeReportPage_1 = require("../../pages/8.10/OptimizeReportPage");
|
|
16
17
|
const users_1 = require("../../utils/users");
|
|
@@ -225,32 +226,15 @@ _8_10_1.test.describe('Smoke Tests', () => {
|
|
|
225
226
|
// budget reloading a page that can never render a process definition
|
|
226
227
|
// (see `openOptimizeWithRetry`).
|
|
227
228
|
await appTabAppsPage.openOptimizeWithRetry(optimizeHomePage.optimizeBanner, CLUSTER_NAME, constants_1.TIMEOUT.navigation);
|
|
228
|
-
//
|
|
229
|
-
//
|
|
230
|
-
//
|
|
231
|
-
//
|
|
232
|
-
//
|
|
233
|
-
// Rounds are derived from the time the flow has left rather than fixed at
|
|
234
|
-
// 10, for the same reason the waits above are clamped: 10 x 2 min is 20
|
|
235
|
-
// min of the test's 36, so on a run that already spent its budget on the
|
|
236
|
-
// Operate imports these rounds were what pushed it past the harness
|
|
237
|
-
// timeout. At least 2 rounds are always attempted, and a healthy run
|
|
238
|
-
// still gets all 10.
|
|
239
|
-
// Deriving only the ROUND COUNT from `flowBudget` left the wait itself
|
|
240
|
-
// unclamped: the helper's budget is `timeout * maxRetries`, computed from
|
|
241
|
-
// the per-round timeout it is handed, so the `max(2, ...)` floor kept at
|
|
242
|
-
// least 2 x 120s of polling even on a flow with seconds left -- and the
|
|
243
|
-
// report-creation steps below then ran past the test's own 36 min
|
|
244
|
-
// timeout. That is the bare "Test timeout of 2160000ms exceeded" with no
|
|
245
|
-
// failing assertion and no named hop. Splitting the budget across the
|
|
246
|
-
// rounds makes `timeout * maxRetries` equal the time the flow actually
|
|
247
|
-
// has, so a lagging Optimize import fails with its own diagnostic
|
|
248
|
-
// ("process <name> in Optimize failed after ...ms of polling") instead of
|
|
249
|
-
// being killed by the harness. A healthy run is unchanged: the full
|
|
250
|
-
// 10 x 120s is still granted whenever the flow has it to give.
|
|
229
|
+
// Same path as the Conditional Events spec, which passes on the same
|
|
230
|
+
// org: open Dashboards, then filter and poll there. Checking the
|
|
231
|
+
// Optimize root never found the process on this PR's runs. One round
|
|
232
|
+
// of processLinkAssertion takes about 2 min and up to about 3.5 min,
|
|
233
|
+
// so the rounds are derived from the time the flow has left.
|
|
251
234
|
const optimizeBudget = flowBudget(10 * constants_1.TIMEOUT.optimizeImport);
|
|
252
|
-
const optimizeRounds = Math.max(2, Math.floor(optimizeBudget /
|
|
253
|
-
await optimizeHomePage.
|
|
235
|
+
const optimizeRounds = Math.max(2, Math.floor(optimizeBudget / 210000));
|
|
236
|
+
await optimizeHomePage.clickDashboardLink();
|
|
237
|
+
await new OptimizeDashboardPage_1.OptimizeDashboardPage(appTab).processLinkAssertion(processName, optimizeRounds);
|
|
254
238
|
await optimizeHomePage.clickCollectionsLink();
|
|
255
239
|
await optimizeCollectionsPage.clickCreateNewButtonWithRetry();
|
|
256
240
|
await optimizeCollectionsPage.clickReportOption();
|
|
@@ -160,11 +160,64 @@ _8_10_1.test.describe('Cluster Setup Tests', () => {
|
|
|
160
160
|
// recover from an unrelated slow-page timeout (also run 34103380836,
|
|
161
161
|
// User 18 again). The 60s cap keeps most of the wider spread while
|
|
162
162
|
// bounding worst-case pre-login wait to 1/12 of the test budget.
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
163
|
+
// The RBA specs hand off to these developer-role users, who cannot assign an
|
|
164
|
+
// environment to a workspace (camunda-hub#28955). Their workspaces must exist
|
|
165
|
+
// before the RBA beforeEach links its cluster to them as the admin main user.
|
|
166
|
+
const rbaHandoffUsers = process.env.IS_AG === 'true' && process.env.RUN_FULL_SUITE !== 'true'
|
|
167
|
+
? []
|
|
168
|
+
: ['4', '5', '6']
|
|
169
|
+
.map((n) => ({
|
|
170
|
+
username: process.env[`C8_USERNAME_TEST_${n}`] ?? '',
|
|
171
|
+
password: process.env[`C8_PASSWORD_TEST_${n}`] ?? '',
|
|
172
|
+
title: `Create Project Folder for RBA hand-off user TEST_${n}`,
|
|
173
|
+
}))
|
|
174
|
+
.filter((user) => user.username !== '' && user.password !== '');
|
|
175
|
+
for (const [index, user] of [
|
|
176
|
+
...(0, users_1.getTestUsers)().map((u, i) => ({
|
|
177
|
+
...u,
|
|
178
|
+
title: `Create Project Folder for User ${i + 1}`,
|
|
179
|
+
})),
|
|
180
|
+
...rbaHandoffUsers,
|
|
181
|
+
].entries()) {
|
|
182
|
+
const isRbaHandoffUser = index >= (0, users_1.getTestUsers)().length;
|
|
183
|
+
(0, _8_10_1.test)(user.title, async ({ page, loginPage, homePage, appsPage, modelerHomePage }, testInfo) => {
|
|
184
|
+
const loggedIn = await _8_10_1.test.step('Log in', async () => {
|
|
185
|
+
// GitHub drops a create-organization job output whose value contains
|
|
186
|
+
// a masked secret, which leaves that slot's password empty. Only the
|
|
187
|
+
// specs that log in as this user need its workspace, and they fail
|
|
188
|
+
// on their own login with loginWithRetry's "no password" error.
|
|
189
|
+
if (index > 0 && user.username && !user.password) {
|
|
190
|
+
console.warn(`${user.title}: no password reached the runner`);
|
|
191
|
+
testInfo.annotations.push({
|
|
192
|
+
type: 'warning',
|
|
193
|
+
description: 'Password job output was dropped; no workspace',
|
|
194
|
+
});
|
|
195
|
+
return false;
|
|
196
|
+
}
|
|
197
|
+
try {
|
|
198
|
+
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, user, Math.min((testInfo.workerIndex + 1) * 5000, 60000));
|
|
199
|
+
return true;
|
|
200
|
+
}
|
|
201
|
+
catch (error) {
|
|
202
|
+
// Every test depends on this setup project. A hand-off slot that
|
|
203
|
+
// this org did not provision (Auth0 rejected it in a PR run) must
|
|
204
|
+
// not block the whole suite; the RBA spec that logs in as that
|
|
205
|
+
// user fails on its own login instead.
|
|
206
|
+
if (!isRbaHandoffUser ||
|
|
207
|
+
!String(error).includes('AUTH0_INVALID_CREDENTIALS')) {
|
|
208
|
+
throw error;
|
|
209
|
+
}
|
|
210
|
+
console.warn(`${user.title}: ${String(error)}`);
|
|
211
|
+
testInfo.annotations.push({
|
|
212
|
+
type: 'warning',
|
|
213
|
+
description: 'Auth0 rejected this hand-off user; no workspace',
|
|
214
|
+
});
|
|
215
|
+
return false;
|
|
216
|
+
}
|
|
167
217
|
});
|
|
218
|
+
if (!loggedIn) {
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
168
221
|
await _8_10_1.test.step('Navigate to Web Modeler', async () => {
|
|
169
222
|
// Camunda Hub replaced Console + Web Modeler on SaaS: it lands on the
|
|
170
223
|
// Modeler home directly and has no app switcher to wait for.
|
|
@@ -141,7 +141,8 @@ _8_10_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
141
141
|
await operateTabTaskDetailsPage.clickCompleteTaskButton();
|
|
142
142
|
});
|
|
143
143
|
});
|
|
144
|
-
|
|
144
|
+
// Skipped due to bug #29346: https://github.com/camunda/camunda-hub/issues/29346
|
|
145
|
+
_8_10_1.test.skip('Form.js Integration with AI generated Start form @ai-external', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, formJsPage, }) => {
|
|
145
146
|
_8_10_1.test.slow();
|
|
146
147
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
147
148
|
const processName = 'AI-generated-Start-form' + randomString;
|
package/package.json
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
source="You are a helpful, generic chat agent which can answer a wide amount of questions based on your knowledge and an optional set of available tools. If tools are provided, you should prefer them instead of guessing an answer. You can call the same tool multiple times by providing different input values. Don't guess any tools which were not explicitely configured. If no tool matches the request, try to generate an answer. If you're not able to find a good answer, return with a message stating why you're not able to. If you are prompted to interact with a person, never guess contact details, but use available user/person lookup tools instead and return with an error if you're not able to look up appropriate data. Thinking, step by step, before you execute your tools, you think using the template `<thinking><context></context><reflection></reflection></thinking>`"
|
|
44
44
|
target="data.systemPrompt.prompt" />
|
|
45
45
|
<zeebe:input
|
|
46
|
-
source="="
|
|
46
|
+
source="="Use your tools to get the current date and time, then write a single sentence in the following exact format, with Berlin, Germany as the city and country: The current date and time in Berlin, Germany, is approximately {h:mm AM/PM} on {Month day, year}. But only with the sentence/format as above, nothing else""
|
|
47
47
|
target="data.userPrompt.prompt" />
|
|
48
48
|
<zeebe:input
|
|
49
49
|
source="=if (is defined(followUpInput) or is defined(followUpDocuments)) then followUpDocuments else inputDocuments"
|