fix: add density/priority prop tests and remove stale plan file

This commit is contained in:
lda
2026-07-10 08:37:53 +07:00 Verified
parent d04ac643f4
commit 630baf585f
2 changed files with 15 additions and 671 deletions
@@ -67,6 +67,11 @@ describe("RunInputFacts", () => {
expect(screen.getByText("architecture-notes.md")).toBeDefined();
expect(screen.getByText("issue-board.json")).toBeDefined();
});
it("renders with compact density", () => {
render(<RunInputFacts facts={baseFacts} density="compact" />);
expect(screen.getByRole("region", { name: /workflow input summary/i })).toHaveAttribute("data-density", "compact");
});
});
describe("InterruptPayloadFacts", () => {
@@ -89,6 +94,11 @@ describe("InterruptPayloadFacts", () => {
expect(screen.getByText(/submitted/)).toBeInTheDocument();
expect(screen.getByText(/cancelled/)).toBeInTheDocument();
});
it("renders with primary priority", () => {
render(<InterruptPayloadFacts facts={baseFacts} priority="primary" />);
expect(screen.getByRole("region", { name: /interrupt report and proposed issues/i })).toHaveAttribute("data-priority", "primary");
});
});
describe("RunResumeFacts", () => {
@@ -120,6 +130,11 @@ describe("RunOutputFacts", () => {
expect(screen.getByText("Output not created yet")).toBeDefined();
});
it("uses summary aria-label for default priority", () => {
render(<RunOutputFacts facts={baseFacts} />);
expect(screen.getByRole("region", { name: /workflow output summary/i })).toBeInTheDocument();
});
it("renders created output facts with issue details", () => {
const createdFacts: DemoRunFacts = {
...baseFacts,