@uxf/e2e-playwright 11.126.0 → 11.128.0
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.
- package/package.json +5 -5
- package/ui/combobox.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/e2e-playwright",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.128.0",
|
|
4
4
|
"description": "UXF Playwright helpers",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@playwright/test": "1.62.1",
|
|
20
|
-
"@uxf/core": "11.
|
|
21
|
-
"@uxf/ui": "11.
|
|
20
|
+
"@uxf/core": "11.128.0",
|
|
21
|
+
"@uxf/ui": "11.128.0",
|
|
22
22
|
"dayjs": "^1.11.21"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@playwright/test": "1.62.1",
|
|
26
|
-
"@uxf/core": "11.
|
|
27
|
-
"@uxf/ui": "11.
|
|
26
|
+
"@uxf/core": "11.128.0",
|
|
27
|
+
"@uxf/ui": "11.128.0",
|
|
28
28
|
"dayjs": "^1.11.21"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/ui/combobox.js
CHANGED
|
@@ -11,7 +11,10 @@ class ComboboxModel extends form_component_model_1.FormComponentModel {
|
|
|
11
11
|
}
|
|
12
12
|
async performChange(value, textFilter) {
|
|
13
13
|
await this.inputLocator.fill(value);
|
|
14
|
-
|
|
14
|
+
// Match on the class alone, never on the element name. HeadlessUI rendered dropdown options
|
|
15
|
+
// as `li` inside a `ul`; Base UI renders `div` with `role="option"` inside a `div` with
|
|
16
|
+
// `role="listbox"`, so a `li.uxf-dropdown__item` selector matches nothing.
|
|
17
|
+
const item = this.page.locator(".uxf-dropdown__item").filter({ hasText: textFilter }).first();
|
|
15
18
|
await item.waitFor({ state: "visible" });
|
|
16
19
|
await item.click();
|
|
17
20
|
await item.waitFor({ state: "hidden" });
|