@camunda/e2e-test-suite 0.0.591 → 0.0.593

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.
@@ -30,6 +30,7 @@ declare class AppsPage {
30
30
  clickOperate(clusterName: string): Promise<void>;
31
31
  clickOptimize(clusterName: string): Promise<void>;
32
32
  clickCamundaApps(maxRetries?: number): Promise<void>;
33
+ private dismissBlockingOverlays;
33
34
  clickConsoleLink(): Promise<void>;
34
35
  assertOperatePresent(shouldBeVisible?: boolean): Promise<void>;
35
36
  assertTasklistPresent(shouldBeVisible?: boolean): Promise<void>;
@@ -271,6 +271,7 @@ class AppsPage {
271
271
  }
272
272
  async clickCamundaApps(maxRetries = 3) {
273
273
  await (0, sleep_1.sleep)(2000);
274
+ await this.dismissBlockingOverlays();
274
275
  const appButtons = [
275
276
  this.camundaComponentsButton,
276
277
  this.camundaAppsButton,
@@ -285,6 +286,17 @@ class AppsPage {
285
286
  }
286
287
  }
287
288
  }
289
+ async dismissBlockingOverlays() {
290
+ for (const locator of [
291
+ this.page.getByRole('button', { name: 'Got it - Dismiss' }),
292
+ this.page.getByRole('button', { name: 'Close' }).first(),
293
+ ]) {
294
+ await locator
295
+ .waitFor({ state: 'visible', timeout: 3000 })
296
+ .then(() => locator.click())
297
+ .catch(() => { });
298
+ }
299
+ }
288
300
  async clickConsoleLink() {
289
301
  const maxRetries = 3;
290
302
  for (let retries = 0; retries < maxRetries; retries++) {
@@ -88,7 +88,9 @@ _8_9_1.test.describe('Console User Flow Tests @tasklistV2', () => {
88
88
  await clusterPage.clickClusterLink(alertFlowClusterName);
89
89
  await clusterDetailsPage.clickAlertsTab();
90
90
  await clusterDetailsPage.deleteAlerts();
91
- (0, test_1.expect)(await clusterDetailsPage.alertsList.count()).toBe(0);
91
+ await (0, test_1.expect)(clusterDetailsPage.alertsList).toHaveCount(0, {
92
+ timeout: 15000,
93
+ });
92
94
  });
93
95
  await _8_9_1.test.step('Create First Email Alert', async () => {
94
96
  await clusterDetailsPage.createAlert(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.591",
3
+ "version": "0.0.593",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",