import { describe, expect, it } from "vitest";
import {
  fireEvent,
  renderControlsPanel,
  screen,
} from "../testing/controls-panel-test-utils";

describe("ControlsPanel image picker controls", () => {
  it("binds image picker controls to runtime state", () => {
    renderControlsPanel();

    fireEvent.click(screen.getByRole("button", { name: "Image 2" }));

    expect(screen.getByTestId("image-value").textContent).toBe("image-2");
  });
});
