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