@camunda/e2e-test-suite 0.0.1063 → 0.0.1064
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.
|
@@ -46,12 +46,20 @@ class OCIdentityRolesPage {
|
|
|
46
46
|
this.assignMappingRuleButton = page.getByRole('button', {
|
|
47
47
|
name: /^(Assign mapping rule|assignMapping)$/,
|
|
48
48
|
});
|
|
49
|
-
this.mappingSearchBox = page.getByRole('searchbox', {
|
|
50
|
-
name: 'Search by mapping rule ID',
|
|
51
|
-
});
|
|
52
49
|
this.assignMappingModal = page.getByRole('dialog', {
|
|
53
50
|
name: 'Assign mapping rule',
|
|
54
51
|
});
|
|
52
|
+
// The design-system modal's search field is a cmdk combobox
|
|
53
|
+
// (role="combobox"), not the searchbox the pre design-system modal
|
|
54
|
+
// rendered; the Mapping rules list page keeps a page-level searchbox with
|
|
55
|
+
// the same accessible name, so scope this to the dialog and accept either
|
|
56
|
+
// role.
|
|
57
|
+
this.mappingSearchBox = this.assignMappingModal
|
|
58
|
+
.getByRole('combobox', { name: 'Search by mapping rule ID' })
|
|
59
|
+
.or(this.assignMappingModal.getByRole('searchbox', {
|
|
60
|
+
name: 'Search by mapping rule ID',
|
|
61
|
+
}))
|
|
62
|
+
.first();
|
|
55
63
|
this.createRoleButton = page.getByRole('button', {
|
|
56
64
|
name: /create role/i,
|
|
57
65
|
});
|
|
@@ -125,19 +133,22 @@ class OCIdentityRolesPage {
|
|
|
125
133
|
async assignMappingRuleToRole(roleId, mappingId) {
|
|
126
134
|
const maxRetries = 3;
|
|
127
135
|
for (let attempt = 0; attempt < maxRetries; attempt++) {
|
|
128
|
-
await this.clickRole(roleId);
|
|
129
|
-
// After clicking the role, the detail page may show a 404 if the role
|
|
130
|
-
// was just created and the backend hasn't fully provisioned it yet.
|
|
131
|
-
const gotNotFound = await this.notFoundText
|
|
132
|
-
.isVisible({ timeout: 3000 })
|
|
133
|
-
.catch(() => false);
|
|
134
|
-
if (gotNotFound) {
|
|
135
|
-
console.warn(`Attempt ${attempt + 1}: Role detail page returned 404 for "${roleId}", retrying...`);
|
|
136
|
-
await this.page.goBack();
|
|
137
|
-
await (0, sleep_1.sleep)(3000);
|
|
138
|
-
continue;
|
|
139
|
-
}
|
|
140
136
|
try {
|
|
137
|
+
// Inside the try so a retry that lands on the role detail page rather
|
|
138
|
+
// than the roles list reports the failure that caused it, instead of
|
|
139
|
+
// masking it as a roles-table timeout from this lookup.
|
|
140
|
+
await this.clickRole(roleId);
|
|
141
|
+
// After clicking the role, the detail page may show a 404 if the role
|
|
142
|
+
// was just created and the backend hasn't fully provisioned it yet.
|
|
143
|
+
const gotNotFound = await this.notFoundText
|
|
144
|
+
.isVisible({ timeout: 3000 })
|
|
145
|
+
.catch(() => false);
|
|
146
|
+
if (gotNotFound) {
|
|
147
|
+
console.warn(`Attempt ${attempt + 1}: Role detail page returned 404 for "${roleId}", retrying...`);
|
|
148
|
+
await this.page.goBack();
|
|
149
|
+
await (0, sleep_1.sleep)(3000);
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
141
152
|
await this.clickMappingRulesTab();
|
|
142
153
|
await (0, test_1.expect)(this.assignMappingRuleButton).toBeVisible({
|
|
143
154
|
timeout: 60000,
|
|
@@ -122,8 +122,7 @@ SM_8_10_1.test.describe('Identity User Flow Tests', () => {
|
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
});
|
|
125
|
-
|
|
126
|
-
SM_8_10_1.test.skip('User Roles User Flow on Orchestration Cluster', async ({ page, navigationPage, ocIdentityMappingRulesPage, ocIdentityHomePage, ocIdentityRolesPage, taskPanelPage, operateHomePage, settingsPage, browser, keycloakLoginPage, keycloakAdminPage, managementIdentityPage, }) => {
|
|
125
|
+
(0, SM_8_10_1.test)('User Roles User Flow on Orchestration Cluster', async ({ page, navigationPage, ocIdentityMappingRulesPage, ocIdentityHomePage, ocIdentityRolesPage, taskPanelPage, operateHomePage, settingsPage, browser, keycloakLoginPage, keycloakAdminPage, managementIdentityPage, }) => {
|
|
127
126
|
if (node_process_1.default.env.IS_RBA === 'true' ||
|
|
128
127
|
node_process_1.default.env.IS_MT === 'true' ||
|
|
129
128
|
node_process_1.default.env.IS_LICENSE_KEY === 'true') {
|