From d27dba4f231c45691506a4d1c2887bf3479ac705 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Sun, 1 Nov 2026 15:21:56 +0900 Subject: [PATCH] =?UTF-8?q?test(716-3):=20=EB=82=A1=EC=9D=80=20=EC=8B=9C?= =?UTF-8?q?=ED=97=98=20=EB=91=98=EC=9D=84=20716-3=20=EA=BC=B4=EB=A1=9C=20?= =?UTF-8?q?=EA=B3=A0=EC=B9=A8=20=E2=80=94=20M02=20=EC=99=BC=EC=AA=BD=20?= =?UTF-8?q?=EC=B9=B8=20=EC=B0=A8=EB=A1=80=20=C2=B7=20reveal=20=EC=98=B5?= =?UTF-8?q?=EC=85=98=20=EA=B0=88=EB=9E=98=20=EC=97=86=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - test_m02_hopyo_screen::test_좌측_판_자리와_권한 — 옛 `extras ?` 자리 대신 일위대가 › 구조물 조합 › 구분선 › 불러오기 차례 확인 - test_197_1_dashboard_option_card::test_reveal_옵션만_줄을_누름 → test_reveal_옵션은_M01_로 — 옵션 정의가 M01 로 옮겨 M02 reveal 은 일위대가 · 도면만 펼침 - 기능 흠 아님 · 716-3 이 UI_Side.ts 를 바꿔 옛 꼴 기대가 낡음 Co-Authored-By: Claude Opus 5.5 --- .../tester/test_197_1_dashboard_option_card.py | 17 +++++------------ resources/tester/test_m02_hopyo_screen.py | 5 +++-- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/resources/tester/test_197_1_dashboard_option_card.py b/resources/tester/test_197_1_dashboard_option_card.py index 12c9b6c4b..fe1701798 100644 --- a/resources/tester/test_197_1_dashboard_option_card.py +++ b/resources/tester/test_197_1_dashboard_option_card.py @@ -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("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 diff --git a/resources/tester/test_m02_hopyo_screen.py b/resources/tester/test_m02_hopyo_screen.py index bf8781d47..1714b7fe0 100644 --- a/resources/tester/test_m02_hopyo_screen.py +++ b/resources/tester/test_m02_hopyo_screen.py @@ -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")