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
@@ -97,7 +97,9 @@ describe("file quick look", () => {
const quickLook = screen.getByTestId("file-image-quick-look");
expect(quickLook.textContent).toBe("");
expect(quickLook).toHaveClass("w-max");
expect(quickLook).not.toHaveClass("h-36", "w-full");
for (const className of ["h-36", "w-full"]) {
expect(quickLook).not.toHaveClass(className);
}
expect(quickLook.querySelector("img")).toHaveClass("rounded-mark", "object-contain");
expect(quickLook.querySelector("img")).toHaveClass("h-auto", "w-auto", "max-h-36");
expect(screen.getByRole("tooltip")).toHaveTextContent("File preview");