import { readFileSync } from "node:fs"; import { describe, expect, it } from "vitest"; const browserSource = readFileSync(new URL("../KvKeyBrowser.vue", import.meta.url), "utf8"); describe("KvKeyBrowser edit dialog layout", () => { it("keeps the value format label and selector together in the editor toolbar", () => { expect(browserSource).toContain('class="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between"'); expect(browserSource).toContain('class="flex shrink-0 items-center gap-3"'); expect(browserSource).toContain(''); }); it("cancels the shared footer negative margin and preserves bottom safe spacing", () => { expect(browserSource).toContain(''); expect(browserSource).toContain('variant="outline" class="h-10 min-w-20"'); expect(browserSource).toContain('