"""734-1 계산식 열 단추 지킴 시험 — 낮은 단(20) · 갈래 색(옵션값 · 요소 연결) · 풍선 글(화면 · 서버 없음).""" from pathlib import Path ROOT = Path(__file__).resolve().parents[2] M01 = ROOT / "M01_MasterData" def _t(p: Path) -> str: return p.read_text(encoding="utf-8") def test_알약은_낮은_단과_요소연결_갈래(): s = _t(M01 / "M01_MasterData_UI_LogicLab_Pill.ts") assert 'size: 20, tone: "link"' in s and 'tl("Pill_Tone")' in s def test_입력칩은_낮은_단과_옵션_갈래(): s = _t(M01 / "M01_MasterData_UI_LogicLab_Formula.ts") assert "size: 20," in s and 'tone: "option"' in s and 'tl("Var_Tone")' in s def test_갈래_색은_공통_값만(): css = _t(ROOT / "ui_template" / "ui_template_button.css") head = css[css.index("갈래 색(tone)") :] assert '[data-tone="option"]' in head and "var(--color-warning)" in head assert '[data-tone="link"]' in head and "var(--color-info)" in head assert "#" not in head.split("*/", 1)[1] # 날 색 값 없음 def test_풍선_글_두_갈래(): s = _t(M01 / "M01_MasterData_UI_LogicLab_Text.ts") assert '"요소 연결"' in s and '["옵션"' in s