@camunda/e2e-test-suite 0.0.1720 → 0.0.1722

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.
@@ -83,6 +83,7 @@ declare class ModelerHomePage {
83
83
  clickDiagramTypeDropdown(): Promise<void>;
84
84
  clickBpmnTemplateOption(): Promise<void>;
85
85
  clickFormOption(): Promise<void>;
86
+ private confirmResourceCreationDialog;
86
87
  enterFormName(name: string): Promise<void>;
87
88
  private renameViaMoreActions;
88
89
  private waitForEntityCrumb;
@@ -759,9 +759,36 @@ class ModelerHomePage {
759
759
  async clickBpmnTemplateOption() {
760
760
  await (0, test_1.expect)(this.bpmnTemplateOption).toBeVisible({ timeout: 60000 });
761
761
  await this.bpmnTemplateOption.click({ timeout: 60000 });
762
+ await this.confirmResourceCreationDialog();
762
763
  }
763
764
  async clickFormOption() {
764
765
  await this.formTemplateOption.click();
766
+ await this.confirmResourceCreationDialog();
767
+ }
768
+ // The camunda-hub "name on create file" change inserts a naming dialog
769
+ // ("Create BPMN diagram" / "Create form") between picking the resource type
770
+ // and opening the editor: it pre-fills a default name and only creates the
771
+ // file on its "Create" button. Builds without that change -- including the
772
+ // product the SM nightly runs this same spec against -- create the file
773
+ // immediately with no dialog, so submit it only when it actually appears,
774
+ // keeping the default name (the test renames the resource afterwards via
775
+ // enterDiagramName / enterFormName).
776
+ async confirmResourceCreationDialog() {
777
+ const createDialog = this.page.getByRole('dialog').filter({
778
+ has: this.page.getByRole('button', { name: 'Create', exact: true }),
779
+ });
780
+ const appeared = await createDialog
781
+ .first()
782
+ .waitFor({ state: 'visible', timeout: 5000 })
783
+ .then(() => true)
784
+ .catch(() => false);
785
+ if (!appeared) {
786
+ return;
787
+ }
788
+ await createDialog
789
+ .getByRole('button', { name: 'Create', exact: true })
790
+ .first()
791
+ .click({ timeout: 30000 });
765
792
  }
766
793
  // Same shell split as enterNewProjectName: the Design System form editor has
767
794
  // no inline editable input and renames through the breadcrumb's "More
@@ -305,9 +305,12 @@ test.describe('Connectors User Flow Tests @tasklistV2', () => {
305
305
  // Do not rename the selected start event's ID before appending a task.
306
306
  await modelerCreatePage.enterDiagramName(processName);
307
307
  const elementId = await modelerCreatePage.appendTaskToStartEvent();
308
- // Modeler's diagram targets currently stop at 8.10, which supports AI v2.
309
- // The deployment under test remains SM 8.11; these flows do not deploy.
310
- await modelerCreatePage.setEngineVersion('8.10');
308
+ // The AI Agent v2 connector template now requires Camunda 8.11.0+, and
309
+ // the modeler offers 8.11 (alpha) as a diagram target. Target it so the
310
+ // imported template is a compatible change-element option; at 8.10 it is
311
+ // filtered out and never listed. The suite deploys SM 8.11 and these
312
+ // flows only model, they do not deploy.
313
+ await modelerCreatePage.setEngineVersion('8.11');
311
314
  await modelerCreatePage.openChangeElementPopupForElement(elementId);
312
315
  return elementId;
313
316
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1720",
3
+ "version": "0.0.1722",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",