test: replace false-green checks with behavioral coverage (#6282)

* test: replace false-green checks with behavioral coverage

* test: complete behavior-focused audit coverage
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-18 03:16:25 +08:00
1 parent c7ab7aa6da
commit 74942bd190
91 files changed
+1891 -1391

No files matched your search

+3 -1
View File
@@ -55,7 +55,9 @@ describe("channel logos", () => {
expectFootprint(icon);
expect(fallback).toHaveClass("opacity-0");
expect(image).toHaveClass("opacity-100");
expect(image).not.toHaveClass("invert", "grayscale", "object-cover");
for (const className of ["invert", "grayscale", "object-cover"]) {
expect(image).not.toHaveClass(className);
}
expect(icon).toHaveClass(presentation.logoLayout === "tile" ? "bg-transparent" : "bg-white");
expect(image).toHaveClass(...(presentation.logoLayout === "tile" ? ["h-8", "w-8"] : ["h-6", "w-6"]));
});