@camunda/e2e-test-suite 0.0.1779 → 0.0.1781
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.
|
@@ -529,7 +529,23 @@ class ClusterPage {
|
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
async clickClusterLink(name) {
|
|
532
|
-
|
|
532
|
+
const link = this.clusterLink(name);
|
|
533
|
+
// The Hub clusters list fetches its rows from the Console API, which under
|
|
534
|
+
// load answers 429 and leaves the list empty past clickLocatorWithRetry's
|
|
535
|
+
// 3x10s budget; re-open it (reloading to re-trigger a dropped fetch) until
|
|
536
|
+
// the row renders before clicking, as clickClustersBreadcrumb does.
|
|
537
|
+
await (0, test_1.expect)(async () => {
|
|
538
|
+
const rendered = await link
|
|
539
|
+
.waitFor({ state: 'visible', timeout: 15000 })
|
|
540
|
+
.then(() => true)
|
|
541
|
+
.catch(() => false);
|
|
542
|
+
if (!rendered) {
|
|
543
|
+
await this.page.reload({ waitUntil: 'domcontentloaded' });
|
|
544
|
+
await this.clickClusterBanner();
|
|
545
|
+
}
|
|
546
|
+
await (0, test_1.expect)(link).toBeVisible({ timeout: 15000 });
|
|
547
|
+
}).toPass({ timeout: 180000 });
|
|
548
|
+
await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, link, {
|
|
533
549
|
postAction: async () => {
|
|
534
550
|
await this.clickClusterBanner();
|
|
535
551
|
},
|