message: chore: Add test to `combobox-multiple` example
diff: @@ -3,6 +3,7 @@ import {
  getByRole,
  getByText,
  press,
  + queryByRole,
  render,
  type,
  } from "ariakit-test-utils";
  @@ -11,6 +12,7 @@ import Example from ".";
  const getInput = () => getByRole("combobox", { name: "Your favorite food" });
  const getOption = (name: string) => getByRole("option", { name });
  +const queryOption = (name: string) => queryByRole("option", { name });
  test("a11y", async () => {
  const { container } = render(<Example />);
  @@ -50,6 +52,27 @@ test("check/uncheck with enter", async () => {
  expect(getOption("Banana")).toHaveAttribute("aria-selected", "false");
  });
  +test("check/uncheck item after filtering", async () => {
  + render(<Example />);
  + await press.Tab();
  + await type("b");
  + expect(queryOption("Apple")).not.toBeInTheDocument();
  + expect(getOption("Bacon")).toHaveAttribute("aria-selected", "true");
  + await press.ArrowDown();
  + await press.Enter();
  + expect(getOption("Apple")).toHaveAttribute("aria-selected", "false");
  + expect(getOption("Bacon")).toHaveAttribute("aria-selected", "false");
  + expect(getInput()).toHaveValue("");
  + await type("ap");
  + await press.ArrowUp();
  + await press.Space();
  + await press.Home();
  + await press.Enter();
  + expect(getOption("Apple")).toHaveAttribute("aria-selected", "true");
  + expect(getOption("Pineapple")).toHaveAttribute("aria-selected", "true");
  + expect(getInput()).toHaveValue("");
  +});
  +
  test("no result", async () => {
  render(<Example />);
  await press.Tab();
  