@camunda/e2e-test-suite 0.0.783 → 0.0.785

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.
@@ -466,7 +466,7 @@ class IdentityUsersPage {
466
466
  await this.page.getByRole('cell', { name: username, exact: true }).click();
467
467
  await this.assignedRolesTab.click();
468
468
  for (const role of roles) {
469
- await (0, test_1.expect)(this.page.getByRole('cell', { name: role, exact: true })).toBeVisible();
469
+ await (0, test_1.expect)(this.page.getByRole('cell', { name: role, exact: true })).toBeVisible({ timeout: 60000 });
470
470
  }
471
471
  }
472
472
  }
@@ -1169,14 +1169,27 @@ class ModelerCreatePage {
1169
1169
  await this.firstPlaceRESTConnector.click({ timeout: 60000 });
1170
1170
  }
1171
1171
  async dismissCreatePad() {
1172
- // Selecting a bpmn element renders a floating append create-pad anchored to
1173
- // it. Once that pad is expanded (`.djs-create-pad.open`), its "Append task"
1174
- // entry overlaps the neighbouring element and intercepts the pointer event,
1175
- // so the next click never lands. Moving the pointer off the canvas does not
1176
- // close an already-opened pad only Escape (or an outside click) does.
1177
- // Press Escape to close the pad and deselect, then move the pointer off the
1178
- // canvas to clear any hover-triggered pad before the next click.
1172
+ // The append create-pad stays open for the currently selected element, so
1173
+ // its "Append task" entry keeps intercepting the pointer event when the
1174
+ // next task to click sits under it. Moving the pointer away does not close
1175
+ // it (the pad is anchored to the selection, not the cursor). Clear the
1176
+ // selection by clicking an empty area of the canvas that detaches the
1177
+ // pad then wait for it to disappear before the next element click.
1179
1178
  const createPad = this.page.locator('.djs-create-pad.open').first();
1179
+ if (!(await createPad.isVisible().catch(() => false))) {
1180
+ return;
1181
+ }
1182
+ const canvasBox = await this.page
1183
+ .locator('.djs-container')
1184
+ .first()
1185
+ .boundingBox();
1186
+ if (canvasBox) {
1187
+ // A point below the element row (30% across, 65% down) is clear of both
1188
+ // the diagram elements and the bottom zoom toolbar.
1189
+ await this.page.mouse.click(canvasBox.x + canvasBox.width * 0.3, canvasBox.y + canvasBox.height * 0.65);
1190
+ }
1191
+ // Also press Escape and move the pointer off-canvas: the pad can reopen on
1192
+ // hover so a single canvas-click is not always sufficient.
1180
1193
  await this.page.keyboard.press('Escape');
1181
1194
  await this.page.mouse.move(0, 0);
1182
1195
  await createPad
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.783",
3
+ "version": "0.0.785",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",