@camunda/e2e-test-suite 0.0.701 → 0.0.702

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.OCIdentityGroupsPage = void 0;
4
4
  const test_1 = require("@playwright/test");
5
5
  const sleep_1 = require("../../utils/sleep");
6
+ const clickLocatorWithRetry_1 = require("../../utils/assertionHelpers/clickLocatorWithRetry");
6
7
  class OCIdentityGroupsPage {
7
8
  page;
8
9
  groupsList;
@@ -157,7 +158,16 @@ class OCIdentityGroupsPage {
157
158
  }
158
159
  }
159
160
  async assignUserToGroup(userName) {
160
- await this.assignUserButton.click();
161
+ // The group detail page (and its members API) can be slow to render the
162
+ // "Assign user" button right after navigating into a freshly created
163
+ // group, so retry the click and reload between attempts instead of
164
+ // relying on a single default-timeout click.
165
+ await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.assignUserButton, {
166
+ postAction: async () => {
167
+ await this.page.reload();
168
+ },
169
+ });
170
+ await (0, test_1.expect)(this.searchBox).toBeVisible({ timeout: 10000 });
161
171
  await this.searchBox.fill(userName);
162
172
  await this.assignUserButtonModal.click();
163
173
  await (0, sleep_1.sleep)(8000);
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OCIdentityGroupsPage = void 0;
4
4
  const test_1 = require("@playwright/test");
5
5
  const sleep_1 = require("../../utils/sleep");
6
+ const clickLocatorWithRetry_1 = require("../../utils/assertionHelpers/clickLocatorWithRetry");
6
7
  class OCIdentityGroupsPage {
7
8
  page;
8
9
  groupsList;
@@ -158,7 +159,16 @@ class OCIdentityGroupsPage {
158
159
  }
159
160
  }
160
161
  async assignUserToGroup(userName) {
161
- await this.assignUserButton.click();
162
+ // The group detail page (and its members API) can be slow to render the
163
+ // "Assign user" button right after navigating into a freshly created
164
+ // group, so retry the click and reload between attempts instead of
165
+ // relying on a single default-timeout click.
166
+ await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.assignUserButton, {
167
+ postAction: async () => {
168
+ await this.page.reload();
169
+ },
170
+ });
171
+ await (0, test_1.expect)(this.searchBox).toBeVisible({ timeout: 10000 });
162
172
  await this.searchBox.fill(userName);
163
173
  await this.assignUserButtonModal.click();
164
174
  await (0, sleep_1.sleep)(8000);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.701",
3
+ "version": "0.0.702",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",