@camunda/e2e-test-suite 0.0.600 → 0.0.602

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.
@@ -62,13 +62,19 @@ class HomePage {
62
62
  // Console can render more than one informational popup at once (e.g., the
63
63
  // customization modal plus a "New features" announcement). Close every visible
64
64
  // 'Close' button. Bounded to guard against a regression that re-renders the popup.
65
+ //
66
+ // Carbon stacks modals in DOM order, so .last() is the topmost; targeting
67
+ // .first() would try to click a Close button whose modal is covered by the
68
+ // next-stacked .cds--modal backdrop, which intercepts pointer events.
69
+ // force: true also clicks through any transient overlay (e.g. a backdrop
70
+ // fading in during animation).
65
71
  for (let i = 0; i < 5; i++) {
66
- const next = this.informationDialog.first();
72
+ const next = this.informationDialog.last();
67
73
  const visibleTimeout = i === 0 ? 30000 : 2000;
68
74
  if (!(await next.isVisible({ timeout: visibleTimeout }))) {
69
75
  return;
70
76
  }
71
- await next.click({ timeout: 30000 });
77
+ await next.click({ timeout: 30000, force: true });
72
78
  }
73
79
  }
74
80
  organizationUuid() {
@@ -62,13 +62,19 @@ class HomePage {
62
62
  // Console can render more than one informational popup at once (e.g., the
63
63
  // customization modal plus a "New features" announcement). Close every visible
64
64
  // 'Close' button. Bounded to guard against a regression that re-renders the popup.
65
+ //
66
+ // Carbon stacks modals in DOM order, so .last() is the topmost; targeting
67
+ // .first() would try to click a Close button whose modal is covered by the
68
+ // next-stacked .cds--modal backdrop, which intercepts pointer events.
69
+ // force: true also clicks through any transient overlay (e.g. a backdrop
70
+ // fading in during animation).
65
71
  for (let i = 0; i < 5; i++) {
66
- const next = this.informationDialog.first();
72
+ const next = this.informationDialog.last();
67
73
  const visibleTimeout = i === 0 ? 30000 : 2000;
68
74
  if (!(await next.isVisible({ timeout: visibleTimeout }))) {
69
75
  return;
70
76
  }
71
- await next.click({ timeout: 30000 });
77
+ await next.click({ timeout: 30000, force: true });
72
78
  }
73
79
  }
74
80
  organizationUuid() {
@@ -62,13 +62,19 @@ class HomePage {
62
62
  // Console can render more than one informational popup at once (e.g., the
63
63
  // customization modal plus a "New features" announcement). Close every visible
64
64
  // 'Close' button. Bounded to guard against a regression that re-renders the popup.
65
+ //
66
+ // Carbon stacks modals in DOM order, so .last() is the topmost; targeting
67
+ // .first() would try to click a Close button whose modal is covered by the
68
+ // next-stacked .cds--modal backdrop, which intercepts pointer events.
69
+ // force: true also clicks through any transient overlay (e.g. a backdrop
70
+ // fading in during animation).
65
71
  for (let i = 0; i < 5; i++) {
66
- const next = this.informationDialog.first();
72
+ const next = this.informationDialog.last();
67
73
  const visibleTimeout = i === 0 ? 30000 : 2000;
68
74
  if (!(await next.isVisible({ timeout: visibleTimeout }))) {
69
75
  return;
70
76
  }
71
- await next.click({ timeout: 30000 });
77
+ await next.click({ timeout: 30000, force: true });
72
78
  }
73
79
  }
74
80
  organizationUuid() {
@@ -62,13 +62,19 @@ class HomePage {
62
62
  // Console can render more than one informational popup at once (e.g., the
63
63
  // customization modal plus a "New features" announcement). Close every visible
64
64
  // 'Close' button. Bounded to guard against a regression that re-renders the popup.
65
+ //
66
+ // Carbon stacks modals in DOM order, so .last() is the topmost; targeting
67
+ // .first() would try to click a Close button whose modal is covered by the
68
+ // next-stacked .cds--modal backdrop, which intercepts pointer events.
69
+ // force: true also clicks through any transient overlay (e.g. a backdrop
70
+ // fading in during animation).
65
71
  for (let i = 0; i < 5; i++) {
66
- const next = this.informationDialog.first();
72
+ const next = this.informationDialog.last();
67
73
  const visibleTimeout = i === 0 ? 30000 : 2000;
68
74
  if (!(await next.isVisible({ timeout: visibleTimeout }))) {
69
75
  return;
70
76
  }
71
- await next.click({ timeout: 30000 });
77
+ await next.click({ timeout: 30000, force: true });
72
78
  }
73
79
  }
74
80
  organizationUuid() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.600",
3
+ "version": "0.0.602",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",