@camunda/e2e-test-suite 0.0.1050 → 0.0.1051
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.
|
@@ -5,7 +5,7 @@ declare class OCIdentityRolesPage {
|
|
|
5
5
|
readonly assignMappingRuleButton: Locator;
|
|
6
6
|
readonly mappingSearchBox: Locator;
|
|
7
7
|
readonly assignMappingModal: Locator;
|
|
8
|
-
readonly
|
|
8
|
+
readonly assignMappingRuleOption: (name: string) => Locator;
|
|
9
9
|
readonly assignMappingModalAssignRuleButton: Locator;
|
|
10
10
|
readonly rolesList: Locator;
|
|
11
11
|
readonly roleCell: (name: string) => Locator;
|
|
@@ -13,7 +13,7 @@ class OCIdentityRolesPage {
|
|
|
13
13
|
assignMappingRuleButton;
|
|
14
14
|
mappingSearchBox;
|
|
15
15
|
assignMappingModal;
|
|
16
|
-
|
|
16
|
+
assignMappingRuleOption;
|
|
17
17
|
assignMappingModalAssignRuleButton;
|
|
18
18
|
rolesList;
|
|
19
19
|
roleCell;
|
|
@@ -55,8 +55,12 @@ class OCIdentityRolesPage {
|
|
|
55
55
|
this.createRoleButton = page.getByRole('button', {
|
|
56
56
|
name: /create role/i,
|
|
57
57
|
});
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
// The design-system assign-mapping-rule modal renders its result list in a
|
|
59
|
+
// Radix popover that portals to <body> as a sibling of the dialog, so the
|
|
60
|
+
// options are not inside assignMappingModal's DOM subtree - query them from
|
|
61
|
+
// the page. Each option repeats the id as both title and subtitle, so match
|
|
62
|
+
// on contained text rather than the accessible name.
|
|
63
|
+
this.assignMappingRuleOption = (name) => page.getByRole('option').filter({ hasText: name }).first();
|
|
60
64
|
this.assignMappingModalAssignRuleButton = this.assignMappingModal.getByRole('button', {
|
|
61
65
|
name: 'Assign mapping rule',
|
|
62
66
|
});
|
|
@@ -140,8 +144,12 @@ class OCIdentityRolesPage {
|
|
|
140
144
|
});
|
|
141
145
|
await this.assignMappingRuleButton.click({ timeout: 60000 });
|
|
142
146
|
await (0, test_1.expect)(this.assignMappingModal).toBeVisible({ timeout: 60000 });
|
|
143
|
-
|
|
144
|
-
|
|
147
|
+
// The design-system search input is a cmdk combobox that only issues
|
|
148
|
+
// its server-side query on real keystrokes, so type the id in rather
|
|
149
|
+
// than setting the value in one shot.
|
|
150
|
+
await this.mappingSearchBox.click();
|
|
151
|
+
await this.mappingSearchBox.pressSequentially(mappingId);
|
|
152
|
+
await this.assignMappingRuleOption(mappingId).click({ timeout: 30000 });
|
|
145
153
|
await this.assignMappingModalAssignRuleButton.click();
|
|
146
154
|
return;
|
|
147
155
|
}
|
|
@@ -122,7 +122,8 @@ SM_8_10_1.test.describe('Identity User Flow Tests', () => {
|
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
});
|
|
125
|
-
|
|
125
|
+
// Skipped due to bug #61565: https://github.com/camunda/camunda/issues/61565
|
|
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, }) => {
|
|
126
127
|
if (node_process_1.default.env.IS_RBA === 'true' ||
|
|
127
128
|
node_process_1.default.env.IS_MT === 'true' ||
|
|
128
129
|
node_process_1.default.env.IS_LICENSE_KEY === 'true') {
|