@camunda/e2e-test-suite 0.0.1792 → 0.0.1794
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/SM-8.10/OptimizeDashboardPage.js +2 -0
- package/dist/pages/SM-8.11/OptimizeDashboardPage.js +2 -0
- package/dist/pages/SM-8.9/OptimizeDashboardPage.js +2 -0
- package/dist/tests/SM-8.10/optimize-user-flows.spec.js +77 -54
- package/dist/tests/SM-8.11/optimize-user-flows.spec.js +81 -56
- package/dist/tests/SM-8.9/optimize-user-flows.spec.js +73 -50
- package/package.json +1 -1
|
@@ -55,7 +55,9 @@ class OptimizeDashboardPage {
|
|
|
55
55
|
if (Date.now() - start + interval >= timeout) {
|
|
56
56
|
throw e;
|
|
57
57
|
}
|
|
58
|
+
// Reload clears the name filter, and the unfiltered list is paginated.
|
|
58
59
|
await this.page.reload();
|
|
60
|
+
await this.fillFilterTable(processName);
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
63
|
}
|
|
@@ -55,7 +55,9 @@ class OptimizeDashboardPage {
|
|
|
55
55
|
if (Date.now() - start + interval >= timeout) {
|
|
56
56
|
throw e;
|
|
57
57
|
}
|
|
58
|
+
// Reload clears the name filter, and the unfiltered list is paginated.
|
|
58
59
|
await this.page.reload();
|
|
60
|
+
await this.fillFilterTable(processName);
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
63
|
}
|
|
@@ -48,7 +48,9 @@ class OptimizeDashboardPage {
|
|
|
48
48
|
if (Date.now() - start + interval >= timeout) {
|
|
49
49
|
throw e;
|
|
50
50
|
}
|
|
51
|
+
// Reload clears the name filter, and the unfiltered list is paginated.
|
|
51
52
|
await this.page.reload();
|
|
53
|
+
await this.fillFilterTable(processName);
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
56
|
}
|
|
@@ -1,37 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
const test_1 = require("@playwright/test");
|
|
27
4
|
const SM_8_10_1 = require("../../fixtures/SM-8.10");
|
|
28
5
|
const _setup_1 = require("../../test-setup.js");
|
|
29
6
|
const sleep_1 = require("../../utils/sleep");
|
|
7
|
+
const fileUpload_1 = require("../../utils/fileUpload");
|
|
30
8
|
const UtilitiesPage_1 = require("../../pages/SM-8.10/UtilitiesPage");
|
|
31
9
|
const UtilitiesPage_2 = require("../../pages/SM-8.10/UtilitiesPage");
|
|
32
10
|
if (process.env.IS_OPTIMIZE !== 'false') {
|
|
33
11
|
SM_8_10_1.test.describe.configure({ mode: 'parallel' });
|
|
34
|
-
SM_8_10_1.test.describe('Optimize User Flow Tests
|
|
12
|
+
SM_8_10_1.test.describe('Optimize User Flow Tests', () => {
|
|
35
13
|
SM_8_10_1.test.beforeEach(async ({ navigationPage }, testInfo) => {
|
|
36
14
|
await navigationPage.goToModeler((testInfo.workerIndex + 1) * 1000);
|
|
37
15
|
});
|
|
@@ -41,7 +19,7 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
41
19
|
});
|
|
42
20
|
(0, SM_8_10_1.test)('Process Import Flow', async ({ page, operateHomePage, modelerHomePage, navigationPage, modelerCreatePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeDashboardPage, }) => {
|
|
43
21
|
SM_8_10_1.test.slow();
|
|
44
|
-
const processName = '
|
|
22
|
+
const processName = 'Optimize_Camunda_User_Task_Flow' +
|
|
45
23
|
(await (0, _setup_1.generateRandomStringAsync)(3));
|
|
46
24
|
await SM_8_10_1.test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
|
|
47
25
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
@@ -49,7 +27,7 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
49
27
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
50
28
|
});
|
|
51
29
|
await SM_8_10_1.test.step('Create BPMN Diagram with User Task and Start Process Instance', async () => {
|
|
52
|
-
await modelerCreatePage.
|
|
30
|
+
await modelerCreatePage.modelCamundaUserTaskDiagram(processName, processName);
|
|
53
31
|
await modelerCreatePage.runProcessInstance();
|
|
54
32
|
await (0, sleep_1.sleep)(10000);
|
|
55
33
|
});
|
|
@@ -67,17 +45,17 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
67
45
|
await optimizeDashboardPage.processAssertion(processName);
|
|
68
46
|
});
|
|
69
47
|
});
|
|
70
|
-
(0, SM_8_10_1.test)('
|
|
48
|
+
(0, SM_8_10_1.test)('Camunda User Task User Flow', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
71
49
|
SM_8_10_1.test.slow();
|
|
72
50
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
73
|
-
const processName = '
|
|
51
|
+
const processName = 'Optimize_Camunda_User_Task_Diagram' + reportName;
|
|
74
52
|
await SM_8_10_1.test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
|
|
75
53
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
76
54
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
77
55
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
78
56
|
});
|
|
79
57
|
await SM_8_10_1.test.step('Create BPMN Diagram with User Task and Start Process Instance', async () => {
|
|
80
|
-
await modelerCreatePage.
|
|
58
|
+
await modelerCreatePage.modelCamundaUserTaskDiagram(processName, processName);
|
|
81
59
|
await modelerCreatePage.runProcessInstance();
|
|
82
60
|
await (0, sleep_1.sleep)(10000);
|
|
83
61
|
});
|
|
@@ -140,7 +118,7 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
140
118
|
(0, SM_8_10_1.test)('New Instances Updated Flow', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
141
119
|
SM_8_10_1.test.slow();
|
|
142
120
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
143
|
-
const processName = '
|
|
121
|
+
const processName = 'Optimize_Camunda_User_Task_Flow_Updated' +
|
|
144
122
|
(await (0, _setup_1.generateRandomStringAsync)(3));
|
|
145
123
|
await SM_8_10_1.test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
|
|
146
124
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
@@ -148,7 +126,7 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
148
126
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
149
127
|
});
|
|
150
128
|
await SM_8_10_1.test.step('Create BPMN Diagram with User Task and Start Process Instance', async () => {
|
|
151
|
-
await modelerCreatePage.
|
|
129
|
+
await modelerCreatePage.modelCamundaUserTaskDiagram(processName, processName);
|
|
152
130
|
await modelerCreatePage.deployProcessInstance();
|
|
153
131
|
await (0, sleep_1.sleep)(10000);
|
|
154
132
|
});
|
|
@@ -205,14 +183,21 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
205
183
|
});
|
|
206
184
|
(0, SM_8_10_1.test)('Conditional Events - Process Import Flow @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeDashboardPage, }) => {
|
|
207
185
|
SM_8_10_1.test.slow();
|
|
208
|
-
const
|
|
209
|
-
const
|
|
186
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
187
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
188
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
189
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
190
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
191
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
192
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
210
193
|
await SM_8_10_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
|
|
211
194
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
212
195
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
213
196
|
await modelerHomePage.clickUploadFilesButton();
|
|
214
|
-
|
|
215
|
-
|
|
197
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
198
|
+
name: bpmnFileName,
|
|
199
|
+
buffer: Buffer.from(bpmnContent),
|
|
200
|
+
});
|
|
216
201
|
await (0, sleep_1.sleep)(5000);
|
|
217
202
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
218
203
|
});
|
|
@@ -242,20 +227,29 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
242
227
|
await optimizeDashboardPage.fillFilterTable(processName);
|
|
243
228
|
await optimizeDashboardPage.processAssertion(processName);
|
|
244
229
|
await page.getByTitle(processName).first().click({ timeout: 60000 });
|
|
245
|
-
await (0, test_1.expect)(page
|
|
230
|
+
await (0, test_1.expect)(page
|
|
231
|
+
.getByRole('link', { name: 'Camunda logo Optimize' })
|
|
232
|
+
.or(page.getByRole('link', { name: 'Camunda Optimize' }))).toBeVisible({ timeout: 60000 });
|
|
246
233
|
});
|
|
247
234
|
});
|
|
248
|
-
(0, SM_8_10_1.test)('Conditional Events - Create and Verify User Task Report @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
235
|
+
(0, SM_8_10_1.test)('Conditional Events - Create and Verify User Task Report @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, optimizeDashboardPage, }) => {
|
|
249
236
|
SM_8_10_1.test.slow();
|
|
250
|
-
const
|
|
251
|
-
const
|
|
237
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
238
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
239
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
240
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
241
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
242
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
243
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
252
244
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
253
245
|
await SM_8_10_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
|
|
254
246
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
255
247
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
256
248
|
await modelerHomePage.clickUploadFilesButton();
|
|
257
|
-
|
|
258
|
-
|
|
249
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
250
|
+
name: bpmnFileName,
|
|
251
|
+
buffer: Buffer.from(bpmnContent),
|
|
252
|
+
});
|
|
259
253
|
await (0, sleep_1.sleep)(5000);
|
|
260
254
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
261
255
|
});
|
|
@@ -273,6 +267,10 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
273
267
|
await navigationPage.goToOptimize();
|
|
274
268
|
await (0, sleep_1.sleep)(10000);
|
|
275
269
|
await page.reload();
|
|
270
|
+
await optimizeHomePage.clickDashboardLink();
|
|
271
|
+
await optimizeDashboardPage.clickFilterTable();
|
|
272
|
+
await optimizeDashboardPage.fillFilterTable(processName);
|
|
273
|
+
await optimizeDashboardPage.processAssertion(processName);
|
|
276
274
|
await optimizeHomePage.clickCollectionsLink();
|
|
277
275
|
await optimizeCollectionsPage.clickCreateNewButton();
|
|
278
276
|
await optimizeCollectionsPage.clickReportOption();
|
|
@@ -307,17 +305,24 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
307
305
|
await (0, test_1.expect)(optimizeReportPage.twoUserTaskInstance).not.toBeVisible();
|
|
308
306
|
});
|
|
309
307
|
});
|
|
310
|
-
(0, SM_8_10_1.test)('Conditional Events - Report Updates After Second Process Run @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
308
|
+
(0, SM_8_10_1.test)('Conditional Events - Report Updates After Second Process Run @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, optimizeDashboardPage, }) => {
|
|
311
309
|
SM_8_10_1.test.slow();
|
|
312
|
-
const
|
|
313
|
-
const
|
|
310
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
311
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
312
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
313
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
314
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
315
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
316
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
314
317
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
315
318
|
await SM_8_10_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
|
|
316
319
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
317
320
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
318
321
|
await modelerHomePage.clickUploadFilesButton();
|
|
319
|
-
|
|
320
|
-
|
|
322
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
323
|
+
name: bpmnFileName,
|
|
324
|
+
buffer: Buffer.from(bpmnContent),
|
|
325
|
+
});
|
|
321
326
|
await (0, sleep_1.sleep)(5000);
|
|
322
327
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
323
328
|
});
|
|
@@ -335,6 +340,10 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
335
340
|
await navigationPage.goToOptimize();
|
|
336
341
|
await (0, sleep_1.sleep)(10000);
|
|
337
342
|
await page.reload();
|
|
343
|
+
await optimizeHomePage.clickDashboardLink();
|
|
344
|
+
await optimizeDashboardPage.clickFilterTable();
|
|
345
|
+
await optimizeDashboardPage.fillFilterTable(processName);
|
|
346
|
+
await optimizeDashboardPage.processAssertion(processName);
|
|
338
347
|
await optimizeHomePage.clickCollectionsLink();
|
|
339
348
|
await optimizeCollectionsPage.clickCreateNewButton();
|
|
340
349
|
await optimizeCollectionsPage.clickReportOption();
|
|
@@ -391,15 +400,22 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
391
400
|
});
|
|
392
401
|
(0, SM_8_10_1.test)('Conditional Events - Report Starts at Zero and Updates After First Run @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
393
402
|
SM_8_10_1.test.slow();
|
|
394
|
-
const
|
|
395
|
-
const
|
|
403
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
404
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
405
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
406
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
407
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
408
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
409
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
396
410
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
397
411
|
await SM_8_10_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
|
|
398
412
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
399
413
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
400
414
|
await modelerHomePage.clickUploadFilesButton();
|
|
401
|
-
|
|
402
|
-
|
|
415
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
416
|
+
name: bpmnFileName,
|
|
417
|
+
buffer: Buffer.from(bpmnContent),
|
|
418
|
+
});
|
|
403
419
|
await (0, sleep_1.sleep)(5000);
|
|
404
420
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
405
421
|
});
|
|
@@ -463,8 +479,13 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
463
479
|
});
|
|
464
480
|
(0, SM_8_10_1.test)('Conditional Events - Instance Gated By Unmet Condition (CE-OPT-06) @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeDashboardPage, }) => {
|
|
465
481
|
SM_8_10_1.test.slow();
|
|
466
|
-
const
|
|
467
|
-
const
|
|
482
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
483
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
484
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
485
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
486
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
487
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
488
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
468
489
|
// myVar = 3 does NOT satisfy the intermediate conditional catch event
|
|
469
490
|
// (condition: myVar > 5), so the token is gated at the catch event and no
|
|
470
491
|
// user task is ever activated. The instance stays active/running and
|
|
@@ -475,8 +496,10 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
475
496
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
476
497
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
477
498
|
await modelerHomePage.clickUploadFilesButton();
|
|
478
|
-
|
|
479
|
-
|
|
499
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
500
|
+
name: bpmnFileName,
|
|
501
|
+
buffer: Buffer.from(bpmnContent),
|
|
502
|
+
});
|
|
480
503
|
await (0, sleep_1.sleep)(5000);
|
|
481
504
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
482
505
|
});
|
|
@@ -1,37 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
const test_1 = require("@playwright/test");
|
|
27
4
|
const SM_8_11_1 = require("../../fixtures/SM-8.11");
|
|
28
5
|
const _setup_1 = require("../../test-setup.js");
|
|
29
6
|
const sleep_1 = require("../../utils/sleep");
|
|
7
|
+
const fileUpload_1 = require("../../utils/fileUpload");
|
|
30
8
|
const UtilitiesPage_1 = require("../../pages/SM-8.11/UtilitiesPage");
|
|
31
9
|
const UtilitiesPage_2 = require("../../pages/SM-8.11/UtilitiesPage");
|
|
32
10
|
if (process.env.IS_OPTIMIZE !== 'false') {
|
|
33
11
|
SM_8_11_1.test.describe.configure({ mode: 'parallel' });
|
|
34
|
-
SM_8_11_1.test.describe('Optimize User Flow Tests
|
|
12
|
+
SM_8_11_1.test.describe('Optimize User Flow Tests', () => {
|
|
35
13
|
SM_8_11_1.test.beforeEach(async ({ navigationPage }, testInfo) => {
|
|
36
14
|
await navigationPage.goToModeler((testInfo.workerIndex + 1) * 1000);
|
|
37
15
|
});
|
|
@@ -41,7 +19,7 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
41
19
|
});
|
|
42
20
|
(0, SM_8_11_1.test)('Process Import Flow', async ({ page, operateHomePage, modelerHomePage, navigationPage, modelerCreatePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeDashboardPage, }) => {
|
|
43
21
|
SM_8_11_1.test.slow();
|
|
44
|
-
const processName = '
|
|
22
|
+
const processName = 'Optimize_Camunda_User_Task_Flow' +
|
|
45
23
|
(await (0, _setup_1.generateRandomStringAsync)(3));
|
|
46
24
|
await SM_8_11_1.test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
|
|
47
25
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
@@ -49,7 +27,7 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
49
27
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
50
28
|
});
|
|
51
29
|
await SM_8_11_1.test.step('Create BPMN Diagram with User Task and Start Process Instance', async () => {
|
|
52
|
-
await modelerCreatePage.
|
|
30
|
+
await modelerCreatePage.modelCamundaUserTaskDiagram(processName, processName);
|
|
53
31
|
await modelerCreatePage.runProcessInstance();
|
|
54
32
|
await (0, sleep_1.sleep)(10000);
|
|
55
33
|
});
|
|
@@ -67,17 +45,17 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
67
45
|
await optimizeDashboardPage.processAssertion(processName);
|
|
68
46
|
});
|
|
69
47
|
});
|
|
70
|
-
(0, SM_8_11_1.test)('
|
|
48
|
+
(0, SM_8_11_1.test)('Camunda User Task User Flow', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
71
49
|
SM_8_11_1.test.slow();
|
|
72
50
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
73
|
-
const processName = '
|
|
51
|
+
const processName = 'Optimize_Camunda_User_Task_Diagram' + reportName;
|
|
74
52
|
await SM_8_11_1.test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
|
|
75
53
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
76
54
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
77
55
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
78
56
|
});
|
|
79
57
|
await SM_8_11_1.test.step('Create BPMN Diagram with User Task and Start Process Instance', async () => {
|
|
80
|
-
await modelerCreatePage.
|
|
58
|
+
await modelerCreatePage.modelCamundaUserTaskDiagram(processName, processName);
|
|
81
59
|
await modelerCreatePage.runProcessInstance();
|
|
82
60
|
await (0, sleep_1.sleep)(10000);
|
|
83
61
|
});
|
|
@@ -137,10 +115,11 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
137
115
|
await (0, test_1.expect)(optimizeReportPage.oneUserTaskInstance).not.toBeVisible();
|
|
138
116
|
});
|
|
139
117
|
});
|
|
140
|
-
|
|
118
|
+
// Skipped due to bug #70869: https://github.com/camunda/camunda/issues/70869
|
|
119
|
+
SM_8_11_1.test.skip('New Instances Updated Flow', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
141
120
|
SM_8_11_1.test.slow();
|
|
142
121
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
143
|
-
const processName = '
|
|
122
|
+
const processName = 'Optimize_Camunda_User_Task_Flow_Updated' +
|
|
144
123
|
(await (0, _setup_1.generateRandomStringAsync)(3));
|
|
145
124
|
await SM_8_11_1.test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
|
|
146
125
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
@@ -148,7 +127,7 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
148
127
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
149
128
|
});
|
|
150
129
|
await SM_8_11_1.test.step('Create BPMN Diagram with User Task and Start Process Instance', async () => {
|
|
151
|
-
await modelerCreatePage.
|
|
130
|
+
await modelerCreatePage.modelCamundaUserTaskDiagram(processName, processName);
|
|
152
131
|
await modelerCreatePage.deployProcessInstance();
|
|
153
132
|
await (0, sleep_1.sleep)(10000);
|
|
154
133
|
});
|
|
@@ -205,14 +184,21 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
205
184
|
});
|
|
206
185
|
(0, SM_8_11_1.test)('Conditional Events - Process Import Flow @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeDashboardPage, }) => {
|
|
207
186
|
SM_8_11_1.test.slow();
|
|
208
|
-
const
|
|
209
|
-
const
|
|
187
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
188
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
189
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
190
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
191
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
192
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
193
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
210
194
|
await SM_8_11_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
|
|
211
195
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
212
196
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
213
197
|
await modelerHomePage.clickUploadFilesButton();
|
|
214
|
-
|
|
215
|
-
|
|
198
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
199
|
+
name: bpmnFileName,
|
|
200
|
+
buffer: Buffer.from(bpmnContent),
|
|
201
|
+
});
|
|
216
202
|
await (0, sleep_1.sleep)(5000);
|
|
217
203
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
218
204
|
});
|
|
@@ -242,20 +228,29 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
242
228
|
await optimizeDashboardPage.fillFilterTable(processName);
|
|
243
229
|
await optimizeDashboardPage.processAssertion(processName);
|
|
244
230
|
await page.getByTitle(processName).first().click({ timeout: 60000 });
|
|
245
|
-
await (0, test_1.expect)(page
|
|
231
|
+
await (0, test_1.expect)(page
|
|
232
|
+
.getByRole('link', { name: 'Camunda logo Optimize' })
|
|
233
|
+
.or(page.getByRole('link', { name: 'Camunda Optimize' }))).toBeVisible({ timeout: 60000 });
|
|
246
234
|
});
|
|
247
235
|
});
|
|
248
|
-
(0, SM_8_11_1.test)('Conditional Events - Create and Verify User Task Report @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
236
|
+
(0, SM_8_11_1.test)('Conditional Events - Create and Verify User Task Report @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, optimizeDashboardPage, }) => {
|
|
249
237
|
SM_8_11_1.test.slow();
|
|
250
|
-
const
|
|
251
|
-
const
|
|
238
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
239
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
240
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
241
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
242
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
243
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
244
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
252
245
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
253
246
|
await SM_8_11_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
|
|
254
247
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
255
248
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
256
249
|
await modelerHomePage.clickUploadFilesButton();
|
|
257
|
-
|
|
258
|
-
|
|
250
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
251
|
+
name: bpmnFileName,
|
|
252
|
+
buffer: Buffer.from(bpmnContent),
|
|
253
|
+
});
|
|
259
254
|
await (0, sleep_1.sleep)(5000);
|
|
260
255
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
261
256
|
});
|
|
@@ -273,6 +268,10 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
273
268
|
await navigationPage.goToOptimize();
|
|
274
269
|
await (0, sleep_1.sleep)(10000);
|
|
275
270
|
await page.reload();
|
|
271
|
+
await optimizeHomePage.clickDashboardLink();
|
|
272
|
+
await optimizeDashboardPage.clickFilterTable();
|
|
273
|
+
await optimizeDashboardPage.fillFilterTable(processName);
|
|
274
|
+
await optimizeDashboardPage.processAssertion(processName);
|
|
276
275
|
await optimizeHomePage.clickCollectionsLink();
|
|
277
276
|
await optimizeCollectionsPage.clickCreateNewButton();
|
|
278
277
|
await optimizeCollectionsPage.clickReportOption();
|
|
@@ -307,17 +306,24 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
307
306
|
await (0, test_1.expect)(optimizeReportPage.twoUserTaskInstance).not.toBeVisible();
|
|
308
307
|
});
|
|
309
308
|
});
|
|
310
|
-
(0, SM_8_11_1.test)('Conditional Events - Report Updates After Second Process Run @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
309
|
+
(0, SM_8_11_1.test)('Conditional Events - Report Updates After Second Process Run @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, optimizeDashboardPage, }) => {
|
|
311
310
|
SM_8_11_1.test.slow();
|
|
312
|
-
const
|
|
313
|
-
const
|
|
311
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
312
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
313
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
314
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
315
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
316
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
317
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
314
318
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
315
319
|
await SM_8_11_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
|
|
316
320
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
317
321
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
318
322
|
await modelerHomePage.clickUploadFilesButton();
|
|
319
|
-
|
|
320
|
-
|
|
323
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
324
|
+
name: bpmnFileName,
|
|
325
|
+
buffer: Buffer.from(bpmnContent),
|
|
326
|
+
});
|
|
321
327
|
await (0, sleep_1.sleep)(5000);
|
|
322
328
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
323
329
|
});
|
|
@@ -335,6 +341,10 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
335
341
|
await navigationPage.goToOptimize();
|
|
336
342
|
await (0, sleep_1.sleep)(10000);
|
|
337
343
|
await page.reload();
|
|
344
|
+
await optimizeHomePage.clickDashboardLink();
|
|
345
|
+
await optimizeDashboardPage.clickFilterTable();
|
|
346
|
+
await optimizeDashboardPage.fillFilterTable(processName);
|
|
347
|
+
await optimizeDashboardPage.processAssertion(processName);
|
|
338
348
|
await optimizeHomePage.clickCollectionsLink();
|
|
339
349
|
await optimizeCollectionsPage.clickCreateNewButton();
|
|
340
350
|
await optimizeCollectionsPage.clickReportOption();
|
|
@@ -389,17 +399,25 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
389
399
|
await (0, test_1.expect)(optimizeReportPage.oneUserTaskInstance).not.toBeVisible();
|
|
390
400
|
});
|
|
391
401
|
});
|
|
392
|
-
|
|
402
|
+
// Skipped due to bug #70869: https://github.com/camunda/camunda/issues/70869
|
|
403
|
+
SM_8_11_1.test.skip('Conditional Events - Report Starts at Zero and Updates After First Run @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
393
404
|
SM_8_11_1.test.slow();
|
|
394
|
-
const
|
|
395
|
-
const
|
|
405
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
406
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
407
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
408
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
409
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
410
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
411
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
396
412
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
397
413
|
await SM_8_11_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
|
|
398
414
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
399
415
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
400
416
|
await modelerHomePage.clickUploadFilesButton();
|
|
401
|
-
|
|
402
|
-
|
|
417
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
418
|
+
name: bpmnFileName,
|
|
419
|
+
buffer: Buffer.from(bpmnContent),
|
|
420
|
+
});
|
|
403
421
|
await (0, sleep_1.sleep)(5000);
|
|
404
422
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
405
423
|
});
|
|
@@ -463,8 +481,13 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
463
481
|
});
|
|
464
482
|
(0, SM_8_11_1.test)('Conditional Events - Instance Gated By Unmet Condition (CE-OPT-06) @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeDashboardPage, }) => {
|
|
465
483
|
SM_8_11_1.test.slow();
|
|
466
|
-
const
|
|
467
|
-
const
|
|
484
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
485
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
486
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
487
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
488
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
489
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
490
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
468
491
|
// myVar = 3 does NOT satisfy the intermediate conditional catch event
|
|
469
492
|
// (condition: myVar > 5), so the token is gated at the catch event and no
|
|
470
493
|
// user task is ever activated. The instance stays active/running and
|
|
@@ -475,8 +498,10 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
475
498
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
476
499
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
477
500
|
await modelerHomePage.clickUploadFilesButton();
|
|
478
|
-
|
|
479
|
-
|
|
501
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
502
|
+
name: bpmnFileName,
|
|
503
|
+
buffer: Buffer.from(bpmnContent),
|
|
504
|
+
});
|
|
480
505
|
await (0, sleep_1.sleep)(5000);
|
|
481
506
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
482
507
|
});
|
|
@@ -1,37 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
const test_1 = require("@playwright/test");
|
|
27
4
|
const SM_8_9_1 = require("../../fixtures/SM-8.9");
|
|
28
5
|
const _setup_1 = require("../../test-setup.js");
|
|
29
6
|
const sleep_1 = require("../../utils/sleep");
|
|
7
|
+
const fileUpload_1 = require("../../utils/fileUpload");
|
|
30
8
|
const UtilitiesPage_1 = require("../../pages/SM-8.9/UtilitiesPage");
|
|
31
9
|
const UtilitiesPage_2 = require("../../pages/SM-8.9/UtilitiesPage");
|
|
32
10
|
if (process.env.IS_OPTIMIZE !== 'false') {
|
|
33
11
|
SM_8_9_1.test.describe.configure({ mode: 'parallel' });
|
|
34
|
-
SM_8_9_1.test.describe('Optimize User Flow Tests
|
|
12
|
+
SM_8_9_1.test.describe('Optimize User Flow Tests', () => {
|
|
35
13
|
SM_8_9_1.test.beforeEach(async ({ navigationPage }, testInfo) => {
|
|
36
14
|
await navigationPage.goToModeler((testInfo.workerIndex + 1) * 1000);
|
|
37
15
|
});
|
|
@@ -39,7 +17,7 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
39
17
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
40
18
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
41
19
|
});
|
|
42
|
-
(0, SM_8_9_1.test)('Process Import Flow', async ({ page, operateHomePage, modelerHomePage, navigationPage, modelerCreatePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeDashboardPage, }) => {
|
|
20
|
+
(0, SM_8_9_1.test)('Process Import Flow @tasklistV1', async ({ page, operateHomePage, modelerHomePage, navigationPage, modelerCreatePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeDashboardPage, }) => {
|
|
43
21
|
SM_8_9_1.test.slow();
|
|
44
22
|
const processName = 'Optimize_Job_Worker_User_Task_Flow' +
|
|
45
23
|
(await (0, _setup_1.generateRandomStringAsync)(3));
|
|
@@ -67,7 +45,7 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
67
45
|
await optimizeDashboardPage.processAssertion(processName);
|
|
68
46
|
});
|
|
69
47
|
});
|
|
70
|
-
(0, SM_8_9_1.test)('Job Worker User Task User Flow', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
48
|
+
(0, SM_8_9_1.test)('Job Worker User Task User Flow @tasklistV1', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
71
49
|
SM_8_9_1.test.slow();
|
|
72
50
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
73
51
|
const processName = 'Optimize_Job_Worker_User_Task_Diagram' + reportName;
|
|
@@ -137,7 +115,7 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
137
115
|
await (0, test_1.expect)(optimizeReportPage.oneUserTaskInstance).not.toBeVisible();
|
|
138
116
|
});
|
|
139
117
|
});
|
|
140
|
-
(0, SM_8_9_1.test)('New Instances Updated Flow', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
118
|
+
(0, SM_8_9_1.test)('New Instances Updated Flow @tasklistV1', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
141
119
|
SM_8_9_1.test.slow();
|
|
142
120
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
143
121
|
const processName = 'Optimize_Job_Worker_User_Task_Flow_Updated' +
|
|
@@ -205,14 +183,21 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
205
183
|
});
|
|
206
184
|
(0, SM_8_9_1.test)('Conditional Events - Process Import Flow @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeDashboardPage, }) => {
|
|
207
185
|
SM_8_9_1.test.slow();
|
|
208
|
-
const
|
|
209
|
-
const
|
|
186
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
187
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
188
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
189
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
190
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
191
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
192
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
210
193
|
await SM_8_9_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
|
|
211
194
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
212
195
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
213
196
|
await modelerHomePage.clickUploadFilesButton();
|
|
214
|
-
|
|
215
|
-
|
|
197
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
198
|
+
name: bpmnFileName,
|
|
199
|
+
buffer: Buffer.from(bpmnContent),
|
|
200
|
+
});
|
|
216
201
|
await (0, sleep_1.sleep)(5000);
|
|
217
202
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
218
203
|
});
|
|
@@ -242,20 +227,29 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
242
227
|
await optimizeDashboardPage.fillFilterTable(processName);
|
|
243
228
|
await optimizeDashboardPage.processAssertion(processName);
|
|
244
229
|
await page.getByTitle(processName).first().click({ timeout: 60000 });
|
|
245
|
-
await (0, test_1.expect)(page
|
|
230
|
+
await (0, test_1.expect)(page
|
|
231
|
+
.getByRole('link', { name: 'Camunda logo Optimize' })
|
|
232
|
+
.or(page.getByRole('link', { name: 'Camunda Optimize' }))).toBeVisible({ timeout: 60000 });
|
|
246
233
|
});
|
|
247
234
|
});
|
|
248
|
-
(0, SM_8_9_1.test)('Conditional Events - Create and Verify User Task Report @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
235
|
+
(0, SM_8_9_1.test)('Conditional Events - Create and Verify User Task Report @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, optimizeDashboardPage, }) => {
|
|
249
236
|
SM_8_9_1.test.slow();
|
|
250
|
-
const
|
|
251
|
-
const
|
|
237
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
238
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
239
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
240
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
241
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
242
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
243
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
252
244
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
253
245
|
await SM_8_9_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
|
|
254
246
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
255
247
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
256
248
|
await modelerHomePage.clickUploadFilesButton();
|
|
257
|
-
|
|
258
|
-
|
|
249
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
250
|
+
name: bpmnFileName,
|
|
251
|
+
buffer: Buffer.from(bpmnContent),
|
|
252
|
+
});
|
|
259
253
|
await (0, sleep_1.sleep)(5000);
|
|
260
254
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
261
255
|
});
|
|
@@ -273,6 +267,10 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
273
267
|
await navigationPage.goToOptimize();
|
|
274
268
|
await (0, sleep_1.sleep)(10000);
|
|
275
269
|
await page.reload();
|
|
270
|
+
await optimizeHomePage.clickDashboardLink();
|
|
271
|
+
await optimizeDashboardPage.clickFilterTable();
|
|
272
|
+
await optimizeDashboardPage.fillFilterTable(processName);
|
|
273
|
+
await optimizeDashboardPage.processAssertion(processName);
|
|
276
274
|
await optimizeHomePage.clickCollectionsLink();
|
|
277
275
|
await optimizeCollectionsPage.clickCreateNewButton();
|
|
278
276
|
await optimizeCollectionsPage.clickReportOption();
|
|
@@ -307,17 +305,24 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
307
305
|
await (0, test_1.expect)(optimizeReportPage.twoUserTaskInstance).not.toBeVisible();
|
|
308
306
|
});
|
|
309
307
|
});
|
|
310
|
-
(0, SM_8_9_1.test)('Conditional Events - Report Updates After Second Process Run @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
308
|
+
(0, SM_8_9_1.test)('Conditional Events - Report Updates After Second Process Run @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, optimizeDashboardPage, }) => {
|
|
311
309
|
SM_8_9_1.test.slow();
|
|
312
|
-
const
|
|
313
|
-
const
|
|
310
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
311
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
312
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
313
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
314
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
315
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
316
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
314
317
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
315
318
|
await SM_8_9_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
|
|
316
319
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
317
320
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
318
321
|
await modelerHomePage.clickUploadFilesButton();
|
|
319
|
-
|
|
320
|
-
|
|
322
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
323
|
+
name: bpmnFileName,
|
|
324
|
+
buffer: Buffer.from(bpmnContent),
|
|
325
|
+
});
|
|
321
326
|
await (0, sleep_1.sleep)(5000);
|
|
322
327
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
323
328
|
});
|
|
@@ -335,6 +340,10 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
335
340
|
await navigationPage.goToOptimize();
|
|
336
341
|
await (0, sleep_1.sleep)(10000);
|
|
337
342
|
await page.reload();
|
|
343
|
+
await optimizeHomePage.clickDashboardLink();
|
|
344
|
+
await optimizeDashboardPage.clickFilterTable();
|
|
345
|
+
await optimizeDashboardPage.fillFilterTable(processName);
|
|
346
|
+
await optimizeDashboardPage.processAssertion(processName);
|
|
338
347
|
await optimizeHomePage.clickCollectionsLink();
|
|
339
348
|
await optimizeCollectionsPage.clickCreateNewButton();
|
|
340
349
|
await optimizeCollectionsPage.clickReportOption();
|
|
@@ -391,15 +400,22 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
391
400
|
});
|
|
392
401
|
(0, SM_8_9_1.test)('Conditional Events - Report Starts at Zero and Updates After First Run @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
|
|
393
402
|
SM_8_9_1.test.slow();
|
|
394
|
-
const
|
|
395
|
-
const
|
|
403
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
404
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
405
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
406
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
407
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
408
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
409
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
396
410
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
397
411
|
await SM_8_9_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
|
|
398
412
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
399
413
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
400
414
|
await modelerHomePage.clickUploadFilesButton();
|
|
401
|
-
|
|
402
|
-
|
|
415
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
416
|
+
name: bpmnFileName,
|
|
417
|
+
buffer: Buffer.from(bpmnContent),
|
|
418
|
+
});
|
|
403
419
|
await (0, sleep_1.sleep)(5000);
|
|
404
420
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
405
421
|
});
|
|
@@ -463,14 +479,21 @@ if (process.env.IS_OPTIMIZE !== 'false') {
|
|
|
463
479
|
});
|
|
464
480
|
(0, SM_8_9_1.test)('Conditional Events - Instance Gated By Unmet Condition (CE-OPT-06) @tasklistV2', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeDashboardPage, }) => {
|
|
465
481
|
SM_8_9_1.test.slow();
|
|
466
|
-
const
|
|
467
|
-
const
|
|
482
|
+
const suffix = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
483
|
+
const diagramName = `Conditional_Events_All_${suffix}`;
|
|
484
|
+
const bpmnFileName = `${diagramName}.bpmn`;
|
|
485
|
+
const processName = `Conditional Events Auto-Run ${suffix}`;
|
|
486
|
+
const bpmnContent = (0, fileUpload_1.readResourceFile)('Conditional_Events_All.bpmn')
|
|
487
|
+
.replaceAll('conditional-events-auto-process', `conditional-events-auto-process-${suffix}`)
|
|
488
|
+
.replace('Conditional Events Auto-Run Demo', processName);
|
|
468
489
|
await SM_8_9_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
|
|
469
490
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
470
491
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
471
492
|
await modelerHomePage.clickUploadFilesButton();
|
|
472
|
-
|
|
473
|
-
|
|
493
|
+
await (0, fileUpload_1.uploadFileContent)(page, {
|
|
494
|
+
name: bpmnFileName,
|
|
495
|
+
buffer: Buffer.from(bpmnContent),
|
|
496
|
+
});
|
|
474
497
|
await (0, sleep_1.sleep)(5000);
|
|
475
498
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
476
499
|
});
|