@camunda/e2e-test-suite 0.0.213 → 0.0.215
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.
|
@@ -6,6 +6,10 @@ const TaskPanelPage_1 = require("../../pages/8.10/TaskPanelPage");
|
|
|
6
6
|
const TaskDetailsPage_1 = require("../../pages/8.10/TaskDetailsPage");
|
|
7
7
|
const AppsPage_1 = require("../../pages/8.10/AppsPage");
|
|
8
8
|
const OperateProcessInstancePage_1 = require("../../pages/8.10/OperateProcessInstancePage");
|
|
9
|
+
// TODO: Re-enable Optimize imports when bug is fixed
|
|
10
|
+
// import {OptimizeHomePage} from '../../pages/8.10/OptimizeHomePage';
|
|
11
|
+
// import {OptimizeDashboardPage} from '../../pages/8.10/OptimizeDashboardPage';
|
|
12
|
+
const fileUpload_1 = require("../../utils/fileUpload");
|
|
9
13
|
const _setup_1 = require("../../test-setup.js");
|
|
10
14
|
const UtilitiesPage_1 = require("../../pages/8.10/UtilitiesPage");
|
|
11
15
|
const deleteOrg_1 = require("../../utils/deleteOrg");
|
|
@@ -541,4 +545,58 @@ _8_10_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
541
545
|
await operateProcessInstancePage.assertProcessCompleteStatusWithRetry(40000);
|
|
542
546
|
});
|
|
543
547
|
});
|
|
548
|
+
(0, _8_10_1.test)('Conditional Events - Deploy, verify in Operate and verify process in Optimize dashboard @tasklistV2', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, }) => {
|
|
549
|
+
_8_10_1.test.slow();
|
|
550
|
+
const bpmnFileName = 'Conditional_Events_All.bpmn';
|
|
551
|
+
// TODO: Uncomment when Optimize tests are re-enabled
|
|
552
|
+
// const processName = 'Conditional Events Auto-Run';
|
|
553
|
+
await _8_10_1.test.step('Navigate to Web Modeler', async () => {
|
|
554
|
+
await (0, test_1.expect)(homePage.camundaComponentsButton).toBeVisible({
|
|
555
|
+
timeout: 120000,
|
|
556
|
+
});
|
|
557
|
+
await appsPage.clickCamundaApps();
|
|
558
|
+
await appsPage.clickModeler();
|
|
559
|
+
await (0, test_1.expect)(modelerHomePage.modelerPageBanner).toBeVisible({
|
|
560
|
+
timeout: 180000,
|
|
561
|
+
});
|
|
562
|
+
});
|
|
563
|
+
await _8_10_1.test.step('Open Cross Component Test Project and upload BPMN file', async () => {
|
|
564
|
+
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
565
|
+
await modelerHomePage.clickDiagramTypeDropdown();
|
|
566
|
+
await modelerHomePage.clickUploadFilesButton();
|
|
567
|
+
await (0, fileUpload_1.uploadFile)(page, bpmnFileName);
|
|
568
|
+
});
|
|
569
|
+
await _8_10_1.test.step('Open uploaded BPMN diagram', async () => {
|
|
570
|
+
await (0, sleep_1.sleep)(5000);
|
|
571
|
+
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
572
|
+
});
|
|
573
|
+
await _8_10_1.test.step('Deploy and run process with variable', async () => {
|
|
574
|
+
const variables = '{"myVar": 8}';
|
|
575
|
+
await modelerCreatePage.runProcessInstance(clusterName, variables);
|
|
576
|
+
});
|
|
577
|
+
await _8_10_1.test.step('View process instance in Operate and verify completion', async () => {
|
|
578
|
+
await (0, test_1.expect)(modelerCreatePage.viewProcessInstanceLink).toBeVisible({
|
|
579
|
+
timeout: 120000,
|
|
580
|
+
});
|
|
581
|
+
await modelerCreatePage.clickViewProcessInstanceLink();
|
|
582
|
+
const operateTabPromise = page.waitForEvent('popup', { timeout: 60000 });
|
|
583
|
+
const operateTab = await operateTabPromise;
|
|
584
|
+
// TODO: Uncomment when Optimize tests are re-enabled
|
|
585
|
+
// const operateTabAppsPage = new AppsPage(operateTab);
|
|
586
|
+
const operateProcessInstancePage = new OperateProcessInstancePage_1.OperateProcessInstancePage(operateTab);
|
|
587
|
+
await operateProcessInstancePage.assertProcessCompleteStatusWithRetry(60000, 15);
|
|
588
|
+
await operateProcessInstancePage.assertProcessVariableContainsText('myVar', '8');
|
|
589
|
+
//Skipped due to bug 46344: https://github.com/camunda/camunda/issues/46344
|
|
590
|
+
// await test.step('Navigate to Optimize and verify process in dashboard', async () => {
|
|
591
|
+
// const operateTabAppsPage = new AppsPage(operateTab);
|
|
592
|
+
// await operateTabAppsPage.clickCamundaApps();
|
|
593
|
+
// await operateTabAppsPage.clickOptimize(clusterName);
|
|
594
|
+
// const optimizeHomePage = new OptimizeHomePage(operateTab);
|
|
595
|
+
// const optimizeDashboardPage = new OptimizeDashboardPage(operateTab);
|
|
596
|
+
// await optimizeHomePage.clickDashboardLink();
|
|
597
|
+
// await sleep(60000);
|
|
598
|
+
// await optimizeDashboardPage.processLinkAssertion(processName, 5);
|
|
599
|
+
// });
|
|
600
|
+
});
|
|
601
|
+
});
|
|
544
602
|
});
|