Files
Aislo/resources/tester/test_734_calc_buttons.py
T
eomsangdonandClaude Sonnet 5.5 8cd30cc64d feat(734-1): 계산식 열 단추 낮은 단(20) · 옵션값 / 요소 연결 갈래 색 · 풍선 글
- 부품 상자 단추에 갈래 색(tone: option · link) 더함 — 공통 값(--color-warning · --color-info) 혼합 · 밝음 4.5 이상 · 어두움 6 이상
- 알약(요소 연결) · 입력 칩(옵션값) 24 → 20 · 마우스 풍선 「요소 연결」 · 「옵션」
- 지킴 시험 test_734_calc_buttons 새로

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 15:40:02 +09:00

34 lines
1.2 KiB
Python

"""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