@camunda/e2e-test-suite 0.0.560 → 0.0.562

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.
@@ -59,8 +59,16 @@ class HomePage {
59
59
  await this.organizationTab.click({ timeout: 90000 });
60
60
  }
61
61
  async closeInformationDialog() {
62
- if (await this.informationDialog.isVisible({ timeout: 30000 })) {
63
- await this.informationDialog.click({ timeout: 30000 });
62
+ // Console can render more than one informational popup at once (e.g., the
63
+ // customization modal plus a "New features" announcement). Close every visible
64
+ // 'Close' button. Bounded to guard against a regression that re-renders the popup.
65
+ for (let i = 0; i < 5; i++) {
66
+ const next = this.informationDialog.first();
67
+ const visibleTimeout = i === 0 ? 30000 : 2000;
68
+ if (!(await next.isVisible({ timeout: visibleTimeout }))) {
69
+ return;
70
+ }
71
+ await next.click({ timeout: 30000 });
64
72
  }
65
73
  }
66
74
  organizationUuid() {
@@ -57,8 +57,16 @@ class HomePage {
57
57
  await this.organizationTab.click({ timeout: 90000 });
58
58
  }
59
59
  async closeInformationDialog() {
60
- if (await this.informationDialog.isVisible({ timeout: 30000 })) {
61
- await this.informationDialog.click({ timeout: 30000 });
60
+ // Console can render more than one informational popup at once (e.g., the
61
+ // customization modal plus a "New features" announcement). Close every visible
62
+ // 'Close' button. Bounded to guard against a regression that re-renders the popup.
63
+ for (let i = 0; i < 5; i++) {
64
+ const next = this.informationDialog.first();
65
+ const visibleTimeout = i === 0 ? 30000 : 2000;
66
+ if (!(await next.isVisible({ timeout: visibleTimeout }))) {
67
+ return;
68
+ }
69
+ await next.click({ timeout: 30000 });
62
70
  }
63
71
  }
64
72
  organizationUuid() {
@@ -59,8 +59,16 @@ class HomePage {
59
59
  await this.organizationTab.click({ timeout: 90000 });
60
60
  }
61
61
  async closeInformationDialog() {
62
- if (await this.informationDialog.isVisible({ timeout: 30000 })) {
63
- await this.informationDialog.click({ timeout: 30000 });
62
+ // Console can render more than one informational popup at once (e.g., the
63
+ // customization modal plus a "New features" announcement). Close every visible
64
+ // 'Close' button. Bounded to guard against a regression that re-renders the popup.
65
+ for (let i = 0; i < 5; i++) {
66
+ const next = this.informationDialog.first();
67
+ const visibleTimeout = i === 0 ? 30000 : 2000;
68
+ if (!(await next.isVisible({ timeout: visibleTimeout }))) {
69
+ return;
70
+ }
71
+ await next.click({ timeout: 30000 });
64
72
  }
65
73
  }
66
74
  organizationUuid() {
@@ -59,8 +59,16 @@ class HomePage {
59
59
  await this.organizationTab.click({ timeout: 90000 });
60
60
  }
61
61
  async closeInformationDialog() {
62
- if (await this.informationDialog.isVisible({ timeout: 30000 })) {
63
- await this.informationDialog.click({ timeout: 30000 });
62
+ // Console can render more than one informational popup at once (e.g., the
63
+ // customization modal plus a "New features" announcement). Close every visible
64
+ // 'Close' button. Bounded to guard against a regression that re-renders the popup.
65
+ for (let i = 0; i < 5; i++) {
66
+ const next = this.informationDialog.first();
67
+ const visibleTimeout = i === 0 ? 30000 : 2000;
68
+ if (!(await next.isVisible({ timeout: visibleTimeout }))) {
69
+ return;
70
+ }
71
+ await next.click({ timeout: 30000 });
64
72
  }
65
73
  }
66
74
  organizationUuid() {
@@ -59,8 +59,16 @@ class HomePage {
59
59
  await this.organizationTab.click({ timeout: 90000 });
60
60
  }
61
61
  async closeInformationDialog() {
62
- if (await this.informationDialog.isVisible({ timeout: 30000 })) {
63
- await this.informationDialog.click({ timeout: 30000 });
62
+ // Console can render more than one informational popup at once (e.g., the
63
+ // customization modal plus a "New features" announcement). Close every visible
64
+ // 'Close' button. Bounded to guard against a regression that re-renders the popup.
65
+ for (let i = 0; i < 5; i++) {
66
+ const next = this.informationDialog.first();
67
+ const visibleTimeout = i === 0 ? 30000 : 2000;
68
+ if (!(await next.isVisible({ timeout: visibleTimeout }))) {
69
+ return;
70
+ }
71
+ await next.click({ timeout: 30000 });
64
72
  }
65
73
  }
66
74
  organizationUuid() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.560",
3
+ "version": "0.0.562",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",