@camunda/e2e-test-suite 0.0.1493 → 0.0.1495
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.
|
@@ -8,6 +8,7 @@ declare class OCIdentityRolesPage {
|
|
|
8
8
|
readonly assignMappingModal: Locator;
|
|
9
9
|
readonly assignMappingRuleOption: (name: string) => Locator;
|
|
10
10
|
readonly assignMappingModalAssignRuleButton: Locator;
|
|
11
|
+
readonly assignMappingModalHeading: Locator;
|
|
11
12
|
readonly rolesList: Locator;
|
|
12
13
|
readonly roleCell: (name: string) => Locator;
|
|
13
14
|
readonly mappingRuleRow: (name: string) => Locator;
|
|
@@ -16,6 +16,7 @@ class OCIdentityRolesPage {
|
|
|
16
16
|
assignMappingModal;
|
|
17
17
|
assignMappingRuleOption;
|
|
18
18
|
assignMappingModalAssignRuleButton;
|
|
19
|
+
assignMappingModalHeading;
|
|
19
20
|
rolesList;
|
|
20
21
|
roleCell;
|
|
21
22
|
mappingRuleRow;
|
|
@@ -50,6 +51,9 @@ class OCIdentityRolesPage {
|
|
|
50
51
|
this.assignMappingModal = page.getByRole('dialog', {
|
|
51
52
|
name: 'Assign mapping rule',
|
|
52
53
|
});
|
|
54
|
+
this.assignMappingModalHeading = this.assignMappingModal
|
|
55
|
+
.getByRole('heading', { name: 'Assign mapping rule' })
|
|
56
|
+
.first();
|
|
53
57
|
// The design-system modal renders a MultiSelect whose trigger is a
|
|
54
58
|
// div[role="combobox"], not the searchbox the pre design-system modal
|
|
55
59
|
// rendered; the Mapping rules list page keeps a page-level searchbox with
|
|
@@ -207,6 +211,19 @@ class OCIdentityRolesPage {
|
|
|
207
211
|
await (0, test_1.expect)(this.assignMappingModalAssignRuleButton).toBeEnabled({
|
|
208
212
|
timeout: 30000,
|
|
209
213
|
});
|
|
214
|
+
// The MultiSelect keeps its result popover open after a pick, and the
|
|
215
|
+
// popover overlaps the modal footer, so the submit click is
|
|
216
|
+
// intercepted by the selected option. Click outside the popover but
|
|
217
|
+
// inside the dialog (its heading) to dismiss only the popover.
|
|
218
|
+
const optionStillOpen = await this.assignMappingRuleOption(mappingId)
|
|
219
|
+
.isVisible()
|
|
220
|
+
.catch(() => false);
|
|
221
|
+
if (optionStillOpen) {
|
|
222
|
+
await this.assignMappingModalHeading.click({ timeout: 30000 });
|
|
223
|
+
await (0, test_1.expect)(this.assignMappingRuleOption(mappingId)).toBeHidden({
|
|
224
|
+
timeout: 30000,
|
|
225
|
+
});
|
|
226
|
+
}
|
|
210
227
|
await this.assignMappingModalAssignRuleButton.click({ timeout: 30000 });
|
|
211
228
|
return;
|
|
212
229
|
}
|