feat: add sheet component and docs qa baseline

This commit is contained in:
2026-03-19 18:46:20 +08:00
parent 71ebb010b9
commit f318f94c9a
28 changed files with 1799 additions and 91 deletions
@@ -128,4 +128,20 @@ describe("Select", () => {
expect(trigger).toBeDisabled();
expect(trigger).toHaveAttribute("data-disabled", "");
});
it("opens from the keyboard so combobox interaction stays accessible", async () => {
const user = userEvent.setup();
render(<ReviewLaneSelect defaultValue="editorial" />);
const trigger = screen.getByRole("combobox", { name: "Review lane" });
trigger.focus();
await user.keyboard("{ArrowDown}");
const listbox = await screen.findByRole("listbox");
expect(trigger).toHaveAttribute("aria-expanded", "true");
expect(within(listbox).getByRole("option", { name: "Editorial review" })).toBeInTheDocument();
});
});