@camunda/e2e-test-suite 0.0.1721 → 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1721",
3
+ "version": "0.0.1722",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",