import { describe, expect, it } from "vitest"; import { loadAllAppCssBaseOnly } from "../../test/cssFixture"; describe("TaskDetailModal CSS contract", () => { it("FN-4183 keeps detail source headers top-aligned so the disclosure toggle stays on the first row", async () => { const css = await loadAllAppCssBaseOnly(); expect(css).toMatch(/\.detail-source-header\s*\{[^}]*align-items\s*:\s*flex-start\s*;/); }); it("FN-5879 keeps the base detail tab strip horizontally scrollable without shrinking tabs", async () => { const css = await loadAllAppCssBaseOnly(); expect(css).toMatch(/\.detail-tabs\s*\{[^}]*overflow-x\s*:\s*auto\s*;/); expect(css).toMatch(/\.detail-tab\s*\{[^}]*flex-shrink\s*:\s*0\s*;/); }); });