diff --git a/tests/features/tech-log/style-contract.test.ts b/tests/features/tech-log/style-contract.test.ts index 749a4e7..a076c7b 100644 --- a/tests/features/tech-log/style-contract.test.ts +++ b/tests/features/tech-log/style-contract.test.ts @@ -96,7 +96,7 @@ describe("TechLog consumer-visible style contract", () => { expect(getComputedStyle(wordmark).fontWeight).toBe("680"); }); - it("preserves keyboard focus and the real search-field focus relationship", async () => { + it("preserves keyboard focus and the real search-field focus style", async () => { const user = userEvent.setup(); const view = renderPublicSurface( createElement( @@ -122,6 +122,9 @@ describe("TechLog consumer-visible style contract", () => { expect(searchInput).toHaveFocus(); expect(searchField).not.toBeNull(); expect(searchField!.matches(":focus-within")).toBe(true); + expect(getComputedStyle(searchField!).boxShadow).toBe( + "0 0 0 3px var(--signal-soft)", + ); }); it("keeps every header and dialog control at the source minimum target size", () => {