"""553-8 ② B05 · B06 유리 단추 · [적용] 높이 = 단 지킴 시험 — 화면 실측은 Playwright(자기 tmp). ① 아이콘만 든 유리 단추의 그림은 `.ui-btn__icon` 으로 싸서 냄(맨 svg 는 단 높이를 밀어 32 → 34 · 18 → 22) ② 배수 제안 머리 줄 단추는 눌리지 않음(두 줄 되면 22 → 34) """ from __future__ import annotations import re from pathlib import Path B05 = Path(__file__).resolve().parents[2] / "B05_Profile" def test_아이콘_단추_그림은_부품_아이콘으로_쌈(): src = (B05 / "B05_Profile_UI_RouteEdit_Chrome.ts").read_text(encoding="utf-8") block = re.search( r"export const HALF_TURN_ICON = \{.*?\n\};\n.*?export const HISTORY_ICON = \{.*?\n\};", src, re.S, ).group(0) assert block.count(" \.ui-btn \{([^}]*)\}", css).group(1) assert "flex: none;" in rule assert "white-space: nowrap;" in rule