test: assert TechLog search focus style

This commit is contained in:
DongHyeonka
2026-08-15 21:54:09 +09:00
parent 3bc74e0195
commit c9164c1a03
@@ -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", () => {