@camunda/e2e-test-suite 0.0.1700 → 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
@@ -6,6 +6,13 @@ const apiHelpers_1 = require("../../utils/apiHelpers");
6
6
  const randomName_1 = require("../../utils/randomName");
7
7
  SM_8_11_1.test.describe.configure({ mode: 'parallel' });
8
8
  SM_8_11_1.test.describe('API optimize SM Tests', () => {
9
+ // Optimize is not deployed in every scenario: the Hub Helm install sets
10
+ // optimize.enabled=false, so render-e2e-env.sh sets IS_OPTIMIZE=false.
11
+ // Match every other Optimize spec and register no tests when it is absent,
12
+ // so the suite reports success instead of timing out on the Optimize login.
13
+ if (process.env.IS_OPTIMIZE === 'false') {
14
+ return;
15
+ }
9
16
  const baseUrl = process.env.CAMUNDA_OPTIMIZE_BASE_URL;
10
17
  (0, SM_8_11_1.test)('Dashboard Scenarios Flow Tests', async ({ request, browser }) => {
11
18
  const page = await browser.newPage();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1700",
3
+ "version": "0.0.1702",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",