@camunda/e2e-test-suite 0.0.528 → 0.0.529

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.OCIdentityHomePage = void 0;
4
4
  const test_1 = require("@playwright/test");
5
5
  const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
6
+ const clickLocatorWithRetry_1 = require("../../utils/assertionHelpers/clickLocatorWithRetry");
6
7
  class OCIdentityHomePage {
7
8
  page;
8
9
  groupsTab;
@@ -62,8 +63,17 @@ class OCIdentityHomePage {
62
63
  await this.authorizationsTab.click();
63
64
  }
64
65
  async clickRolesTab() {
65
- await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.rolesTab);
66
- await this.rolesTab.click();
66
+ // OC Identity occasionally renders the banner without the secondary nav
67
+ // tabs on opensearch upgrade scenarios. Reload between attempts to force
68
+ // the SPA to rehydrate the navigation instead of waiting on a stuck DOM.
69
+ await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.rolesTab, {
70
+ visibilityTimeout: 15000,
71
+ totalTimeout: 90000,
72
+ maxRetries: 4,
73
+ postAction: async () => {
74
+ await this.page.reload({ waitUntil: 'domcontentloaded' });
75
+ },
76
+ });
67
77
  }
68
78
  async clickGroupsTab() {
69
79
  await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.groupsTab);
@@ -4,7 +4,7 @@ exports.OCIdentityRolesPage = void 0;
4
4
  const test_1 = require("@playwright/test");
5
5
  const UtilitiesPage_1 = require("../SM-8.8/UtilitiesPage");
6
6
  const expectLocatorWithPagination_1 = require("../../utils/assertionHelpers/expectLocatorWithPagination");
7
- const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
7
+ const clickLocatorWithRetry_1 = require("../../utils/assertionHelpers/clickLocatorWithRetry");
8
8
  class OCIdentityRolesPage {
9
9
  page;
10
10
  selectResourceTypeTab;
@@ -174,11 +174,17 @@ class OCIdentityRolesPage {
174
174
  await this.assignUserSubButton.click();
175
175
  }
176
176
  async clickAdminRole() {
177
- await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.adminRole, {
177
+ // The Roles list is occasionally empty on first render after the Roles
178
+ // tab loads (opensearch upgrade scenarios). Reload between attempts so
179
+ // the table refetches instead of waiting on a stale empty state.
180
+ await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.adminRole, {
178
181
  visibilityTimeout: 30000,
179
182
  totalTimeout: 120000,
183
+ maxRetries: 4,
184
+ postAction: async () => {
185
+ await this.page.reload({ waitUntil: 'domcontentloaded' });
186
+ },
180
187
  });
181
- await this.adminRole.click();
182
188
  }
183
189
  async clickClientsTab() {
184
190
  await this.clientsTab.click();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.528",
3
+ "version": "0.0.529",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",