feat: render factual horizontal presentation graph

This commit is contained in:
lda
2026-07-12 13:32:57 +07:00 Verified
parent 24d53276b6
commit 92ba1dcf70
11 changed files with 304 additions and 323 deletions
@@ -0,0 +1,14 @@
import { cleanup, render, screen } from "@testing-library/react";
import { afterEach, describe, expect, it, vi } from "vitest";
import { NodeSpotlight } from "./NodeSpotlight.js";
afterEach(() => cleanup());
describe("NodeSpotlight", () => {
it("uses a readable fallback for raw interrupt nodes without labels", () => {
render(<NodeSpotlight nodeId="review_issues" close={vi.fn()} />);
expect(screen.getByRole("dialog", { name: "Review issues" })).toBeInTheDocument();
expect(screen.getByRole("heading", { name: "Review issues" })).toBeInTheDocument();
});
});