// @vitest-environment jsdom // // Smoke test: proves the heavy content-script modules import cleanly under the // shared chrome mock. If this fails, every index.ts/inject.ts-dependent test // below it is unrunnable — so it gates the whole suite. import "./_setup"; import { describe, expect, it } from "vitest"; describe("AUTOFILL-TESTS harness smoke", () => { it("imports index.ts seams without throwing", async () => { const mod = await import("./index"); expect(typeof mod.handleFieldInteraction).toBe("function"); expect(typeof mod.initialScan).toBe("function"); expect(typeof mod.wasAlreadyFilled).toBe("function"); expect(mod._testSeam).toBeTruthy(); expect(typeof mod._testSeam.DISMISS_LOCK_MS).toBe("number"); }); it("imports inject.ts UI exports without throwing", async () => { const mod = await import("./inject"); expect(typeof mod.showAutofillSelector).toBe("function"); expect(typeof mod.injectFieldIcon).toBe("function"); }); });