@camunda/e2e-test-suite 0.0.1801 → 0.0.1803

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.
@@ -105,11 +105,22 @@ class OCIdentityRolesPage {
105
105
  // The roles table paginates at 10 rows and the cluster already ships six
106
106
  // built-in roles, so a role this suite created is regularly on page 2 and
107
107
  // is never in the DOM on page 1 - walk the pages before asserting.
108
- await (0, findLocatorWithPagination_1.findLocatorWithPagination)(this.page, this.roleCell(roleID).first(), {
109
- timeout: 60000,
110
- });
111
- await (0, test_1.expect)(this.roleCell(roleID).first()).toBeVisible({ timeout: 60000 });
112
- await this.roleCell(roleID).first().click();
108
+ // The scan gives each page 5s, so it must not start until the table has
109
+ // rendered rows, or it sees no next page and stops on a still-loading page 1.
110
+ const cell = this.roleCell(roleID).first();
111
+ await (0, test_1.expect)(async () => {
112
+ await (0, test_1.expect)(this.rolesList.getByRole('cell').first()).toBeVisible({
113
+ timeout: 30000,
114
+ });
115
+ const found = await (0, findLocatorWithPagination_1.findLocatorWithPagination)(this.page, cell, {
116
+ timeout: 60000,
117
+ });
118
+ if (!found) {
119
+ await this.page.reload({ waitUntil: 'domcontentloaded' });
120
+ throw new Error(`Role "${roleID}" not found on any roles table page`);
121
+ }
122
+ }).toPass({ timeout: 240000, intervals: [5000] });
123
+ await cell.click();
113
124
  }
114
125
  async assignMappingRuleToRole(roleId, mappingId) {
115
126
  await this.clickRole(roleId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1801",
3
+ "version": "0.0.1803",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",