@camunda/e2e-test-suite 0.0.732 → 0.0.733

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.
@@ -180,6 +180,7 @@ declare class ModelerCreatePage {
180
180
  fillCorrelationKeyPayloadInput(correlationKeyPayload: string): Promise<void>;
181
181
  clickIdInput(): Promise<void>;
182
182
  fillIdInput(id: string): Promise<void>;
183
+ setAndVerifyProcessId(processId: string): Promise<void>;
183
184
  fillStartFormName(name: string): Promise<void>;
184
185
  fillStartFormDate(date: string): Promise<void>;
185
186
  checkStartFormCheckbox(): Promise<void>;
@@ -808,6 +808,25 @@ class ModelerCreatePage {
808
808
  async fillIdInput(id) {
809
809
  await this.processIdInput.fill(id);
810
810
  }
811
+ async setAndVerifyProcessId(processId) {
812
+ // The General properties group is already expanded by the caller. Setting
813
+ // the process ID on a freshly uploaded diagram intermittently fails to
814
+ // commit (the value is typed but the modeler does not persist it, leaving
815
+ // the template default id). Anything keyed on the process id — notably the
816
+ // RBA resource authorization auto-provisioned on deploy — then references
817
+ // the wrong id. Fill, blur to force the commit, and re-apply until the
818
+ // input reflects the intended id.
819
+ for (let attempt = 0; attempt < 3; attempt++) {
820
+ await this.processIdInput.click();
821
+ await this.processIdInput.fill('');
822
+ await this.processIdInput.fill(processId);
823
+ await this.processIdInput.blur();
824
+ if ((await this.processIdInput.inputValue()) === processId) {
825
+ return;
826
+ }
827
+ }
828
+ await (0, test_1.expect)(this.processIdInput).toHaveValue(processId, { timeout: 10000 });
829
+ }
811
830
  async fillStartFormName(name) {
812
831
  await this.payloadNameInput.fill(name);
813
832
  }
@@ -256,8 +256,7 @@ async function modelDiagramFromFile(page, modelerHomePage, modelerCreatePage, pr
256
256
  await modelerCreatePage.clickGeneralPropertiesPanel();
257
257
  await modelerCreatePage.clickNameInput();
258
258
  await modelerCreatePage.fillNamedInput(processName);
259
- await modelerCreatePage.clickIdInput();
260
- await modelerCreatePage.fillIdInput(processName);
259
+ await modelerCreatePage.setAndVerifyProcessId(processName);
261
260
  if (nrOfRenamedUserTasks > 0) {
262
261
  for (let i = 1; i <= nrOfRenamedUserTasks; i++) {
263
262
  await modelerCreatePage.clickUserTask('process' + i);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.732",
3
+ "version": "0.0.733",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",