@camunda/e2e-test-suite 0.0.1744 → 0.0.1746

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.
@@ -136,6 +136,7 @@ declare class ModelerCreatePage {
136
136
  deployDiagram(clusterName: string): Promise<void>;
137
137
  clickDeployButton(): Promise<void>;
138
138
  clickDeployAndRunMainButton(): Promise<void>;
139
+ bindDeployCluster(clusterName: string): Promise<void>;
139
140
  clickDeployAndRunSubButton(): Promise<void>;
140
141
  runProcessInstance(clusterName: string, variables?: string, formVariables?: {
141
142
  [key: string]: string;
@@ -752,6 +752,12 @@ class ModelerCreatePage {
752
752
  }
753
753
  }
754
754
  }
755
+ // Binds the cluster to the current process application's deploy targets, so
756
+ // a later runProcessInstance by a user who may not assign environments
757
+ // (Hub allows only Owner/Admin/DevOps) finds it already bound.
758
+ async bindDeployCluster(clusterName) {
759
+ await this.processApplicationPage.ensureStageCluster(clusterName);
760
+ }
755
761
  async clickDeployAndRunSubButton() {
756
762
  await this.deployAndRunSubButton.click({ timeout: 30000 });
757
763
  }
@@ -353,7 +353,10 @@ class ModelerHomePage {
353
353
  await this.page.waitForTimeout(3000);
354
354
  await this.bpmnTemplateOption.click({ force: true, timeout: 60000 });
355
355
  }
356
- await this.confirmNewEntityNameDialog();
356
+ // Hub only syncs the BPMN process name on rename while it is still this
357
+ // default, and pre-fills an empty project's first diagram with the
358
+ // project name instead, which Operate/Tasklist/Optimize would then show.
359
+ await this.confirmNewEntityNameDialog('New BPMN diagram');
357
360
  }
358
361
  async clickIdpApplicationTemplateOption() {
359
362
  await this.idpTemplateOption.click({ timeout: 120000 });
@@ -363,12 +366,17 @@ class ModelerHomePage {
363
366
  await this.confirmNewEntityNameDialog();
364
367
  }
365
368
  // Hub asks for a name before creating a file (camunda-hub #31596). Callers
366
- // rename the file afterwards, so accept the prefilled default.
367
- async confirmNewEntityNameDialog() {
369
+ // rename the file afterwards.
370
+ async confirmNewEntityNameDialog(name) {
368
371
  const submit = this.page.locator('[data-test="new-entity-name-submit"]');
369
372
  if (!(await this.becameVisible(submit, 15000))) {
370
373
  return;
371
374
  }
375
+ if (name) {
376
+ const input = this.page.locator('[data-test="new-entity-name-input"]');
377
+ await input.fill(name, { timeout: 30000 });
378
+ await (0, test_1.expect)(input).toHaveValue(name);
379
+ }
372
380
  await submit.click({ timeout: 30000 });
373
381
  await (0, test_1.expect)(submit).toBeHidden({ timeout: 60000 });
374
382
  }
@@ -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 });
@@ -223,6 +223,7 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
223
223
  await (0, test_1.expect)(page.getByText('Updating...')).not.toBeVisible({
224
224
  timeout: 90000,
225
225
  });
226
+ await modelerCreatePage.bindDeployCluster(clusterName);
226
227
  await (0, test_1.expect)(settingsPage.openSettingsButton).toBeVisible({
227
228
  timeout: 120000,
228
229
  });
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.1746",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",