feat: harden workflow gates and expose token usage
This commit is contained in:
@@ -21,6 +21,11 @@ test("sql artifact accepts a { content } wrapper", async () => {
|
||||
await screen.findByTestId("hl");
|
||||
});
|
||||
|
||||
test("an empty artifact shows an explicit fallback instead of a blank panel", () => {
|
||||
render(<ArtifactView artifact={{ kind: "sql", data: {} }} />);
|
||||
expect(screen.getByText("No artifact content available.")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test("cte_plan renders an ordered list of names", () => {
|
||||
render(<ArtifactView artifact={{ kind: "cte_plan", data: { names: ["a_cte", "b_cte"] } }} />);
|
||||
expect(screen.getByText("a_cte")).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user