@camunda/e2e-test-suite 0.0.641 → 0.0.642
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.
|
@@ -91,21 +91,19 @@ class IdentityHomePage {
|
|
|
91
91
|
}
|
|
92
92
|
async selectOptionFromDropdown(option) {
|
|
93
93
|
// The Identity "Assign permissions to application" dialog renders the
|
|
94
|
-
// API list as a Carbon
|
|
95
|
-
//
|
|
96
|
-
//
|
|
97
|
-
//
|
|
98
|
-
//
|
|
99
|
-
//
|
|
100
|
-
//
|
|
94
|
+
// API list as a Carbon Select, which wraps a NATIVE <select> with native
|
|
95
|
+
// <option class="cds--select-option"> children. Native <option> elements
|
|
96
|
+
// are never "visible" to Playwright (the browser draws the option list as
|
|
97
|
+
// an OS-level widget, not as visible DOM), so clicking one via
|
|
98
|
+
// getByRole('option').click() always times out waiting for visibility —
|
|
99
|
+
// observed in nightly run 26731057113, where the option resolved but the
|
|
100
|
+
// click never succeeded ("element is not visible").
|
|
101
101
|
//
|
|
102
|
-
//
|
|
103
|
-
//
|
|
104
|
-
//
|
|
105
|
-
|
|
106
|
-
await this.
|
|
107
|
-
.getByRole('option', { name: option, exact: true })
|
|
108
|
-
.click({ timeout: 10000 });
|
|
102
|
+
// Locator.selectOption() is the correct primitive for a native <select>:
|
|
103
|
+
// it sets the value and dispatches the `input`/`change` events that
|
|
104
|
+
// Carbon's onChange handler listens for, closing the picker and
|
|
105
|
+
// re-rendering the form with the write/read permission rows.
|
|
106
|
+
await this.select.selectOption({ label: option });
|
|
109
107
|
await (0, sleep_1.sleep)(1000);
|
|
110
108
|
}
|
|
111
109
|
}
|