test: expand test coverage across all layers (+1,157 tests)

Fix 2 failing unit tests (landing hero text mismatch) and broken
coverage tooling (brace-expansion v5 override breaking minimatch).
Add ~1,097 new test cases via 14-agent parallel expansion:

- Unit: +290 tests (AI bridge, image-engine, stores, API helpers)
- Integration: +504 tests (all tools, cross-format matrix, adversarial)
- E2E: +363 tests (navigation, tool UI, batch/pipeline, settings,
  visual regression, accessibility, performance, cross-browser)

Total: 4,223 unit + 6,057 integration + 1,563 E2E = 11,843 tests
This commit is contained in:
SnapOtter
2026-06-06 19:37:29 +08:00
parent 66e503730d
commit 06d1822491
67 changed files with 20114 additions and 49 deletions
+3 -3
View File
@@ -1116,8 +1116,8 @@ describe("Bulk Rename", () => {
// ── Content verification for batch of 5+ files ──────────────
it("batch of 6 files preserves all content and extensions", async () => {
const HEIC = readFileSync(join(FIXTURES, "test-200x150.heic"));
const LARGE = readFileSync(join(FIXTURES, "content", "stress-large.jpg"));
const _HEIC = readFileSync(join(FIXTURES, "test-200x150.heic"));
const _LARGE = readFileSync(join(FIXTURES, "content", "stress-large.jpg"));
const { body, contentType } = createMultipartPayload([
{ name: "file", filename: "a.png", contentType: "image/png", content: PNG },
{ name: "file", filename: "b.jpg", contentType: "image/jpeg", content: JPG },
@@ -1160,7 +1160,7 @@ describe("Bulk Rename", () => {
// ── Very long pattern ───────────────────────────────────────
it("handles a long pattern name", async () => {
const longPattern = "a".repeat(100) + "-{{index}}";
const longPattern = `${"a".repeat(100)}-{{index}}`;
const { body, contentType } = createMultipartPayload([
{ name: "file", filename: "test.png", contentType: "image/png", content: PNG },
{ name: "settings", content: JSON.stringify({ pattern: longPattern }) },