- 설정 줄 좁은 꼴(compact · 줄 28 · 글 12 · 선 없음) + 부품 모음 견본 + 지킴 시험 - E06 e06-setting 걷음 · 가이드 장면 선택자 갱신 - D03 3D 창 = 자기 클래스(d03-plan__3d-modal · 3d-body) · 모달 부품 그대로 · 가이드 장면 선택자 갱신 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
26 lines
1.1 KiB
Python
26 lines
1.1 KiB
Python
"""552-3 부품 「설정 줄」 지킴 시험 — 줄 52 · 오른쪽 55 % · 빈 값 「-」 · 대시보드 settingRow 가 부품을 씀."""
|
|
|
|
from test_552_3_card import ROOT, _text, check_part
|
|
|
|
|
|
def test_setting_row():
|
|
check_part(
|
|
"setting-row",
|
|
"ui_template_setting_row.ts",
|
|
["ui_template_setting_row.css"],
|
|
["settingRow", "settingCard"],
|
|
["ui-setting-row", "ui-setting-row__text", "ui-setting-row__side", "ui-setting-card"],
|
|
)
|
|
css = _text("ui_template_setting_row.css")
|
|
assert "min-height: 52px" in css and "max-width: 55%" in css
|
|
ts = _text("ui_template_setting_row.ts")
|
|
assert "compact?: boolean" in ts and 'dataset.size = "compact"' in ts
|
|
assert '[data-size="compact"]' in css and "min-height: 28px" in css
|
|
b01 = ROOT / "B01_Dashboard"
|
|
kit = (b01 / "B01_Dashboard_UI_PageKit.ts").read_text(encoding="utf-8")
|
|
assert (
|
|
'export { settingCard, settingRow, valueText } from "@ui/ui_template_setting_row";' in kit
|
|
)
|
|
profile = (b01 / "B01_Dashboard_UI_Profile.ts").read_text(encoding="utf-8")
|
|
assert ".ui-setting-row__text" in profile and ".b01-pg-row" not in profile
|