@camunda/e2e-test-suite 0.0.1351 → 0.0.1353
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
|
-
|
|
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
|
|
316
|
-
|
|
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)(
|
|
323
|
+
await (0, test_1.expect)(creatingRow).toBeVisible({ timeout: 30000 });
|
|
322
324
|
}
|
|
323
325
|
catch (error) {
|
|
324
326
|
await this.clickClusterBanner();
|