@camunda/e2e-test-suite 0.0.1177 → 0.0.1179
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.
|
@@ -64,14 +64,17 @@ class OCIdentityRolesPage {
|
|
|
64
64
|
name: SEARCH_MAPPING_RULE_LABEL,
|
|
65
65
|
}))
|
|
66
66
|
.first();
|
|
67
|
-
//
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
//
|
|
71
|
-
// popover
|
|
72
|
-
//
|
|
67
|
+
// The current design-system modal renders the cmdk <input cmdk-input> inline
|
|
68
|
+
// inside the dialog (data-slot="command-input", role="combobox"), so the
|
|
69
|
+
// trigger and the editable field are the same element - match that input
|
|
70
|
+
// scoped to the dialog. Older builds render a MultiSelect whose trigger div
|
|
71
|
+
// opens a Radix popover that portals to <body> as a sibling of the dialog,
|
|
72
|
+
// with the editable cmdk <input> inside it; that popover input is outside
|
|
73
|
+
// the dialog subtree, so match it page-wide. Pre-design-system builds render
|
|
74
|
+
// a dialog-scoped searchbox instead of either - fall back to that last.
|
|
73
75
|
this.mappingSearchBox = page
|
|
74
76
|
.locator('[data-slot="multi-select-content"] input[cmdk-input]')
|
|
77
|
+
.or(this.assignMappingModal.locator('input[cmdk-input]'))
|
|
75
78
|
.or(this.assignMappingModal.getByRole('searchbox', {
|
|
76
79
|
name: SEARCH_MAPPING_RULE_LABEL,
|
|
77
80
|
}))
|