@camunda/e2e-test-suite 0.0.1353 → 0.0.1354
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.
|
@@ -6,6 +6,9 @@ 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
8
|
const clusterVersions_1 = require("../../utils/clusterVersions");
|
|
9
|
+
// Classic Console renders the status as "Creating"; Camunda Hub's cluster
|
|
10
|
+
// table renders "Creating…" (Unicode ellipsis), which an exact match misses.
|
|
11
|
+
const CREATING_STATUS = /^Creating(…|\.\.\.)?$/;
|
|
9
12
|
class ClusterPage {
|
|
10
13
|
page;
|
|
11
14
|
defaultClusterType = 'G3-Dev';
|
|
@@ -59,7 +62,7 @@ class ClusterPage {
|
|
|
59
62
|
this.createClusterButton = page.getByRole('button', {
|
|
60
63
|
name: 'Create cluster',
|
|
61
64
|
});
|
|
62
|
-
this.clusterCreatingStatusText = page.getByText(
|
|
65
|
+
this.clusterCreatingStatusText = page.getByText(CREATING_STATUS);
|
|
63
66
|
this.clusterHealthyStatusText = page.getByText('Healthy', { exact: true });
|
|
64
67
|
this.clusterHealthyIndicatorSelector = '[class="healthy healthIndicator"]';
|
|
65
68
|
this.clusterGenerationCompleteMessage = page.getByText('Test Cluster is healthy and ready to use');
|
|
@@ -361,12 +364,14 @@ class ClusterPage {
|
|
|
361
364
|
async clickClustersBreadcrumb(clusterName) {
|
|
362
365
|
const clusterRow = this.cluster(clusterName);
|
|
363
366
|
const clusterRowVisible = clusterRow
|
|
364
|
-
.getByText(
|
|
367
|
+
.getByText(CREATING_STATUS)
|
|
365
368
|
.or(clusterRow.getByText('Healthy', { exact: true }));
|
|
366
369
|
try {
|
|
367
370
|
await (0, test_1.expect)(this.clustersBreadcrumb).toBeVisible({ timeout: 60000 });
|
|
368
371
|
await this.clustersBreadcrumb.click({ timeout: 60000 });
|
|
369
|
-
await (0, test_1.expect)(clusterRow.getByText(
|
|
372
|
+
await (0, test_1.expect)(clusterRow.getByText(CREATING_STATUS)).toBeVisible({
|
|
373
|
+
timeout: 30000,
|
|
374
|
+
});
|
|
370
375
|
}
|
|
371
376
|
catch (error) {
|
|
372
377
|
await this.clickClusterBanner();
|