@camunda/e2e-test-suite 0.0.1045 → 0.0.1046

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.
@@ -870,11 +870,23 @@ class ModelerCreatePage {
870
870
  // the kebab once they render, so a mouse click lands on the tag instead.
871
871
  // Open the menu from the keyboard -- same control, reached the way a
872
872
  // keyboard user reaches it, and unaffected by what paints over it.
873
+ //
874
+ // The header also keeps settling after the editor paints -- license tags
875
+ // mount into that same ml-auto sibling and the breadcrumb label swaps to
876
+ // the persisted diagram name -- and either re-render unmounts an already
877
+ // open Radix menu, so re-open it on each attempt instead of clicking into
878
+ // a menu that may already be gone.
873
879
  const diagramActions = this.moreActionsButton.last();
874
- await diagramActions.focus();
875
- await diagramActions.press('Enter');
876
- await this.renameMenuItem.click();
877
- await (0, test_1.expect)(this.renameInput).toBeVisible({ timeout: 10000 });
880
+ await (0, test_1.expect)(async () => {
881
+ if (await this.renameMenuItem.isVisible()) {
882
+ await this.page.keyboard.press('Escape');
883
+ await (0, test_1.expect)(this.renameMenuItem).toBeHidden({ timeout: 5000 });
884
+ }
885
+ await diagramActions.focus();
886
+ await diagramActions.press('Enter');
887
+ await this.renameMenuItem.click({ timeout: 15000 });
888
+ await (0, test_1.expect)(this.renameInput).toBeVisible({ timeout: 10000 });
889
+ }).toPass({ timeout: 120000, intervals: [1000, 2000, 5000] });
878
890
  await this.renameInput.fill(name);
879
891
  await this.renameSubmitButton.click();
880
892
  await (0, test_1.expect)(this.renameInput).toBeHidden({ timeout: 10000 });
@@ -386,6 +386,23 @@ class ModelerHomePage {
386
386
  // open would otherwise have the next Enter close it again.
387
387
  async renameViaMoreActions(name) {
388
388
  const entityActions = this.moreActionsButton.last();
389
+ // The header keeps settling after the editor paints: the license tags
390
+ // mount into the ml-auto sibling and the breadcrumb label swaps from its
391
+ // placeholder to the persisted entity name. Either re-render shifts and
392
+ // then unmounts the open Radix menu ("element is not stable", then
393
+ // "element was detached from the DOM"), and the menu item never comes
394
+ // back because the menu itself closed. Re-open the menu on each attempt
395
+ // rather than clicking into one that may already be gone.
396
+ await (0, test_1.expect)(async () => {
397
+ if (await this.renameMenuItem.isVisible()) {
398
+ await this.page.keyboard.press('Escape');
399
+ await (0, test_1.expect)(this.renameMenuItem).toBeHidden({ timeout: 5000 });
400
+ }
401
+ await entityActions.focus();
402
+ await entityActions.press('Enter');
403
+ await this.renameMenuItem.click({ timeout: 15000 });
404
+ await (0, test_1.expect)(this.renameInput).toBeVisible({ timeout: 10000 });
405
+ }).toPass({ timeout: 120000, intervals: [1000, 2000, 5000] });
389
406
  await (0, test_1.expect)(async () => {
390
407
  await this.page.keyboard.press('Escape');
391
408
  await entityActions.focus();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1045",
3
+ "version": "0.0.1046",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",