@camunda/e2e-test-suite 0.0.1722 → 0.0.1723

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.
@@ -6,6 +6,7 @@ const sleep_1 = require("../../utils/sleep");
6
6
  const clickLocatorWithRetry_1 = require("../../utils/assertionHelpers/clickLocatorWithRetry");
7
7
  const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
8
8
  const ClientCredentialsDetailsPage_1 = require("./ClientCredentialsDetailsPage");
9
+ const consoleApiHelpers_1 = require("../../utils/consoleApiHelpers");
9
10
  const sessionRecovery_1 = require("../../utils/sessionRecovery");
10
11
  // Hub's own /login and /login-callback routes, which render only a spinner
11
12
  // while the Auth0 hand-off of a full page load is in flight.
@@ -772,8 +773,10 @@ class ClusterDetailsPage {
772
773
  for (const component of components) {
773
774
  await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.page.getByText(`${component}Healthy`, { exact: true }), {
774
775
  visibilityTimeout: 60000,
775
- totalTimeout: 300000,
776
- maxRetries: 5,
776
+ // Raised from 300s: attempts may now wait out the rate limiter
777
+ // (waitForRateLimitToClear) before reloading.
778
+ totalTimeout: 600000,
779
+ maxRetries: 7,
777
780
  preAction: async () => {
778
781
  // Hub logs the tab out when its backend fails the session call
779
782
  // (/api/internal/self 5xx), and from then on a reload only
@@ -789,6 +792,13 @@ class ClusterDetailsPage {
789
792
  .catch(() => { });
790
793
  return;
791
794
  }
795
+ // A reload is a full Hub load plus Auth0 round-trip. Fired into an
796
+ // exhausted Envoy rate limit it just re-renders "fetch error", so
797
+ // the badge never appears and the whole retry budget is spent
798
+ // reloading into a drained bucket (the HTTP 429 burst this run hit
799
+ // on GET /clusters). Let the limiter admit a cheap request again
800
+ // first, mirroring pages/8.10/ClusterDetailsPage.ts.
801
+ await (0, consoleApiHelpers_1.waitForRateLimitToClear)(this.page);
792
802
  await this.page.reload();
793
803
  },
794
804
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1722",
3
+ "version": "0.0.1723",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",