@camunda/e2e-test-suite 0.0.1801 → 0.0.1802
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
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
await (0, test_1.expect)(
|
|
112
|
-
|
|
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);
|