@camunda/e2e-test-suite 0.0.784 → 0.0.786

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.
@@ -914,6 +914,9 @@ class ModelerCreatePage {
914
914
  await this.parallelGatewayOption.click({ timeout: 90000 });
915
915
  }
916
916
  async clickConnectToOtherElementButton() {
917
+ await (0, test_1.expect)(this.connectToOtherElementButton).toBeVisible({
918
+ timeout: 60000,
919
+ });
917
920
  await this.connectToOtherElementButton.click({ timeout: 60000 });
918
921
  }
919
922
  async clickPriorityInput() {
@@ -1169,14 +1172,27 @@ class ModelerCreatePage {
1169
1172
  await this.firstPlaceRESTConnector.click({ timeout: 60000 });
1170
1173
  }
1171
1174
  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.
1175
+ // The append create-pad stays open for the currently selected element, so
1176
+ // its "Append task" entry keeps intercepting the pointer event when the
1177
+ // next task to click sits under it. Moving the pointer away does not close
1178
+ // it (the pad is anchored to the selection, not the cursor). Clear the
1179
+ // selection by clicking an empty area of the canvas that detaches the
1180
+ // pad then wait for it to disappear before the next element click.
1179
1181
  const createPad = this.page.locator('.djs-create-pad.open').first();
1182
+ if (!(await createPad.isVisible().catch(() => false))) {
1183
+ return;
1184
+ }
1185
+ const canvasBox = await this.page
1186
+ .locator('.djs-container')
1187
+ .first()
1188
+ .boundingBox();
1189
+ if (canvasBox) {
1190
+ // A point below the element row (30% across, 65% down) is clear of both
1191
+ // the diagram elements and the bottom zoom toolbar.
1192
+ await this.page.mouse.click(canvasBox.x + canvasBox.width * 0.3, canvasBox.y + canvasBox.height * 0.65);
1193
+ }
1194
+ // Also press Escape and move the pointer off-canvas: the pad can reopen on
1195
+ // hover so a single canvas-click is not always sufficient.
1180
1196
  await this.page.keyboard.press('Escape');
1181
1197
  await this.page.mouse.move(0, 0);
1182
1198
  await createPad
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.784",
3
+ "version": "0.0.786",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",