import { render, screen } from "@testing-library/react"; import { describe, expect, it } from "vitest"; import { Badge } from "./badge"; // unify-admin-page-patterns: status tones, so Failed and Pending no longer look identical. describe("Badge tones", () => { it.each([ ["positive", "text-positive"], ["warning", "text-warning"], ["negative", "text-negative"], ["neutral", "text-muted-foreground"], ] as const)("the %s variant colours its text with %s", (variant, cls) => { render(Label); expect(screen.getByText("Label").className).toContain(cls); }); });