@camunda/e2e-test-suite 0.0.1701 → 0.0.1702
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.
|
@@ -351,6 +351,20 @@ class ClusterSecretsPage {
|
|
|
351
351
|
const mapped = secrets
|
|
352
352
|
.map((secret) => `${secret.name}=${secret.value}`)
|
|
353
353
|
.join('\n');
|
|
354
|
+
// The secrets panel can render Carbon's "Oops ... something went wrong."
|
|
355
|
+
// state when a background request fails -- the same transient
|
|
356
|
+
// createNewSecret() handles below. It only clears on a reload, and the
|
|
357
|
+
// menu-open loop that follows merely reopens the dropdown, so it can
|
|
358
|
+
// never bring back an Import button the panel failed to render. Reload
|
|
359
|
+
// and re-select the tab until the panel's own Import control is present.
|
|
360
|
+
await (0, test_1.expect)(async () => {
|
|
361
|
+
if (await this.importButton.isVisible({ timeout: 5000 }).catch(() => false)) {
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
await this.page.reload({ waitUntil: 'domcontentloaded' });
|
|
365
|
+
await this.clusterSecretTab.first().click({ timeout: 15000 });
|
|
366
|
+
await (0, test_1.expect)(this.importButton).toBeVisible({ timeout: 15000 });
|
|
367
|
+
}).toPass({ timeout: 90000 });
|
|
354
368
|
// Hub's Import button opens a Radix dropdown whose "from File" item can
|
|
355
369
|
// detach before the click lands: the previous set's search-box fill
|
|
356
370
|
// re-filters the table right as the menu opens, which closes it (nightly
|