From 1bb3b43064dd0ee4ba17e524d9f84e951e4a8bc9 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Sat, 31 Oct 2026 17:07:57 +0900 Subject: [PATCH] =?UTF-8?q?test(=EB=82=A1=EC=9D=80=20=EC=8B=9C=ED=97=98):?= =?UTF-8?q?=20=ED=95=A9=EC=B9=9C=20=ED=8C=90=20=EC=8B=A4=ED=8C=A8=20?= =?UTF-8?q?=EB=84=B7=20=E2=80=94=20=EC=BD=94=EB=93=9C=20=ED=9D=A0=20?= =?UTF-8?q?=EC=95=84=EB=8B=98=20=C2=B7=20=EB=AA=A8=EB=91=90=20=EB=92=A4=20?= =?UTF-8?q?=EC=9D=BC=EA=B0=90=EC=9D=B4=20=EB=B0=94=EA=BE=BC=20=EC=9E=90?= =?UTF-8?q?=EB=A6=AC=20(PLAN=20707-5=20=EB=94=B8=EB=A6=BC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - test_224_1 · helper_280_1: 고르기 창 몸 = 위 표 · 규격 표(704-4 specHost) · 열 — 둘째 자리 → 셋째 자리 - test_280_1 · test_b05_structures_form_summary 도우미: 부품 상자 글꼴 import(ui_template_icons.css)를 .ts 로 찾던 흠 — .css = 빈 모듈 - test_m02_precombo_scope: precombo 배선에 706-1 `more` 덧붙음 — 한 줄 글 대조 → scope · bar 줄 대조 - test_structures_summary_snapshot: robocopy 가 복제 도구 본체(common_util_project_copy)로 옮겨 감 — 껍데기 대신 본체 읽음 - test_202_1 · test_704_4: 합친 판에서 통과 — 고칠 것 없음 Co-Authored-By: Claude Opus 5.5 --- resources/tester/helper_280_1_combo_pick.cjs | 3 ++- resources/tester/helper_b05_structures_form_summary.cjs | 1 + resources/tester/test_224_1_picker_top_table.py | 2 +- resources/tester/test_m02_precombo_scope.py | 2 +- resources/tester/test_structures_summary_snapshot.py | 4 +++- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/resources/tester/helper_280_1_combo_pick.cjs b/resources/tester/helper_280_1_combo_pick.cjs index 9b4ffd3f9..d0669661c 100644 --- a/resources/tester/helper_280_1_combo_pick.cjs +++ b/resources/tester/helper_280_1_combo_pick.cjs @@ -147,6 +147,7 @@ const { loadTs } = makeLoader({ root: ROOT, requireFor: (full) => (request) => { if (request in STUBS) return STUBS[request]; + if (request.endsWith(".css")) return {}; // 부품 글꼴 import(ui_template_icons.css 등) if (request.startsWith(".")) return loadTs(`${path.resolve(path.dirname(full), request)}.ts`); return require(request); }, @@ -178,7 +179,7 @@ const flush = () => new Promise((resolve) => setTimeout(resolve, 20)); const out = {}; void openItemPicker({ current: null, canCopy: false }); await flush(); - const [, cols] = modal.body.children; + const [, , cols] = modal.body.children; // 위 표 · 규격 표(704-4) · 열 const [search, layerBar, treeHost] = cols.children[0].children; const searchInput = search.children[0]; const active = () => treeHost.all().find((n) => n.classList.contains("is-active"))?.dataset.id; diff --git a/resources/tester/helper_b05_structures_form_summary.cjs b/resources/tester/helper_b05_structures_form_summary.cjs index 4c7ff7c35..62fd8d5b6 100644 --- a/resources/tester/helper_b05_structures_form_summary.cjs +++ b/resources/tester/helper_b05_structures_form_summary.cjs @@ -119,6 +119,7 @@ const { loadTs } = makeLoader({ requireFor: (full) => (request) => { if (CATALOG.isCatalogRequest(request)) return CATALOG; if (STUBS[request]) return STUBS[request]; + if (request.endsWith(".css")) return {}; // 부품 글꼴 import(ui_template_icons.css 등) — 트랜스파일 못 함 // 화면 공용 부품(@ui/…) — 이 시험이 안 쓰는 것이라 뭘 불러도 아무 일 안 하는 함수로 막아 둠 if (request.startsWith("@ui/")) return new Proxy({}, { get: () => () => {} }); // 공용 계산(@util/…) — tsconfig 별칭대로 common_util 폴더에서 읽음 diff --git a/resources/tester/test_224_1_picker_top_table.py b/resources/tester/test_224_1_picker_top_table.py index e9258b32c..c9a5cae3a 100644 --- a/resources/tester/test_224_1_picker_top_table.py +++ b/resources/tester/test_224_1_picker_top_table.py @@ -117,7 +117,7 @@ def test_모달_배선_고르면_보이고_편집_화면에서는_숨김(): ts = _text(UI / "ui_template_item_picker.ts") assert "createComboTable((colId) => pickColumn(colId))" in ts # 280-2 표 고름 → 나무 assert "paintTable();" in ts # 고른 항목 · 층이 바뀔 때마다(280-2) - assert "body.append(tableWrap, cols, editHost," in ts # 맨 위 + assert "body.append(tableWrap, specHost, cols, editHost," in ts # 맨 위(704-4 규격 표 뒤) assert ts.count("tableWrap.hidden = true;") == 1 # 편집 화면 열 때 assert ts.count("tableWrap.hidden = false;") == 1 # 돌아올 때 assert "comboTable.destroy();" in ts # 닫을 때 표 거둠 diff --git a/resources/tester/test_m02_precombo_scope.py b/resources/tester/test_m02_precombo_scope.py index 77a4ce3db..fe9bd01fa 100644 --- a/resources/tester/test_m02_precombo_scope.py +++ b/resources/tester/test_m02_precombo_scope.py @@ -77,7 +77,7 @@ def test_사전조합_층_단추는_페이지를_다시_안_세움(): # 구조물 조합 층 단추는 그대로 해시 이동 한 벌 assert page.count('layerBar("') == 1 assert 'layerBar("구조물조합", tree.add, () => void main.openTable(layer)),' in page - assert "precombo: { scope: () => pre, bar: preBar }," in page + assert "precombo: {\n scope: () => pre,\n bar: preBar," in page # 706-1 more 덧붙음 def test_고름에_owner_권한_서고_길에_명시_owner(): diff --git a/resources/tester/test_structures_summary_snapshot.py b/resources/tester/test_structures_summary_snapshot.py index 2a3910762..8a0c0ac54 100644 --- a/resources/tester/test_structures_summary_snapshot.py +++ b/resources/tester/test_structures_summary_snapshot.py @@ -300,5 +300,7 @@ def test_스냅샷이_없으면_알림(world): def test_초기화는_templates_를_안_건드리고_복제는_통째로(): assert not any(tree.startswith("templates") for tree in initial._FILE_TREES) - tool = (config_system.PROJECT_ROOT / "db_management/tools_clone_project.py").read_text("utf-8") + tool = (config_system.PROJECT_ROOT / "common_util/common_util_project_copy.py").read_text( + "utf-8" + ) # 복제 도구 본체(tools_clone_project = CLI 껍데기) assert '"robocopy",' in tool and '"/E",' in tool # 프로젝트 폴더 전체(templates 포함)