From 80b4143cbf638cafcf2b414f505f11d7e617e767 Mon Sep 17 00:00:00 2001 From: cryppadotta <34892728+cryppadotta@users.noreply.github.com> Date: Sat, 12 Sep 2026 18:43:22 +0000 Subject: [PATCH] test(ui): assert status glyph stays at pane scale Co-Authored-By: Paperclip --- ui/src/components/IssueProperties.test.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/components/IssueProperties.test.tsx b/ui/src/components/IssueProperties.test.tsx index 942d5b176a..6277c22054 100644 --- a/ui/src/components/IssueProperties.test.tsx +++ b/ui/src/components/IssueProperties.test.tsx @@ -130,8 +130,8 @@ vi.mock("../lib/assignees", () => ({ })); vi.mock("./StatusIcon", () => ({ - StatusIcon: ({ status, blockerAttention, className }: { status: string; blockerAttention?: Issue["blockerAttention"]; className?: string }) => ( - {status} + StatusIcon: ({ status, blockerAttention, className, size }: { status: string; blockerAttention?: Issue["blockerAttention"]; className?: string; size?: string }) => ( + {status} ), })); @@ -530,6 +530,7 @@ describe("IssueProperties", () => { '[data-property-label="Status"] + [data-property-value="true"] [data-testid="status-icon"]', ); expect(statusVisual).not.toBeNull(); + expect(statusVisual?.getAttribute("data-size")).toBe("md"); expect(statusVisual?.classList).toContain("mx-1"); expect(statusVisual?.classList).not.toContain("size-6"); expect(surface?.querySelector('[data-property-section="true"] > div')?.classList)