@camunda/e2e-test-suite 0.0.863 → 0.0.864

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.
@@ -34,7 +34,7 @@ declare class NavigationPage {
34
34
  goToOCAdmin(sleepTimeout?: number, credentials?: {
35
35
  username: string;
36
36
  password: string;
37
- }): Promise<void>;
37
+ }, maxRetries?: number): Promise<void>;
38
38
  goToClusters(sleepTimeout?: number, credentials?: {
39
39
  username: string;
40
40
  password: string;
@@ -175,8 +175,8 @@ class NavigationPage {
175
175
  ? lastError
176
176
  : new Error(`goToKeycloak failed after ${maxRetries} attempts`);
177
177
  }
178
- async goToOCAdmin(sleepTimeout, credentials) {
179
- await this.goTo(`${NORMALIZED_ORCHESTRATION_CONTEXT_PATH}/admin`, this.identityPageBanner, sleepTimeout, credentials, env_1.isOpenSearch ? 10 : 5);
178
+ async goToOCAdmin(sleepTimeout, credentials, maxRetries) {
179
+ await this.goTo(`${NORMALIZED_ORCHESTRATION_CONTEXT_PATH}/admin`, this.identityPageBanner, sleepTimeout, credentials, maxRetries ?? (env_1.isOpenSearch ? 10 : 5));
180
180
  }
181
181
  async goToClusters(sleepTimeout, credentials) {
182
182
  await this.goTo(`${MODELER_CONTEXT_PATH}/clusters`, this.modelerPageBanner, sleepTimeout, credentials);
@@ -128,8 +128,16 @@ if (process.env.IS_DS === 'true') {
128
128
  // application can take time to propagate; until it does, /admin
129
129
  // redirects to /admin/forbidden and the navigation tabs never render.
130
130
  // Re-navigate until the Roles tab is available to ride out that delay.
131
+ //
132
+ // goToOCAdmin's default retry count (5, with growing backoff) assumes
133
+ // a genuine login failure and can alone burn several minutes retrying
134
+ // one navigation attempt -- against a forbidden-redirect that clears
135
+ // the banner too, that single call can exhaust the whole outer
136
+ // toPass budget, leaving it effectively one shot instead of a real
137
+ // retry-until-propagated loop. Pass maxRetries=1 so each outer
138
+ // iteration fails fast and toPass gets many chances over 300s.
131
139
  await (0, test_1.expect)(async () => {
132
- await navigationPage.goToOCAdmin();
140
+ await navigationPage.goToOCAdmin(undefined, undefined, 1);
133
141
  await (0, test_1.expect)(ocIdentityHomePage.rolesTab).toBeVisible({
134
142
  timeout: 15000,
135
143
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.863",
3
+ "version": "0.0.864",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",