@camunda/e2e-test-suite 0.0.1039 → 0.0.1040

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.
@@ -364,12 +364,23 @@ class ModelerHomePage {
364
364
  // kebab once they render, so a mouse click lands on the tag instead. Open the
365
365
  // menu from the keyboard -- same control, reached the way a keyboard user
366
366
  // reaches it, and unaffected by what paints over it.
367
+ //
368
+ // A freshly created entity's file data lands after the editor has already
369
+ // painted, and the header re-renders when it does -- which unmounts the open
370
+ // Radix menu mid-click ("element was detached from the DOM, retrying") and
371
+ // leaves it closed for the rest of the click's budget. Open the menu and pick
372
+ // Rename as one retried unit so a remount costs an iteration instead of the
373
+ // test. Escape first: the trigger toggles, so an attempt that left the menu
374
+ // open would otherwise have the next Enter close it again.
367
375
  async renameViaMoreActions(name) {
368
376
  const entityActions = this.moreActionsButton.last();
369
- await entityActions.focus();
370
- await entityActions.press('Enter');
371
- await this.renameMenuItem.click();
372
- await (0, test_1.expect)(this.renameInput).toBeVisible({ timeout: 10000 });
377
+ await (0, test_1.expect)(async () => {
378
+ await this.page.keyboard.press('Escape');
379
+ await entityActions.focus();
380
+ await entityActions.press('Enter');
381
+ await this.renameMenuItem.click({ timeout: 5000 });
382
+ await (0, test_1.expect)(this.renameInput).toBeVisible({ timeout: 10000 });
383
+ }).toPass({ timeout: 120000, intervals: [2000] });
373
384
  await this.renameInput.fill(name);
374
385
  await this.renameSubmitButton.click();
375
386
  await (0, test_1.expect)(this.renameInput).toBeHidden({ timeout: 10000 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1039",
3
+ "version": "0.0.1040",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",