@camunda/e2e-test-suite 0.0.1744 → 0.0.1745

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.
@@ -454,19 +454,27 @@ class ModelerHomePage {
454
454
  timeout: 15000,
455
455
  });
456
456
  await this.bpmnTemplateOption.click();
457
- await this.confirmNewEntityName();
457
+ // Hub prefills the first diagram of an empty process application with the
458
+ // application's name, and only syncs a later file rename into
459
+ // bpmn:process@name while it is still the default (camunda-hub
460
+ // modeler-util.ts checkAndSyncProcessName), so reset it to that default.
461
+ await this.confirmNewEntityName('New BPMN diagram');
458
462
  }
459
463
  async clickFormOption() {
460
464
  await this.formTemplateOption.click();
461
465
  await this.confirmNewEntityName();
462
466
  }
463
- // Keeps the dialog's prefilled name: callers rename the resource afterwards,
464
- // and the form flow waits on the default "New form" crumb. A failed create
465
- // leaves the dialog open with Create re-enabled, so submit again.
466
- async confirmNewEntityName() {
467
+ // Without a name, keeps the dialog's prefilled one: the form flow waits on
468
+ // the default "New form" crumb. A failed create leaves the dialog open with
469
+ // Create re-enabled, so submit again.
470
+ async confirmNewEntityName(name) {
467
471
  if (!(await this.becameVisible(this.newEntityNameInput, 15000))) {
468
472
  return;
469
473
  }
474
+ if (name) {
475
+ await this.newEntityNameInput.fill(name, { timeout: 10000 });
476
+ await (0, test_1.expect)(this.newEntityNameInput).toHaveValue(name, { timeout: 5000 });
477
+ }
470
478
  await (0, test_1.expect)(async () => {
471
479
  if (await this.newEntityNameSubmitButton.isVisible()) {
472
480
  await this.newEntityNameSubmitButton.click({ timeout: 10000 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1744",
3
+ "version": "0.0.1745",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",