@camunda/e2e-test-suite 0.0.1350 → 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.
|
@@ -323,7 +323,9 @@ class ClusterPage {
|
|
|
323
323
|
// (the whole app shell does, once a second row carries the same name),
|
|
324
324
|
// which turns this wait into a strict-mode violation.
|
|
325
325
|
const clusterRow = this.clusterRow(clusterName);
|
|
326
|
-
|
|
326
|
+
// The 8.11 Console renders the in-progress status as "Creating…" (with
|
|
327
|
+
// an ellipsis), so an exact 'Creating' match never resolves.
|
|
328
|
+
const creatingRow = clusterRow.getByText(/^Creating(…|\.\.\.)?$/);
|
|
327
329
|
const clusterRowVisible = creatingRow.or(clusterRow.getByText('Healthy', { exact: true }));
|
|
328
330
|
try {
|
|
329
331
|
await (0, test_1.expect)(this.clustersBreadcrumb).toBeVisible({ timeout: 60000 });
|
|
@@ -298,13 +298,14 @@ class ClusterPage {
|
|
|
298
298
|
}
|
|
299
299
|
async clickClustersBreadcrumb(clusterName) {
|
|
300
300
|
const clusterRow = this.cluster(clusterName);
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
301
|
+
// Camunda Hub's clusters table renders the in-progress status as
|
|
302
|
+
// "Creating…" (with an ellipsis), so an exact 'Creating' match never hits.
|
|
303
|
+
const creatingStatus = clusterRow.getByText(/^Creating/);
|
|
304
|
+
const clusterRowVisible = creatingStatus.or(clusterRow.getByText('Healthy', { exact: true }));
|
|
304
305
|
try {
|
|
305
306
|
await (0, test_1.expect)(this.clustersBreadcrumb).toBeVisible({ timeout: 60000 });
|
|
306
307
|
await this.clustersBreadcrumb.click({ timeout: 60000 });
|
|
307
|
-
await (0, test_1.expect)(
|
|
308
|
+
await (0, test_1.expect)(creatingStatus).toBeVisible({ timeout: 30000 });
|
|
308
309
|
}
|
|
309
310
|
catch (error) {
|
|
310
311
|
await this.clickClusterBanner();
|
|
@@ -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();
|