feat: add sheet component and docs qa baseline
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user