@camunda/e2e-test-suite 0.0.1351 → 0.0.1352

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.
@@ -5,6 +5,7 @@ const test_1 = require("@playwright/test");
5
5
  const sleep_1 = require("../../utils/sleep");
6
6
  const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
7
7
  const clickLocatorWithRetry_1 = require("../../utils/assertionHelpers/clickLocatorWithRetry");
8
+ const CLUSTER_CREATING_STATUS = /^Creating(…|\.\.\.)?$/;
8
9
  class ClusterPage {
9
10
  page;
10
11
  defaultClusterType = 'G3-Dev';
@@ -58,7 +59,9 @@ class ClusterPage {
58
59
  this.createClusterButton = page.getByRole('button', {
59
60
  name: 'Create cluster',
60
61
  });
61
- this.clusterCreatingStatusText = page.getByText('Creating', { exact: true });
62
+ // Console renders the in-progress status as "Creating…"; older builds
63
+ // render a bare "Creating".
64
+ this.clusterCreatingStatusText = page.getByText(CLUSTER_CREATING_STATUS);
62
65
  this.clusterHealthyStatusText = page.getByText('Healthy', { exact: true });
63
66
  this.clusterHealthyIndicatorSelector = '[class="healthy healthIndicator"]';
64
67
  this.clusterGenerationCompleteMessage = page.getByText('Test Cluster is healthy and ready to use');
@@ -312,13 +315,12 @@ class ClusterPage {
312
315
  }
313
316
  async clickClustersBreadcrumb(clusterName) {
314
317
  const clusterRow = this.cluster(clusterName);
315
- const clusterRowVisible = clusterRow
316
- .getByText('Creating', { exact: true })
317
- .or(clusterRow.getByText('Healthy', { exact: true }));
318
+ const creatingRow = clusterRow.getByText(CLUSTER_CREATING_STATUS);
319
+ const clusterRowVisible = creatingRow.or(clusterRow.getByText('Healthy', { exact: true }));
318
320
  try {
319
321
  await (0, test_1.expect)(this.clustersBreadcrumb).toBeVisible({ timeout: 60000 });
320
322
  await this.clustersBreadcrumb.click({ timeout: 60000 });
321
- await (0, test_1.expect)(clusterRow.getByText('Creating', { exact: true })).toBeVisible({ timeout: 30000 });
323
+ await (0, test_1.expect)(creatingRow).toBeVisible({ timeout: 30000 });
322
324
  }
323
325
  catch (error) {
324
326
  await this.clickClusterBanner();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1351",
3
+ "version": "0.0.1352",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",