Files
Aislo/resources/tester/test_552_3_empty.py
T

20 lines
779 B
Python

"""552-3 부품 「빈 상태」 지킴 시험 — 큰 꼴 · 작은 꼴 · 대시보드 emptyState 가 부품을 씀(한 벌)."""
from test_552_3_card import ROOT, _text, check_part
def test_empty():
check_part(
"empty",
"ui_template_empty.ts",
["ui_template_empty.css"],
["createEmpty"],
["ui-empty", "ui-empty__icon", "ui-empty__text", "ui-empty__hint", "ui-empty--small"],
)
b01 = ROOT / "B01_Dashboard"
kit = (b01 / "B01_Dashboard_UI_PageKit.ts").read_text(encoding="utf-8")
assert "return createEmpty(opts);" in kit
pages_css = (b01 / "B01_Dashboard_UI_Style_Pages.css").read_text(encoding="utf-8")
assert ".b01-pg-empty" not in pages_css
assert "사용법 보기" in _text("ui_template_empty.ts")