@camunda/e2e-test-suite 0.0.1489 → 0.0.1491

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.
@@ -6,6 +6,7 @@ declare class OCIdentityRolesPage {
6
6
  readonly mappingSearchBox: Locator;
7
7
  readonly mappingSearchTrigger: Locator;
8
8
  readonly assignMappingModal: Locator;
9
+ readonly assignMappingModalHeading: Locator;
9
10
  readonly assignMappingRuleOption: (name: string) => Locator;
10
11
  readonly assignMappingModalAssignRuleButton: Locator;
11
12
  readonly rolesList: Locator;
@@ -14,6 +14,7 @@ class OCIdentityRolesPage {
14
14
  mappingSearchBox;
15
15
  mappingSearchTrigger;
16
16
  assignMappingModal;
17
+ assignMappingModalHeading;
17
18
  assignMappingRuleOption;
18
19
  assignMappingModalAssignRuleButton;
19
20
  rolesList;
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1489",
3
+ "version": "0.0.1491",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",