From 0516bdc696baed07d7fef8f22ae672234e811a2b Mon Sep 17 00:00:00 2001 From: umsangdon Date: Mon, 5 Oct 2026 16:41:16 +0900 Subject: [PATCH] =?UTF-8?q?test(M02):=2049-7=20=EC=83=81=EC=84=B8=20?= =?UTF-8?q?=EB=A8=B8=EB=A6=AC=20[=3F]=20=EC=B9=B8=20=EB=B0=98=EC=98=81=20?= =?UTF-8?q?=E2=80=94=20=EB=A8=B8=EB=A6=AC=20children=20=EA=B8=80=20?= =?UTF-8?q?=EC=8B=9C=ED=97=98=20=EA=B8=B0=EB=8C=80=EB=A5=BC=20=EC=A7=80?= =?UTF-8?q?=EA=B8=88=20=EC=BD=94=EB=93=9C=EC=97=90=20=EB=A7=9E=EC=B6=A4=20?= =?UTF-8?q?(=EB=8F=8C=EC=95=84=EA=B0=80=EA=B8=B0=20=EB=8F=99=EC=9E=91?= =?UTF-8?q?=EC=9D=80=20=EA=B7=B8=EB=8C=80=EB=A1=9C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_016PSXsvyDxjNmufteN5bqmt --- resources/tester/test_m02_layer_screen.py | 12 ++++++++---- resources/tester/test_m02_structure_panel.py | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/resources/tester/test_m02_layer_screen.py b/resources/tester/test_m02_layer_screen.py index 17fcd6f02..3892125c6 100644 --- a/resources/tester/test_m02_layer_screen.py +++ b/resources/tester/test_m02_layer_screen.py @@ -304,13 +304,17 @@ def test_구조물_조합_제목_줄_새_항목(): 구조물 조합일 때만 보임) · 누르면 나무 「항목 추가」와 같은 창(고른 폴더 안 · 없으면 맨 위).""" main = _text(M02 / "M02_MasterTemplete_UI_Main.ts") assert "export function newItemButton(" in main and 'classList.add("m02-main__new")' in main - assert ( - "children: [back, title, slot, reload, save, ...(extras.newItem ? [extras.newItem] : [])]" - in main + assert re.search( + r"children: \[\s*back,\s*title,\s*helpSlot,\s*slot,\s*reload,\s*save," + r"\s*\.\.\.\(extras\.newItem \? \[extras\.newItem\] : \[\]\),?\s*\]", + main, ) assert "if (extras.newItem) extras.newItem.hidden = !combo;" in main page = _text(M02 / "M02_MasterTemplete_UI_Page.ts") - assert "...(canEdit(layer, isAdmin) ? { newItem: newItemButton(() => void openNew()) } : {})" in page + assert ( + "...(canEdit(layer, isAdmin) ? { newItem: newItemButton(() => void openNew()) } : {})" + in page + ) panel = _text(M02 / "M02_MasterTemplete_TreePanel.ts") assert 'return at?.kind === "folder" ? at.path : [];' in panel # 고른 폴더(39-5 folder()) assert "const newItem = (): void => void addItem(folder());" in panel diff --git a/resources/tester/test_m02_structure_panel.py b/resources/tester/test_m02_structure_panel.py index 1ac3f4d7b..323a0f461 100644 --- a/resources/tester/test_m02_structure_panel.py +++ b/resources/tester/test_m02_structure_panel.py @@ -211,7 +211,8 @@ def test_표_도구_막대에_줄_더하기_줄_지우기_손_입력_열_없음( def test_상세_화면_돌아가기는_집계표로_그_열_고른_채(): main = _text(MAIN) - assert "children: [back, title, slot, reload, save, " in main # M01 꼴 — 제목 앞(39-5) + # M01 꼴 — 제목 앞(39-5) · 49-7 [?] 칸(helpSlot)이 제목 바로 뒤 + assert re.search(r"children: \[\s*back,\s*title,\s*helpSlot,\s*slot,\s*reload,\s*save,", main) assert "!(sel.kind in NUMBER_FIELD)" in main # 구조물 도면 · 일위대가 · 면적산출만 body = main.split('back.addEventListener("click"')[1] assert "confirmLeave()" in body and "STRUCTURE_TABLE" in body