feat: migrate ListBox with virtual collection and accessible parts

This commit is contained in:
maoyingjie
2026-10-23 15:02:30 +08:00
parent dea5ded716
commit 65db60a7ac
39 changed files with 2694 additions and 12 deletions
+8
View File
@@ -95,6 +95,14 @@ function fixture(props: Record<string, unknown> = {}) {
}
describe("installed Reka Listbox audit — not public component acceptance", () => {
it("records that a cancelled Content keydown still performs navigation", async () => {
const wrapper = fixture({ cancelNavigation: true });
await flushPromises();
await wrapper.get('[role="listbox"]').trigger("keydown", { key: "End" });
expect(document.activeElement).toBe(
wrapper.findAll('[role="option"]')[1].element,
);
});
it("distinguishes numeric and string zero and toggles multiple values", async () => {
const wrapper = fixture({ multiple: true, defaultValue: [0] });
await flushPromises();