import { render, screen } from "@testing-library/react"; import { ArtifactWidget } from "./ArtifactWidget"; test("renders artifact content view-only with no response path", () => { const onRespond = vi.fn(); render( ); // (a) content is rendered expect(screen.getByText("SELECT 1")).toBeInTheDocument(); // (b) no response path: no responding button, onRespond never called expect(screen.queryByRole("button")).not.toBeInTheDocument(); expect(onRespond).not.toHaveBeenCalled(); });