@camunda/e2e-test-suite 0.0.1335 → 0.0.1336

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.
@@ -287,25 +287,41 @@ class ClusterSecretsPage {
287
287
  // leaves the dialog up forever. Close it and let assertSecretsOrCreate
288
288
  // below do the verification: it checks every secret individually and
289
289
  // creates the ones that are genuinely missing, so nothing is skipped.
290
+ // The dialog lists each 409 as "<KEY> - a secret with this key already
291
+ // exists", so stop waiting once that renders instead of burning the full
292
+ // 60s on every partially-imported set.
293
+ const alreadyExists = this.page.getByText(/a secret with this key already exists/i);
290
294
  try {
291
- await (0, test_1.expect)(this.dialog).not.toBeVisible({
295
+ await (0, test_1.expect)(this.dialog.filter({ hasNot: alreadyExists })).not.toBeVisible({
292
296
  timeout: 60000,
293
297
  });
294
298
  }
295
299
  catch (error) {
300
+ console.log(`Import dialog did not settle after importing: ${error}`);
301
+ }
302
+ if (await this.dialog.isVisible().catch(() => false)) {
296
303
  console.log('Import dialog still open after importing; some secrets already ' +
297
- `exist on this cluster. Closing it and verifying individually: ${error}`);
304
+ 'exist on this cluster. Closing it and verifying individually.');
298
305
  await this.closeImportDialog();
299
306
  }
300
- await (0, test_1.expect)(this.createNewSecretButton).toBeVisible({
301
- timeout: 60000,
302
- });
303
307
  await this.page.reload();
304
308
  // Hub keeps the selected cluster tab out of the URL, so the reload lands
305
309
  // on Overview, where assertSecretsOrCreate finds no search box and tries
306
310
  // to create every secret. Re-select the tab, as pages/8.8 does (45eae7b).
307
- await this.clusterSecretTab.first().click({ timeout: 60000 });
308
- await (0, test_1.expect)(this.createNewSecretButton).toBeVisible({ timeout: 60000 });
311
+ // Nightly traces show the panel then either staying on Overview (tab
312
+ // clicked before Hub hydrated) or rendering Hub's "Oops ... something
313
+ // went wrong. Please try reloading!" boundary, so createNewSecretButton
314
+ // never appears; both clear on another reload + tab re-select.
315
+ await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.createNewSecretButton, {
316
+ preAction: async () => {
317
+ await this.clusterSecretTab.first().click({ timeout: 60000 });
318
+ },
319
+ postAction: async () => {
320
+ await this.page.reload({ waitUntil: 'domcontentloaded' });
321
+ },
322
+ totalTimeout: 300000,
323
+ visibilityTimeout: 60000,
324
+ });
309
325
  }
310
326
  }
311
327
  exports.ClusterSecretsPage = ClusterSecretsPage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1335",
3
+ "version": "0.0.1336",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",