@camunda/e2e-test-suite 0.0.766 → 0.0.768

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.
@@ -179,9 +179,7 @@ class ModelerCreatePage {
179
179
  this.secondPlacedElement = page
180
180
  .locator('[class= "djs-element djs-shape"]')
181
181
  .last();
182
- this.connectToOtherElementButton = page
183
- .getByLabel('Connect to other element')
184
- .locator('path');
182
+ this.connectToOtherElementButton = page.getByTitle('Connect to other element');
185
183
  this.canvas = page.locator('rect').nth(1);
186
184
  this.intermediateBoundaryEvent = page.getByTitle('Append intermediate/boundary');
187
185
  this.intermediateWebhookConnectorOption = page.getByRole('listitem', {
@@ -461,5 +461,39 @@ 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_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
+ SM_8_9_1.test.slow();
466
+ const bpmnFileName = 'Conditional_Events_All.bpmn';
467
+ const processName = 'Conditional Events Auto-Run';
468
+ await SM_8_9_1.test.step('Upload and deploy Conditional Events BPMN from Web Modeler', async () => {
469
+ await modelerHomePage.clickCrossComponentProjectFolder();
470
+ await modelerHomePage.clickDiagramTypeDropdown();
471
+ await modelerHomePage.clickUploadFilesButton();
472
+ const { uploadFile } = await Promise.resolve().then(() => __importStar(require('../../utils/fileUpload')));
473
+ await uploadFile(page, bpmnFileName);
474
+ await (0, sleep_1.sleep)(5000);
475
+ await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
476
+ });
477
+ await SM_8_9_1.test.step('Start process instance with variable {"myVar": 3}', async () => {
478
+ const variables = '{"myVar": 3}';
479
+ await modelerCreatePage.runProcessInstance(variables);
480
+ });
481
+ await SM_8_9_1.test.step('Verify the instance is gated (active, not completed) in Operate', async () => {
482
+ await navigationPage.goToOperate();
483
+ await operateHomePage.clickProcessesTab();
484
+ await operateProcessesPage.clickProcessInstanceLink(processName, 'active');
485
+ await operateProcessInstancePage.activeIconAssertion();
486
+ await operateProcessInstancePage.assertProcessVariableContainsText('myVar', '3');
487
+ });
488
+ await SM_8_9_1.test.step('Verify the gated Conditional Events process is imported and visible in the Optimize dashboard (CE-OPT-06)', async () => {
489
+ await navigationPage.goToOptimize();
490
+ await optimizeHomePage.clickDashboardLink();
491
+ await (0, sleep_1.sleep)(10000);
492
+ await page.reload();
493
+ await optimizeDashboardPage.clickFilterTable();
494
+ await optimizeDashboardPage.fillFilterTable(processName);
495
+ await optimizeDashboardPage.processAssertion(processName);
496
+ });
497
+ });
464
498
  });
465
499
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.766",
3
+ "version": "0.0.768",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",