Files
Aislo/resources/tester/test_552_3_toast.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

28 lines
969 B
Python

"""552-3 부품 「알림」 지킴 시험 — 토스트 넷 · 가림막 · 본체 다시 내보냄 · 가림막 색 = 공통 값."""
from test_552_3_card import _text, check_part
def test_toast():
check_part(
"toast",
"ui_template_toast.ts",
[],
[
"showToast",
"showLoadingOverlay",
"hideLoadingOverlay",
"setLoadingOverlayProgress",
"toastNode",
],
["ui-toast", "ui-toast-container", "ui-overlay", "ui-spinner"],
)
ts = _text("ui_template_toast.ts")
assert 'type ToastKind = "success" | "error" | "info" | "warning"' in ts
assert ' showToast,\n type ToastKind,\n} from "./ui_template_toast";' in _text(
"ui_template_elements.ts"
)
styles = _text("ui_template_elements_styles.ts")
assert "rgba(38, 17, 74" not in styles # 옛 보라 가림막
assert styles.count("background-color: var(--color-scrim);") >= 2