@camunda/e2e-test-suite 0.0.746 → 0.0.747

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.
@@ -461,5 +461,45 @@ if (process.env.IS_OPTIMIZE !== 'false') {
461
461
  await (0, UtilitiesPage_2.assertPageTextWithRetry)(page, 'Displaying data from 1 instance.', false, 30000);
462
462
  });
463
463
  });
464
+ (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
+ SM_8_10_1.test.slow();
466
+ const bpmnFileName = 'Conditional_Events_All.bpmn';
467
+ const processName = 'Conditional Events Auto-Run';
468
+ // myVar = 3 does NOT satisfy the intermediate conditional catch event
469
+ // (condition: myVar > 5), so the token is gated at the catch event and no
470
+ // user task is ever activated. The instance stays active/running and
471
+ // Optimize should still import the running process. This exercises the
472
+ // conditional-gating path, which the other CE-OPT tests (all myVar = 8) do
473
+ // not cover.
474
+ await SM_8_10_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
475
+ await modelerHomePage.clickCrossComponentProjectFolder();
476
+ await modelerHomePage.clickDiagramTypeDropdown();
477
+ await modelerHomePage.clickUploadFilesButton();
478
+ const { uploadFile } = await Promise.resolve().then(() => __importStar(require('../../utils/fileUpload')));
479
+ await uploadFile(page, bpmnFileName);
480
+ await (0, sleep_1.sleep)(5000);
481
+ await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
482
+ });
483
+ await SM_8_10_1.test.step('Start process instance with variable {"myVar": 3}', async () => {
484
+ const variables = '{"myVar": 3}';
485
+ await modelerCreatePage.runProcessInstance(variables);
486
+ });
487
+ await SM_8_10_1.test.step('Verify the instance is gated (active, not completed) in Operate', async () => {
488
+ await navigationPage.goToOperate();
489
+ await operateHomePage.clickProcessesTab();
490
+ await operateProcessesPage.clickProcessInstanceLink(processName, 'active');
491
+ await operateProcessInstancePage.activeIconAssertion();
492
+ await operateProcessInstancePage.assertProcessVariableContainsText('myVar', '3');
493
+ });
494
+ await SM_8_10_1.test.step('Verify the gated Conditional Events process is imported and visible in the Optimize dashboard (CE-OPT-06)', async () => {
495
+ await navigationPage.goToOptimize();
496
+ await optimizeHomePage.clickDashboardLink();
497
+ await (0, sleep_1.sleep)(10000);
498
+ await page.reload();
499
+ await optimizeDashboardPage.clickFilterTable();
500
+ await optimizeDashboardPage.fillFilterTable(processName);
501
+ await optimizeDashboardPage.processAssertion(processName);
502
+ });
503
+ });
464
504
  });
465
505
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.746",
3
+ "version": "0.0.747",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",