Merge remote-tracking branch 'origin/sub_laptop_6' into sub_laptop_1

This commit is contained in:
2026-11-01 15:30:42 +09:00
2 changed files with 8 additions and 14 deletions
@@ -82,20 +82,13 @@ def test_해시_진입_셋():
assert got["open"] == want and got["root"] == "master" and got["company"] == "3"
def test_reveal_옵션만_줄을_누름():
def test_reveal_옵션은_M01_로():
side = _text(M02 / "M02_MasterTemplete_UI_Side.ts")
body = side.split("const reveal = ")[1].split("\n };")[0]
assert "if (!sec) return;" in body # 시스템 층 아니면 옵션 · 도면 줄 없음
assert 'sec.classList.remove("is-collapsed");' in body # 도면 = 펼치기만
assert (
'if (target === "옵션") options.body.querySelector<HTMLElement>("button")?.click();' in body
)
# 옵션 컨테이너 안 단추 = 「구조물 옵션 정의」 줄 하나뿐
options = _text(M02 / "StructOptions" / "M02_SO_Options.ts")
assert options.count('el("button"') == 1
assert "openDefScreen" in options
# 옵션 컨테이너 = 구조물 옵션 정의 줄 · 시스템 층에만
assert "옵션: section(options.title, options.body)," in side
# 716-1 · 716-3 — 옵션 정의는 M01 로 옮김 · M02 reveal 은 일위대가 · 도면만 펼침
assert 'target === "일위대가조합" ? precomboSec : target === "도면" ? drawing : null' in body
assert 'sec?.classList.remove("is-collapsed");' in body
assert "options" not in body and "옵션: section(" not in side
page = _text(M02 / "M02_MasterTemplete_UI_Page.ts")
assert 'if (entry.open !== "구조물조합") side.reveal(entry.open);' in page
+3 -2
View File
@@ -338,8 +338,9 @@ def test_좌측_판_자리와_권한():
side = _text("M02_MasterTemplete_UI_Side.ts")
assert 'import { buildHopyoSection } from "./M02_MasterTemplete_Hopyo_Side";' in side
host = side.split('className: "m02-side__lists ui-sidebar-panel"')[1]
assert host.index("precomboSec,") < host.index("section(hopyo.title, hopyo.body),")
assert host.index("section(hopyo.title, hopyo.body),") < host.index("extras ?")
# 716-3 차례 — 일위대가 › 구조물 조합 › 구분선 › 불러오기
order = ("precomboSec,", "summary,", "createDivider(),", "section(hopyo.title, hopyo.body),")
assert [host.index(k) for k in order] == sorted(host.index(k) for k in order)
assert "canWrite: canEdit(layer, opt.isAdmin)," in side # 구조물 조합 층 쓰기 권한
assert "hopyo.paint();" in side.split("function paint(): void {")[1]
hopyo_side = _text("M02_MasterTemplete_Hopyo_Side.ts")