"""552-3 부품 「⋯ · 오른쪽 메뉴」 지킴 시험 — 아이콘 단추 28 · 위험 = 확인창 · 한 번에 하나 장부 · 대시보드 rowMenu 가 부품을 씀.""" from test_552_3_card import ROOT, _text def test_row_menu(): ts = _text("ui_template_context_menu.ts") head = ts[ts.index("부품 「⋯ · 오른쪽 메뉴」") :].split("*/", 1)[0] for word in ("꼴", "크기", "상태", "쓰는 법", "대신하는"): assert word in head, word assert "export function createRowMenu" in ts assert 'createIconButton({ icon: "dots", title: "더 보기", size: 28 })' in ts assert "if (open) enterMenu(entry);" in ts and "showConfirmDialog(" in ts css = _text("ui_template_context_menu.css") mine = css[css.index("(552-3)") :] assert "rgb" not in mine and "#" not in mine and "--b01-" not in mine assert '.ui-row-menu__item:is(:hover, [data-state="hover"]):not(:disabled)' in mine assert ".ui-row-menu__item.is-danger" in mine and ".ui-row-menu__item:disabled" in mine kit = (ROOT / "B01_Dashboard" / "B01_Dashboard_UI_PageKit.ts").read_text(encoding="utf-8") assert "createRowMenu as rowMenu, type RowMenuItem" in kit from test_552_3_card import kit_line line = kit_line("row-menu") assert 'file: "ui_template_context_menu.ts"' in line and "demo:" in line assert "legacy: true" not in line