feat: add dense console ui primitives
This commit is contained in:
@@ -21,6 +21,13 @@ test("uses order status metadata for the rendered tone", () => {
|
||||
expect(screen.getByText("失败")).toHaveAttribute("data-tone", "danger");
|
||||
});
|
||||
|
||||
test("uses compact dense-console badge sizing", () => {
|
||||
render(<StatusBadge status="waiting_review" />);
|
||||
|
||||
expect(screen.getByText("待审核").className).toContain("px-2");
|
||||
expect(screen.getByText("待审核").className).toContain("py-0.5");
|
||||
});
|
||||
|
||||
test("can render review decision metadata when a variant is provided", () => {
|
||||
render(<StatusBadge status="reject" variant="reviewDecision" />);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user