@camunda/e2e-test-suite 0.0.320 → 0.0.322
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.6/ClusterDetailsPage.js +3 -1
- package/dist/pages/8.6/ConsoleOrganizationPage.js +55 -32
- package/dist/pages/8.6/ModelerCreatePage.d.ts +1 -0
- package/dist/pages/8.6/ModelerCreatePage.js +3 -0
- package/dist/pages/8.6/UtilitiesPage.d.ts +7 -2
- package/dist/pages/8.6/UtilitiesPage.js +44 -9
- package/dist/tests/8.6/hto-user-flows.spec.js +4 -1
- package/dist/tests/8.6/rba-enabled-user-flows.spec.js +32 -18
- package/dist/tests/8.6/test-setup.spec.js +0 -6
- package/package.json +1 -1
|
@@ -128,7 +128,9 @@ class ClusterDetailsPage {
|
|
|
128
128
|
name: 'Resource-based authorizations',
|
|
129
129
|
});
|
|
130
130
|
this.clientsList = page.getByRole('row').filter({ hasNotText: 'Scopes' });
|
|
131
|
-
this.clientCredentialsLink = (clientCredentials) => page
|
|
131
|
+
this.clientCredentialsLink = (clientCredentials) => page
|
|
132
|
+
.getByRole('cell', { name: clientCredentials })
|
|
133
|
+
.getByText(clientCredentials);
|
|
132
134
|
this.clientRow = (name) => this.clientsList.filter({ hasText: name });
|
|
133
135
|
this.clientRowDeleteButton = (name) => this.clientRow(name).getByRole('button', { name: 'Delete' });
|
|
134
136
|
this.reviewUpdateButton = page.getByRole('button', { name: 'Review Update' });
|
|
@@ -310,39 +310,62 @@ class ConsoleOrganizationPage {
|
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
async enableAlphaFeature(name) {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
313
|
+
const maxRetries = 3;
|
|
314
|
+
for (let retries = 0; retries < maxRetries; retries++) {
|
|
315
|
+
try {
|
|
316
|
+
await this.clickSettingsTab();
|
|
317
|
+
await this.optInToAlphaFeatures();
|
|
318
|
+
await (0, sleep_1.sleep)(30000);
|
|
319
|
+
await this.page.reload();
|
|
320
|
+
await this.clickSettingsTab();
|
|
321
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.rows.first(), {
|
|
322
|
+
visibilityTimeout: 15000,
|
|
323
|
+
totalTimeout: 90000,
|
|
324
|
+
postAction: async () => {
|
|
325
|
+
await this.page.reload();
|
|
326
|
+
},
|
|
327
|
+
});
|
|
328
|
+
const alphaFeature = this.rows.filter({ hasText: name }).first();
|
|
329
|
+
if ((await alphaFeature.count()) < 1) {
|
|
330
|
+
console.error(`No alpha feature(${name}) is found.`);
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
//Opt-in The Alpha Feature
|
|
334
|
+
const alphaFeatureOptInButton = alphaFeature.getByRole('button', {
|
|
335
|
+
name: 'Opt in to enable',
|
|
336
|
+
});
|
|
337
|
+
if (await alphaFeatureOptInButton.isVisible({ timeout: 10000 })) {
|
|
338
|
+
await alphaFeatureOptInButton.click({ timeout: 30000 });
|
|
339
|
+
await this.optInAICheckbox.scrollIntoViewIfNeeded();
|
|
340
|
+
await this.optInAICheckbox.check({ timeout: 30000 });
|
|
341
|
+
await (0, sleep_1.sleep)(3000);
|
|
342
|
+
}
|
|
343
|
+
//Enable Alpha Feature
|
|
344
|
+
const toggleText = await alphaFeature
|
|
345
|
+
.locator('[class= "cds--toggle__text"]')
|
|
346
|
+
.textContent();
|
|
347
|
+
console.info(`Previous feature(${name}) setting is ${toggleText}.`);
|
|
348
|
+
if (toggleText == 'Enabled') {
|
|
349
|
+
console.log(`Feature ${name} is already enabled.`);
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
if (toggleText == 'Disabled') {
|
|
353
|
+
await alphaFeature
|
|
354
|
+
.locator('[class= "cds--toggle__switch"]')
|
|
355
|
+
.first()
|
|
356
|
+
.click();
|
|
357
|
+
await (0, sleep_1.sleep)(10000);
|
|
358
|
+
}
|
|
359
|
+
await (0, test_1.expect)(alphaFeature.locator('[class= "cds--toggle__text"]')).toHaveText('Enabled');
|
|
360
|
+
return;
|
|
361
|
+
}
|
|
362
|
+
catch (error) {
|
|
363
|
+
console.error(`Click attempt ${retries + 1} failed: ${error}`);
|
|
364
|
+
await this.page.reload();
|
|
365
|
+
await (0, sleep_1.sleep)(10000);
|
|
366
|
+
}
|
|
344
367
|
}
|
|
345
|
-
|
|
368
|
+
throw new Error(`Failed to eanble alpha feature ${name} after ${maxRetries} attempts.`);
|
|
346
369
|
}
|
|
347
370
|
async deleteAuthorisedResourcesIfExist() {
|
|
348
371
|
try {
|
|
@@ -93,6 +93,7 @@ declare class ModelerCreatePage {
|
|
|
93
93
|
readonly diagramNameBreadcrumb: (diagramName: string) => Locator;
|
|
94
94
|
readonly dialog: Locator;
|
|
95
95
|
constructor(page: Page);
|
|
96
|
+
clickEditDiagramNameButton(): Promise<void>;
|
|
96
97
|
modelJobWorkerDiagram(processName: string, embedFrom?: boolean): Promise<void>;
|
|
97
98
|
assertProcessInstanceLinkWithRetry(clusterName: string): Promise<void>;
|
|
98
99
|
modelCamundaUserTaskDiagram(processName: string, processId?: string, formName?: string): Promise<void>;
|
|
@@ -273,6 +273,9 @@ class ModelerCreatePage {
|
|
|
273
273
|
});
|
|
274
274
|
this.dialog = page.getByRole('dialog');
|
|
275
275
|
}
|
|
276
|
+
async clickEditDiagramNameButton() {
|
|
277
|
+
await this.renameDiagramNameButton.click({ timeout: 10000 });
|
|
278
|
+
}
|
|
276
279
|
async modelJobWorkerDiagram(processName, embedFrom = false) {
|
|
277
280
|
await (0, test_1.expect)(this.generalPanel).toBeVisible({
|
|
278
281
|
timeout: 120000,
|
|
@@ -23,8 +23,13 @@ export declare function modelRestConnector(modelerCreatePage: ModelerCreatePage,
|
|
|
23
23
|
export declare function assertLocatorVisibleWithRetry(page: Page | OperateProcessesPage | OperateProcessInstancePage | ModelerHomePage, locator: Locator, text: string, timeout?: number, maxRetries?: number): Promise<void>;
|
|
24
24
|
export declare function assertPageTextWithRetry(page: Page, text: string, notVisible?: boolean, timeout?: number, maxRetries?: number): Promise<void>;
|
|
25
25
|
export declare function completeTaskWithRetry(taskPanelPage: TaskPanelPage, taskDetailsPage: TaskDetailsPage, taskName: string, taskPriority: string, maxRetries?: number): Promise<void>;
|
|
26
|
-
export declare function runProcess(clusterName: string, page: Page, modelerHomePage: ModelerHomePage, modelerCreatePage: ModelerCreatePage, processName: string, processId?: string): Promise<void>;
|
|
27
|
-
export declare function
|
|
26
|
+
export declare function runProcess(clusterName: string, page: Page, modelerHomePage: ModelerHomePage, modelerCreatePage: ModelerCreatePage, processName: string, processId?: string, uploadFromFile?: string): Promise<void>;
|
|
27
|
+
export declare function modelDiagramFromFile(page: Page, modelerHomePage: ModelerHomePage, modelerCreatePage: ModelerCreatePage, processName: string, fileName?: string, nrOfRenamedUserTasks?: number, taskName?: string): Promise<void>;
|
|
28
|
+
export declare function runMultipleProcesses(clusterName: string, page: Page, modelerHomePage: ModelerHomePage, modelerCreatePage: ModelerCreatePage, options?: {
|
|
29
|
+
numberOfProcesses?: number;
|
|
30
|
+
processName?: string;
|
|
31
|
+
uploadFromFile?: string;
|
|
32
|
+
}): Promise<void>;
|
|
28
33
|
export declare function disableRBA(clusterName: string, homePage: HomePage, clusterPage: ClusterPage, clusterDetailsPage: ClusterDetailsPage, appsPage: AppsPage): Promise<void>;
|
|
29
34
|
export declare function enableRBA(clusterName: string, homePage: HomePage, clusterPage: ClusterPage, clusterDetailsPage: ClusterDetailsPage, appsPage: AppsPage): Promise<void>;
|
|
30
35
|
export declare function clickInvitationLinkInEmail(page: Page, id: string): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.modelConnectorsTimerEventDiagram = exports.deleteAllUserGroups = exports.assertTestUsesCorrectOrganization = exports.clickInvitationLinkInEmail = exports.enableRBA = exports.disableRBA = exports.runMultipleProcesses = exports.runProcess = exports.completeTaskWithRetry = exports.assertPageTextWithRetry = exports.assertLocatorVisibleWithRetry = exports.modelRestConnector = exports.loginWithRetry = void 0;
|
|
3
|
+
exports.modelConnectorsTimerEventDiagram = exports.deleteAllUserGroups = exports.assertTestUsesCorrectOrganization = exports.clickInvitationLinkInEmail = exports.enableRBA = exports.disableRBA = exports.runMultipleProcesses = exports.modelDiagramFromFile = exports.runProcess = exports.completeTaskWithRetry = exports.assertPageTextWithRetry = exports.assertLocatorVisibleWithRetry = exports.modelRestConnector = exports.loginWithRetry = void 0;
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
5
|
const ModelerHomePage_1 = require("./ModelerHomePage");
|
|
6
6
|
const HomePage_1 = require("./HomePage");
|
|
@@ -154,21 +154,56 @@ async function completeTaskWithRetry(taskPanelPage, taskDetailsPage, taskName, t
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
exports.completeTaskWithRetry = completeTaskWithRetry;
|
|
157
|
-
async function runProcess(clusterName, page, modelerHomePage, modelerCreatePage, processName, processId = '') {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
async function runProcess(clusterName, page, modelerHomePage, modelerCreatePage, processName, processId = '', uploadFromFile = '') {
|
|
158
|
+
if (uploadFromFile.length > 0) {
|
|
159
|
+
await modelDiagramFromFile(page, modelerHomePage, modelerCreatePage, processName, uploadFromFile);
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
await modelerHomePage.clickDiagramTypeDropdown();
|
|
163
|
+
await modelerHomePage.clickBpmnTemplateOption();
|
|
164
|
+
await modelerCreatePage.modelCamundaUserTaskDiagram(processName, processId);
|
|
165
|
+
}
|
|
161
166
|
await modelerCreatePage.runProcessInstance(clusterName);
|
|
162
|
-
await modelerCreatePage.
|
|
167
|
+
await (0, test_1.expect)(modelerCreatePage.viewProcessInstanceLink).toBeVisible({
|
|
168
|
+
timeout: 60000,
|
|
169
|
+
});
|
|
163
170
|
await (0, test_1.expect)(modelerCreatePage.viewProcessInstanceLink).toBeHidden({
|
|
164
171
|
timeout: 60000,
|
|
165
172
|
});
|
|
166
|
-
await modelerHomePage.clickProjectBreadcrumb();
|
|
167
173
|
}
|
|
168
174
|
exports.runProcess = runProcess;
|
|
169
|
-
async function
|
|
175
|
+
async function modelDiagramFromFile(page, modelerHomePage, modelerCreatePage, processName, fileName = '', nrOfRenamedUserTasks = 0, taskName = '') {
|
|
176
|
+
await modelerHomePage.clickDiagramTypeDropdown();
|
|
177
|
+
await modelerHomePage.clickUploadFilesButton();
|
|
178
|
+
await (0, fileUpload_1.uploadFile)(page, fileName + '.bpmn');
|
|
179
|
+
await modelerHomePage.clickProcessDiagram(fileName);
|
|
180
|
+
await modelerCreatePage.clickDiagramBreadcrumb();
|
|
181
|
+
await modelerCreatePage.clickEditDiagramNameButton();
|
|
182
|
+
await modelerCreatePage.enterDiagramName(processName);
|
|
183
|
+
await (0, sleep_1.sleep)(1000);
|
|
184
|
+
await modelerCreatePage.clickGeneralPropertiesPanel();
|
|
185
|
+
await modelerCreatePage.clickNameInput();
|
|
186
|
+
await modelerCreatePage.fillNameInput(processName);
|
|
187
|
+
await modelerCreatePage.clickIdInput();
|
|
188
|
+
await modelerCreatePage.fillIdInput(processName);
|
|
189
|
+
if (nrOfRenamedUserTasks > 0) {
|
|
190
|
+
for (let i = 1; i <= nrOfRenamedUserTasks; i++) {
|
|
191
|
+
await modelerCreatePage.clickUserTask('process' + i);
|
|
192
|
+
await modelerCreatePage.clickNameInput();
|
|
193
|
+
await modelerCreatePage.fillNameInput(taskName + i);
|
|
194
|
+
await modelerCreatePage.clickIdInput();
|
|
195
|
+
await modelerCreatePage.fillIdInput(taskName + i);
|
|
196
|
+
await modelerCreatePage.clickCanvas();
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
await (0, sleep_1.sleep)(10000);
|
|
200
|
+
}
|
|
201
|
+
exports.modelDiagramFromFile = modelDiagramFromFile;
|
|
202
|
+
async function runMultipleProcesses(clusterName, page, modelerHomePage, modelerCreatePage, options) {
|
|
203
|
+
const { processName = 'Camunda_User_Task', numberOfProcesses = 2, uploadFromFile = '', } = options || {};
|
|
170
204
|
for (let i = 1; i <= numberOfProcesses; i++) {
|
|
171
|
-
await runProcess(clusterName, page, modelerHomePage, modelerCreatePage, processName + i,
|
|
205
|
+
await runProcess(clusterName, page, modelerHomePage, modelerCreatePage, processName + i, processName + i, uploadFromFile);
|
|
206
|
+
await modelerHomePage.clickProjectBreadcrumb();
|
|
172
207
|
}
|
|
173
208
|
}
|
|
174
209
|
exports.runMultipleProcesses = runMultipleProcesses;
|
|
@@ -159,7 +159,10 @@ _8_6_1.test.describe('HTO User Flow Tests', () => {
|
|
|
159
159
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
160
160
|
});
|
|
161
161
|
await _8_6_1.test.step('Create Two BPMN Diagrams with User Task and Start Process Instance', async () => {
|
|
162
|
-
await (0, UtilitiesPage_1.runMultipleProcesses)(clusterName, page, modelerHomePage, modelerCreatePage,
|
|
162
|
+
await (0, UtilitiesPage_1.runMultipleProcesses)(clusterName, page, modelerHomePage, modelerCreatePage, {
|
|
163
|
+
processName: processName,
|
|
164
|
+
numberOfProcesses: 2,
|
|
165
|
+
});
|
|
163
166
|
});
|
|
164
167
|
await _8_6_1.test.step('Navigate to Tasklist and Make Sure that the Two Deployed Processes Are Accessible', async () => {
|
|
165
168
|
await appsPage.clickCamundaApps();
|
|
@@ -32,8 +32,11 @@ _8_6_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
32
32
|
_8_6_1.test.slow();
|
|
33
33
|
const clusterName = clusterNames['RBA On User Flow - No User Permission'];
|
|
34
34
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
35
|
-
const
|
|
36
|
-
const
|
|
35
|
+
const processName = 'BEFORERBANOPERM' + randomString;
|
|
36
|
+
const processName1 = processName + '1';
|
|
37
|
+
const processName2 = processName + '2';
|
|
38
|
+
const processId1 = processName + '1';
|
|
39
|
+
const processId2 = processName + '2';
|
|
37
40
|
await _8_6_1.test.step('Navigate to Console and Ensure RBA is Disabled', async () => {
|
|
38
41
|
await (0, UtilitiesPage_1.disableRBA)(clusterName, homePage, clusterPage, clusterDetailsPage, appsPage);
|
|
39
42
|
});
|
|
@@ -48,7 +51,10 @@ _8_6_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
48
51
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
49
52
|
});
|
|
50
53
|
await _8_6_1.test.step('Create Two BPMN Diagrams with User Task and Start Process Instance', async () => {
|
|
51
|
-
await (0, UtilitiesPage_1.runMultipleProcesses)(clusterName, page, modelerHomePage, modelerCreatePage,
|
|
54
|
+
await (0, UtilitiesPage_1.runMultipleProcesses)(clusterName, page, modelerHomePage, modelerCreatePage, {
|
|
55
|
+
processName: processName,
|
|
56
|
+
uploadFromFile: 'Camunda_Simple_User_Task_3',
|
|
57
|
+
});
|
|
52
58
|
});
|
|
53
59
|
await _8_6_1.test.step('Navigate back to Console and Enable RBA', async () => {
|
|
54
60
|
await (0, UtilitiesPage_1.enableRBA)(clusterName, homePage, clusterPage, clusterDetailsPage, appsPage);
|
|
@@ -59,10 +65,10 @@ _8_6_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
59
65
|
await consoleOrganizationsPage.clickUsersTab();
|
|
60
66
|
await consoleOrganizationsPage.clickMainUser(mainUser.username);
|
|
61
67
|
await consoleOrganizationsPage.clickAuthorizations();
|
|
62
|
-
await (0, test_1.expect)(page.getByText(
|
|
68
|
+
await (0, test_1.expect)(page.getByText(processId1, { exact: true })).not.toBeVisible({
|
|
63
69
|
timeout: 120000,
|
|
64
70
|
});
|
|
65
|
-
await (0, test_1.expect)(page.getByText(
|
|
71
|
+
await (0, test_1.expect)(page.getByText(processId2, { exact: true })).not.toBeVisible({
|
|
66
72
|
timeout: 120000,
|
|
67
73
|
});
|
|
68
74
|
});
|
|
@@ -74,10 +80,10 @@ _8_6_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
74
80
|
});
|
|
75
81
|
await taskPanelPage.clickProcessesTab();
|
|
76
82
|
await taskProcessesPage.clickpopupContinueButton();
|
|
77
|
-
await (0, test_1.expect)(page.getByText(
|
|
83
|
+
await (0, test_1.expect)(page.getByText(processName1)).not.toBeVisible({
|
|
78
84
|
timeout: 120000,
|
|
79
85
|
});
|
|
80
|
-
await (0, test_1.expect)(page.getByText(
|
|
86
|
+
await (0, test_1.expect)(page.getByText(processName2)).not.toBeVisible({
|
|
81
87
|
timeout: 120000,
|
|
82
88
|
});
|
|
83
89
|
});
|
|
@@ -89,10 +95,10 @@ _8_6_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
89
95
|
});
|
|
90
96
|
await operateHomePage.clickProcessesTab();
|
|
91
97
|
await page.reload();
|
|
92
|
-
await (0, test_1.expect)(page.getByText(
|
|
98
|
+
await (0, test_1.expect)(page.getByText(processName1)).not.toBeVisible({
|
|
93
99
|
timeout: 120000,
|
|
94
100
|
});
|
|
95
|
-
await (0, test_1.expect)(page.getByText(
|
|
101
|
+
await (0, test_1.expect)(page.getByText(processName2)).not.toBeVisible({
|
|
96
102
|
timeout: 120000,
|
|
97
103
|
});
|
|
98
104
|
});
|
|
@@ -101,9 +107,10 @@ _8_6_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
101
107
|
_8_6_1.test.slow();
|
|
102
108
|
const clusterName = clusterNames['RBA On User Flow - Permission for One Process'];
|
|
103
109
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
104
|
-
const
|
|
105
|
-
const
|
|
106
|
-
const
|
|
110
|
+
const processName = 'BEFORERBA' + randomString;
|
|
111
|
+
const processName1 = processName + '1';
|
|
112
|
+
const processName2 = processName + '2';
|
|
113
|
+
const processId1 = processName + '1';
|
|
107
114
|
await _8_6_1.test.step('Navigate to Console and Ensure RBA is Disabled', async () => {
|
|
108
115
|
await (0, UtilitiesPage_1.disableRBA)(clusterName, homePage, clusterPage, clusterDetailsPage, appsPage);
|
|
109
116
|
});
|
|
@@ -118,7 +125,10 @@ _8_6_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
118
125
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
119
126
|
});
|
|
120
127
|
await _8_6_1.test.step('Create Two BPMN Diagrams with User Task and Start Process Instance', async () => {
|
|
121
|
-
await (0, UtilitiesPage_1.runMultipleProcesses)(clusterName, page, modelerHomePage, modelerCreatePage,
|
|
128
|
+
await (0, UtilitiesPage_1.runMultipleProcesses)(clusterName, page, modelerHomePage, modelerCreatePage, {
|
|
129
|
+
processName: processName,
|
|
130
|
+
uploadFromFile: 'Camunda_Simple_User_Task_2',
|
|
131
|
+
});
|
|
122
132
|
});
|
|
123
133
|
await _8_6_1.test.step('Navigate back to Console and Enable RBA', async () => {
|
|
124
134
|
await (0, UtilitiesPage_1.enableRBA)(clusterName, homePage, clusterPage, clusterDetailsPage, appsPage);
|
|
@@ -203,10 +213,11 @@ _8_6_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
203
213
|
_8_6_1.test.slow();
|
|
204
214
|
const clusterName = clusterNames['RBA On User Flow - Permission for All Processes'];
|
|
205
215
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
206
|
-
const
|
|
207
|
-
const
|
|
208
|
-
const
|
|
209
|
-
const
|
|
216
|
+
const processName = 'AFTER_RBA' + randomString;
|
|
217
|
+
const processName1 = processName + '1';
|
|
218
|
+
const processName2 = processName + '2';
|
|
219
|
+
const processId1 = processName + '1';
|
|
220
|
+
const processId2 = processName + '2';
|
|
210
221
|
await _8_6_1.test.step('Navigate to Console and Enable RBA', async () => {
|
|
211
222
|
await (0, UtilitiesPage_1.enableRBA)(clusterName, homePage, clusterPage, clusterDetailsPage, appsPage);
|
|
212
223
|
await (0, sleep_1.sleep)(90000);
|
|
@@ -222,7 +233,10 @@ _8_6_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
222
233
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
223
234
|
});
|
|
224
235
|
await _8_6_1.test.step('Create Two BPMN Diagrams with User Task and Start Process Instance', async () => {
|
|
225
|
-
await (0, UtilitiesPage_1.runMultipleProcesses)(clusterName, page, modelerHomePage, modelerCreatePage,
|
|
236
|
+
await (0, UtilitiesPage_1.runMultipleProcesses)(clusterName, page, modelerHomePage, modelerCreatePage, {
|
|
237
|
+
processName: processName,
|
|
238
|
+
uploadFromFile: 'Camunda_Simple_User_Task_1',
|
|
239
|
+
});
|
|
226
240
|
});
|
|
227
241
|
await _8_6_1.test.step('Navigate to Users and Assert Authorized Resources Are Created For Both Processes', async () => {
|
|
228
242
|
await appsPage.clickCamundaApps();
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const test_1 = require("@playwright/test");
|
|
4
4
|
const _8_6_1 = require("../../fixtures/8.6");
|
|
5
5
|
const _setup_1 = require("../../test-setup.js");
|
|
6
|
-
const sleep_1 = require("../../utils/sleep");
|
|
7
6
|
const users_1 = require("../../utils/users");
|
|
8
7
|
const UtilitiesPage_1 = require("../../pages/8.6/UtilitiesPage");
|
|
9
8
|
_8_6_1.test.describe.configure({ mode: 'parallel' });
|
|
@@ -20,11 +19,6 @@ _8_6_1.test.describe('Cluster Setup Tests', () => {
|
|
|
20
19
|
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, users_1.testUsers.mainUser, (testInfo.workerIndex + 1) * 1000);
|
|
21
20
|
await homePage.clickOrganization();
|
|
22
21
|
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, consoleOrganizationsPage.settingsTab, 'settings tab', 60000, 2);
|
|
23
|
-
await consoleOrganizationsPage.clickSettingsTab();
|
|
24
|
-
await consoleOrganizationsPage.optInToAlphaFeatures();
|
|
25
|
-
await (0, sleep_1.sleep)(30000);
|
|
26
|
-
await page.reload();
|
|
27
|
-
await consoleOrganizationsPage.clickSettingsTab();
|
|
28
22
|
await consoleOrganizationsPage.enableAlphaFeature('AI-powered features');
|
|
29
23
|
});
|
|
30
24
|
(0, _8_6_1.test)('Create Default Cluster', async ({ page, loginPage, homePage, clusterPage, clusterDetailsPage, }, testInfo) => {
|