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

+6 -2
View File
@@ -40,7 +40,9 @@ describe("settings provider icons", () => {
expect(icon).not.toHaveAttribute("style");
expect(fallback).toHaveClass("opacity-0");
expect(image).toHaveClass("opacity-100");
expect(image).not.toHaveClass("invert", "grayscale");
for (const className of ["invert", "grayscale"]) {
expect(image).not.toHaveClass(className);
}
},
);
@@ -60,7 +62,9 @@ describe("settings provider icons", () => {
fireEvent.load(image);
expect(image).toHaveClass("opacity-100");
expect(icon).toHaveClass("bg-transparent");
expect(icon).not.toHaveClass("bg-white", "bg-muted");
for (const className of ["bg-white", "bg-muted"]) {
expect(icon).not.toHaveClass(className);
}
fireEvent.error(image);
expect(image).toHaveAttribute("src", providerBrand(provider)!.logoUrls[1]);