@camunda/e2e-test-suite 0.0.318 → 0.0.320
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/ClusterDetailsPage.js +3 -1
- package/dist/pages/8.7/ConsoleOrganizationPage.js +55 -32
- package/dist/pages/8.7/UtilitiesPage.d.ts +7 -2
- package/dist/pages/8.7/UtilitiesPage.js +45 -12
- package/dist/pages/SM-8.10/OperateProcessesPage.js +1 -1
- package/dist/tests/8.7/hto-user-flows.spec.js +4 -1
- package/dist/tests/8.7/rba-enabled-user-flows.spec.js +32 -18
- package/dist/tests/8.7/test-setup.spec.js +0 -6
- package/package.json +1 -1
|
@@ -151,7 +151,9 @@ class ClusterDetailsPage {
|
|
|
151
151
|
this.rbaHeading = this.page.getByRole('heading', {
|
|
152
152
|
name: 'Resource-based authorizations',
|
|
153
153
|
});
|
|
154
|
-
this.clientCredentialsLink = (clientCredentials) => page
|
|
154
|
+
this.clientCredentialsLink = (clientCredentials) => page
|
|
155
|
+
.getByRole('cell', { name: clientCredentials })
|
|
156
|
+
.getByText(clientCredentials);
|
|
155
157
|
this.clientRow = (name) => this.clientsList.filter({ hasText: name });
|
|
156
158
|
this.clientRowDeleteButton = (name) => this.clientRow(name).getByRole('button', { name: 'Delete' });
|
|
157
159
|
this.reviewUpdateButton = page.getByRole('button', { name: 'Review Update' });
|
|
@@ -249,39 +249,62 @@ class ConsoleOrganizationPage {
|
|
|
249
249
|
await this.optInButton.click({ timeout: 60000 });
|
|
250
250
|
}
|
|
251
251
|
async enableAlphaFeature(name) {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
252
|
+
const maxRetries = 3;
|
|
253
|
+
for (let retries = 0; retries < maxRetries; retries++) {
|
|
254
|
+
try {
|
|
255
|
+
await this.clickSettingsTab();
|
|
256
|
+
await this.optInToAlphaFeatures();
|
|
257
|
+
await (0, sleep_1.sleep)(30000);
|
|
258
|
+
await this.page.reload();
|
|
259
|
+
await this.clickSettingsTab();
|
|
260
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.rows.first(), {
|
|
261
|
+
visibilityTimeout: 15000,
|
|
262
|
+
totalTimeout: 90000,
|
|
263
|
+
postAction: async () => {
|
|
264
|
+
await this.page.reload();
|
|
265
|
+
},
|
|
266
|
+
});
|
|
267
|
+
const alphaFeature = this.rows.filter({ hasText: name }).first();
|
|
268
|
+
if ((await alphaFeature.count()) < 1) {
|
|
269
|
+
console.error(`No alpha feature(${name}) is found.`);
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
//Opt-in The Alpha Feature
|
|
273
|
+
const alphaFeatureOptInButton = alphaFeature.getByRole('button', {
|
|
274
|
+
name: 'Opt in to enable',
|
|
275
|
+
});
|
|
276
|
+
if (await alphaFeatureOptInButton.isVisible({ timeout: 10000 })) {
|
|
277
|
+
await alphaFeatureOptInButton.click({ timeout: 30000 });
|
|
278
|
+
await this.optInAICheckbox.scrollIntoViewIfNeeded();
|
|
279
|
+
await this.optInAICheckbox.check({ timeout: 30000 });
|
|
280
|
+
await (0, sleep_1.sleep)(3000);
|
|
281
|
+
}
|
|
282
|
+
//Enable Alpha Feature
|
|
283
|
+
const toggleText = await alphaFeature
|
|
284
|
+
.locator('[class= "cds--toggle__text"]')
|
|
285
|
+
.textContent();
|
|
286
|
+
console.info(`Previous feature(${name}) setting is ${toggleText}.`);
|
|
287
|
+
if (toggleText == 'Enabled') {
|
|
288
|
+
console.log(`Feature ${name} is already enabled.`);
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
if (toggleText == 'Disabled') {
|
|
292
|
+
await alphaFeature
|
|
293
|
+
.locator('[class= "cds--toggle__switch"]')
|
|
294
|
+
.first()
|
|
295
|
+
.click();
|
|
296
|
+
await (0, sleep_1.sleep)(10000);
|
|
297
|
+
}
|
|
298
|
+
await (0, test_1.expect)(alphaFeature.locator('[class= "cds--toggle__text"]')).toHaveText('Enabled');
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
catch (error) {
|
|
302
|
+
console.error(`Click attempt ${retries + 1} failed: ${error}`);
|
|
303
|
+
await this.page.reload();
|
|
304
|
+
await (0, sleep_1.sleep)(10000);
|
|
305
|
+
}
|
|
283
306
|
}
|
|
284
|
-
|
|
307
|
+
throw new Error(`Failed to eanble alpha feature ${name} after ${maxRetries} attempts.`);
|
|
285
308
|
}
|
|
286
309
|
async scrollToOptInCheckbox() {
|
|
287
310
|
await this.page.locator('.ps-contract-scroll').evaluate((el) => {
|
|
@@ -25,8 +25,13 @@ export declare function modelRestConnector(modelerCreatePage: ModelerCreatePage,
|
|
|
25
25
|
export declare function assertLocatorVisibleWithRetry(page: Page | OperateProcessesPage | OperateProcessInstancePage | ModelerHomePage, locator: Locator, text: string, timeout?: number, maxRetries?: number): Promise<void>;
|
|
26
26
|
export declare function assertPageTextWithRetry(page: Page, text: string, notVisible?: boolean, timeout?: number, maxRetries?: number): Promise<void>;
|
|
27
27
|
export declare function completeTaskWithRetry(taskPanelPage: TaskPanelPage, taskDetailsPage: TaskDetailsPage, taskName: string, taskPriority: string, maxRetries?: number): Promise<void>;
|
|
28
|
-
export declare function
|
|
29
|
-
|
|
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>;
|
|
33
|
+
export declare function runProcess(clusterName: string, page: Page, modelerHomePage: ModelerHomePage, modelerCreatePage: ModelerCreatePage, processName: string, processId?: string, uploadFromFile?: string): Promise<void>;
|
|
34
|
+
export declare function modelDiagramFromFile(page: Page, modelerHomePage: ModelerHomePage, modelerCreatePage: ModelerCreatePage, processName: string, fileName?: string, nrOfRenamedUserTasks?: number, taskName?: string): Promise<void>;
|
|
30
35
|
export declare function disableRBA(clusterName: string, homePage: HomePage, clusterPage: ClusterPage, clusterDetailsPage: ClusterDetailsPage, appsPage: AppsPage): Promise<void>;
|
|
31
36
|
export declare function enableRBA(clusterName: string, homePage: HomePage, clusterPage: ClusterPage, clusterDetailsPage: ClusterDetailsPage, appsPage: AppsPage): Promise<void>;
|
|
32
37
|
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.modelAndRunConnectorsTimerEventDiagram = exports.modelAndRunConnectorsDocHandlingDiagram = exports.deleteCluster = exports.deleteAllUserGroups = exports.assertTestUsesCorrectOrganization = exports.clickInvitationLinkInEmail = exports.enableRBA = exports.disableRBA = exports.
|
|
3
|
+
exports.modelAndRunConnectorsTimerEventDiagram = exports.modelAndRunConnectorsDocHandlingDiagram = exports.deleteCluster = exports.deleteAllUserGroups = exports.assertTestUsesCorrectOrganization = exports.clickInvitationLinkInEmail = exports.enableRBA = exports.disableRBA = exports.modelDiagramFromFile = exports.runProcess = exports.runMultipleProcesses = 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");
|
|
@@ -152,26 +152,59 @@ async function completeTaskWithRetry(taskPanelPage, taskDetailsPage, taskName, t
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
exports.completeTaskWithRetry = completeTaskWithRetry;
|
|
155
|
-
async function
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
155
|
+
async function runMultipleProcesses(clusterName, page, modelerHomePage, modelerCreatePage, options) {
|
|
156
|
+
const { processName = 'Camunda_User_Task', numberOfProcesses = 2, uploadFromFile = '', } = options || {};
|
|
157
|
+
for (let i = 1; i <= numberOfProcesses; i++) {
|
|
158
|
+
await runProcess(clusterName, page, modelerHomePage, modelerCreatePage, processName + i, processName + i, uploadFromFile);
|
|
159
|
+
await modelerHomePage.clickProjectBreadcrumb();
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
exports.runMultipleProcesses = runMultipleProcesses;
|
|
163
|
+
async function runProcess(clusterName, page, modelerHomePage, modelerCreatePage, processName, processId = '', uploadFromFile = '') {
|
|
164
|
+
if (uploadFromFile.length > 0) {
|
|
165
|
+
await modelDiagramFromFile(page, modelerHomePage, modelerCreatePage, processName, uploadFromFile);
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
await modelerHomePage.clickDiagramTypeDropdown();
|
|
169
|
+
await modelerHomePage.clickBpmnTemplateOption();
|
|
170
|
+
await modelerCreatePage.modelCamundaUserTaskDiagram(processName, processId);
|
|
171
|
+
}
|
|
159
172
|
await modelerCreatePage.runProcessInstance(clusterName);
|
|
160
173
|
await (0, test_1.expect)(modelerCreatePage.viewProcessInstanceLink).toBeVisible({
|
|
161
|
-
timeout:
|
|
174
|
+
timeout: 60000,
|
|
162
175
|
});
|
|
163
176
|
await (0, test_1.expect)(modelerCreatePage.viewProcessInstanceLink).toBeHidden({
|
|
164
|
-
timeout:
|
|
177
|
+
timeout: 60000,
|
|
165
178
|
});
|
|
166
|
-
await modelerHomePage.clickProjectBreadcrumb();
|
|
167
179
|
}
|
|
168
180
|
exports.runProcess = runProcess;
|
|
169
|
-
async function
|
|
170
|
-
|
|
171
|
-
|
|
181
|
+
async function modelDiagramFromFile(page, modelerHomePage, modelerCreatePage, processName, fileName = '', nrOfRenamedUserTasks = 0, taskName = '') {
|
|
182
|
+
await modelerHomePage.clickDiagramTypeDropdown();
|
|
183
|
+
await modelerHomePage.clickUploadFilesButton();
|
|
184
|
+
await (0, fileUpload_1.uploadFile)(page, fileName + '.bpmn');
|
|
185
|
+
await modelerHomePage.clickProcessDiagram(fileName);
|
|
186
|
+
await modelerCreatePage.clickDiagramBreadcrumb();
|
|
187
|
+
await modelerCreatePage.clickEditDiagramNameButton();
|
|
188
|
+
await modelerCreatePage.enterDiagramName(processName);
|
|
189
|
+
await (0, sleep_1.sleep)(1000);
|
|
190
|
+
await modelerCreatePage.clickGeneralPropertiesPanel();
|
|
191
|
+
await modelerCreatePage.clickNameInput();
|
|
192
|
+
await modelerCreatePage.fillNamedInput(processName);
|
|
193
|
+
await modelerCreatePage.clickIdInput();
|
|
194
|
+
await modelerCreatePage.fillIdInput(processName);
|
|
195
|
+
if (nrOfRenamedUserTasks > 0) {
|
|
196
|
+
for (let i = 1; i <= nrOfRenamedUserTasks; i++) {
|
|
197
|
+
await modelerCreatePage.clickUserTask('process' + i);
|
|
198
|
+
await modelerCreatePage.clickNameInput();
|
|
199
|
+
await modelerCreatePage.fillNamedInput(taskName + i);
|
|
200
|
+
await modelerCreatePage.clickIdInput();
|
|
201
|
+
await modelerCreatePage.fillIdInput(taskName + i);
|
|
202
|
+
await modelerCreatePage.clickCanvas();
|
|
203
|
+
}
|
|
172
204
|
}
|
|
205
|
+
await (0, sleep_1.sleep)(10000);
|
|
173
206
|
}
|
|
174
|
-
exports.
|
|
207
|
+
exports.modelDiagramFromFile = modelDiagramFromFile;
|
|
175
208
|
async function disableRBA(clusterName, homePage, clusterPage, clusterDetailsPage, appsPage) {
|
|
176
209
|
await appsPage.clickCamundaApps();
|
|
177
210
|
await appsPage.clickConsoleLink();
|
|
@@ -190,7 +190,7 @@ class OperateProcessesPage {
|
|
|
190
190
|
catch (error) {
|
|
191
191
|
retryCount++;
|
|
192
192
|
console.log(`Attempt ${retryCount} failed. Retrying...`);
|
|
193
|
-
await this.page.reload();
|
|
193
|
+
await this.page.reload({ waitUntil: 'domcontentloaded' });
|
|
194
194
|
await this.page.waitForTimeout(10000);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
@@ -163,7 +163,10 @@ _8_7_1.test.describe('HTO User Flow Tests', () => {
|
|
|
163
163
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
164
164
|
});
|
|
165
165
|
await _8_7_1.test.step('Create Two BPMN Diagrams with User Task and Start Process Instance', async () => {
|
|
166
|
-
await (0, UtilitiesPage_1.runMultipleProcesses)(clusterName, page, modelerHomePage, modelerCreatePage,
|
|
166
|
+
await (0, UtilitiesPage_1.runMultipleProcesses)(clusterName, page, modelerHomePage, modelerCreatePage, {
|
|
167
|
+
processName: processName,
|
|
168
|
+
numberOfProcesses: 2,
|
|
169
|
+
});
|
|
167
170
|
});
|
|
168
171
|
await _8_7_1.test.step('Navigate to Tasklist and Make Sure that the Two Deployed Processes Are Accessible', async () => {
|
|
169
172
|
await appsPage.clickCamundaApps();
|
|
@@ -32,8 +32,11 @@ _8_7_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
32
32
|
_8_7_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_7_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_7_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
48
51
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
49
52
|
});
|
|
50
53
|
await _8_7_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_7_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_7_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_7_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_7_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_7_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
101
107
|
_8_7_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_7_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_7_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
118
125
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
119
126
|
});
|
|
120
127
|
await _8_7_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_7_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_7_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
203
213
|
_8_7_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_7_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_7_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
222
233
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
223
234
|
});
|
|
224
235
|
await _8_7_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_7_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_7_1 = require("../../fixtures/8.7");
|
|
5
5
|
const _setup_1 = require("../../test-setup.js");
|
|
6
|
-
const sleep_1 = require("../../utils/sleep");
|
|
7
6
|
const UtilitiesPage_1 = require("../../pages/8.7/UtilitiesPage");
|
|
8
7
|
const users_1 = require("../../utils/users");
|
|
9
8
|
_8_7_1.test.describe.configure({ mode: 'parallel' });
|
|
@@ -20,11 +19,6 @@ _8_7_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_7_1.test)('Create Default Cluster', async ({ page, loginPage, homePage, clusterPage, clusterDetailsPage, }, testInfo) => {
|