@camunda/e2e-test-suite 0.0.1345 → 0.0.1347

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.
@@ -305,14 +305,23 @@ class NavigationPage {
305
305
  timeout: 60000,
306
306
  waitUntil: 'domcontentloaded',
307
307
  });
308
- let gatewayReloads = 0;
309
- while (gatewayReloads < 8 && (await this.isGatewayErrorPage())) {
308
+ // On a fresh install Optimize can sit behind an nginx 503 for minutes
309
+ // after the other apps are up. `goTo` rides that out across its retry
310
+ // attempts; this helper has no retry loop, so it waits on the wall clock
311
+ // instead. If the gateway page outlasts the budget, fail on it here: the
312
+ // caller's denial assertion would otherwise time out with a "not found"
313
+ // that hides the outage.
314
+ const gatewayBudgetMs = constants_1._1_SECOND_IN_MS * 180;
315
+ const gatewayDeadline = Date.now() + gatewayBudgetMs;
316
+ while (Date.now() < gatewayDeadline && (await this.isGatewayErrorPage())) {
310
317
  await (0, sleep_1.sleep)(constants_1._1_SECOND_IN_MS * 5);
311
318
  await this.page.goto(OPTIMIZE_CONTEXT_PATH, {
312
319
  timeout: 60000,
313
320
  waitUntil: 'domcontentloaded',
314
321
  });
315
- gatewayReloads++;
322
+ }
323
+ if (await this.isGatewayErrorPage()) {
324
+ throw new Error(`${OPTIMIZE_CONTEXT_PATH} still served a 50x gateway page after ${gatewayBudgetMs}ms`);
316
325
  }
317
326
  await new LoginPage_1.LoginPage(this.page).login(username, password);
318
327
  }
@@ -76,15 +76,12 @@ SM_8_10_1.test.describe('Identity User Flow Tests', () => {
76
76
  });
77
77
  if (node_process_1.default.env.IS_OPTIMIZE !== 'false') {
78
78
  await SM_8_10_1.test.step('Ensure Optimize is not Accessible', async () => {
79
- // Re-skipped: camunda/camunda#60317 is closed as completed, but this
80
- // still reproduces as of 2026-08-31 (run 33382455150) -- and worse
81
- // than the original description ("message not rendering"): the
82
- // zero-role test user gets the full Optimize dashboard, not just a
83
- // missing error message. The Modeler no-access check directly above
84
- // this step correctly blocks the same user, so this looks like a
85
- // real, unresolved authorization gap specific to Optimize, not a
86
- // test setup issue. Flagged for follow-up rather than re-fixed here.
87
- SM_8_10_1.test.skip(true, 'Optimize renders full dashboard for a zero-role user instead of denying access -- camunda/camunda#60317 still reproduces');
79
+ // Skipped due to bug #60317: https://github.com/camunda/camunda/issues/60317
80
+ // Still reproduces on 8.10.1-SNAPSHOT, which carries the fix attempt
81
+ // camunda/camunda#63400: a user whose Optimize role was removed gets
82
+ // the full dashboard (run 37296183382). Remove this skip once the issue
83
+ // is closed; the step then verifies the denial again.
84
+ SM_8_10_1.test.skip(true, 'Optimize grants full access to a user without the Optimize role -- camunda/camunda#60317');
88
85
  await navigationPage.goToOptimizeWithoutAccess(credentials);
89
86
  await (0, test_1.expect)(page.getByText('User has no authorization to access Optimize. Please check your Identity configuration')).toBeVisible({
90
87
  timeout: 60000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1345",
3
+ "version": "0.0.1347",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",