feat: migrate ListBox with virtual collection and accessible parts
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user