@camunda/e2e-test-suite 0.0.1404 → 0.0.1406

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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OperateHomePage = void 0;
4
4
  const test_1 = require("@playwright/test");
5
5
  const clickLocatorWithRetry_1 = require("../../utils/assertionHelpers/clickLocatorWithRetry");
6
+ const sessionRecovery_1 = require("../../utils/sessionRecovery");
6
7
  class OperateHomePage {
7
8
  page;
8
9
  operateHeader;
@@ -37,10 +38,20 @@ class OperateHomePage {
37
38
  this.messageBanner = page.getByRole('button', { name: 'Close' });
38
39
  }
39
40
  async clickProcessesTab() {
41
+ // Reload between attempts: a click that keeps failing means the Operate
42
+ // shell is stuck (half-loaded, overlaid, or bounced to login), and
43
+ // re-clicking the same frozen page cannot recover from that.
40
44
  await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.processesTab, {
45
+ totalTimeout: 180000,
46
+ visibilityTimeout: 30000,
47
+ maxRetries: 4,
41
48
  preAction: async () => {
42
49
  await this.clickMessageBanner();
43
50
  },
51
+ postAction: async () => {
52
+ await this.page.reload({ waitUntil: 'domcontentloaded' });
53
+ await (0, sessionRecovery_1.restoreSessionIfLoggedOut)(this.page);
54
+ },
44
55
  });
45
56
  }
46
57
  async closeInformationDialog() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1404",
3
+ "version": "0.0.1406",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",