Files
Aislo/resources/tester/test_552_3_legend.py
T
eomsangdonandClaude Opus 5.5 7e584c1e7b feat(ui-kit): 묶음 부품 열 — 카드 · 접이 카드 · 빈 상태 · 알림 · 띠 알림 · 숫자 카드 · 값 목록 · 진행 막대 · 작은 그래프 · 범례 (PLAN 552-3)
- 새 부품 파일: ui_template_card · empty · banner · stat · kv · toast · flow_legend(.ts) · 진행 막대 · 막대 · 원 그래프 덧붙임
- createCard · showToast · 로딩 가림막은 부품 파일로 옮기고 본체(ui_template_elements)가 다시 내보냄 — 부름 꼴 그대로
- 대시보드 emptyState = 빈 상태 부품을 씀(한 벌) · 선 카드 그림자 0 · 가림막 옛 보라 → --color-scrim
- 부품 모음 화면 견본(밝음 · 어두움 · 상태) · 지킴 시험 test_552_3_* 열
- 전후 촬영: B01 여덟 화면 자리 · 화소 같음(실시간 CPU 값만 다름) · A01 · B08 카드 그림자만 다름

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 21:28:29 +09:00

25 lines
809 B
Python

"""552-3 부품 「범례」 지킴 시험 — 칩 14 × 10 · 선 · 점선 · 점 · 꺼짐 · 색은 부르는 쪽."""
from test_552_3_card import _text, check_part
def test_legend():
check_part(
"legend",
"ui_template_flow_legend.ts",
["ui_template_flow_legend.css"],
["createLegend"],
[
"ui-legend",
"ui-legend__item",
"ui-legend__mark",
"ui-legend--vertical",
"ui-flow-legend",
],
)
css = _text("ui_template_flow_legend.css")
for kind in ("line", "dash", "dot"):
assert f".ui-legend__mark--{kind}" in css
assert "width: 14px;\n height: 10px;" in css and ".is-off" in css
assert 'kind?: "chip" | "line" | "dash" | "dot"' in _text("ui_template_flow_legend.ts")