@camunda/e2e-test-suite 0.0.1743 → 0.0.1744

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.
@@ -20,6 +20,7 @@ declare class ModelerHomePage {
20
20
  readonly diagramTypeDropdown: Locator;
21
21
  readonly bpmnTemplateOption: Locator;
22
22
  readonly formTemplateOption: Locator;
23
+ readonly newEntityNameInput: Locator;
23
24
  readonly newEntityNameSubmit: Locator;
24
25
  readonly projectBreadcrumb: Locator;
25
26
  readonly workspaceBreadcrumb: Locator;
@@ -44,6 +44,7 @@ class ModelerHomePage {
44
44
  diagramTypeDropdown;
45
45
  bpmnTemplateOption;
46
46
  formTemplateOption;
47
+ newEntityNameInput;
47
48
  newEntityNameSubmit;
48
49
  projectBreadcrumb;
49
50
  workspaceBreadcrumb;
@@ -166,6 +167,7 @@ class ModelerHomePage {
166
167
  // day that variant ships.
167
168
  this.bpmnTemplateOption = page.locator('[data-test="create-bpmn-diagram"]');
168
169
  this.formTemplateOption = page.locator('[data-test="create-form"]');
170
+ this.newEntityNameInput = page.locator('[data-test="new-entity-name-input"]');
169
171
  this.newEntityNameSubmit = page.locator('[data-test="new-entity-name-submit"]');
170
172
  this.projectBreadcrumb = page.locator('[data-test="breadcrumb-project"]');
171
173
  // Kept separate from projectBreadcrumb, which now means "the container my
@@ -465,7 +467,11 @@ class ModelerHomePage {
465
467
  timeout: 15000,
466
468
  });
467
469
  await this.bpmnTemplateOption.click();
468
- await this.confirmNewEntityNameDialog();
470
+ // Hub prefills the first diagram of an empty project with the project
471
+ // name, and a later rename only syncs the process name from this
472
+ // placeholder (camunda-hub modeler-util.ts), so callers' names reach
473
+ // Operate/Tasklist only if the diagram starts out as the placeholder.
474
+ await this.confirmNewEntityNameDialog('New BPMN diagram');
469
475
  const opened = await this.page
470
476
  .waitForURL(/\/diagrams\//, { timeout: 60000 })
471
477
  .then(() => true)
@@ -483,10 +489,14 @@ class ModelerHomePage {
483
489
  }
484
490
  // Hub's pre-create name dialog: keep the default (callers rename later; the
485
491
  // form flow waits on "New form"). A failed create leaves it open, so resubmit.
486
- async confirmNewEntityNameDialog() {
492
+ async confirmNewEntityNameDialog(name) {
487
493
  if (!(await this.becameVisible(this.newEntityNameSubmit, 15000))) {
488
494
  return;
489
495
  }
496
+ if (name) {
497
+ await this.newEntityNameInput.fill(name);
498
+ await (0, test_1.expect)(this.newEntityNameInput).toHaveValue(name);
499
+ }
490
500
  await (0, test_1.expect)(async () => {
491
501
  if (await this.newEntityNameSubmit.isVisible()) {
492
502
  await this.newEntityNameSubmit.click({ timeout: 10000 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1743",
3
+ "version": "0.0.1744",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",