From 4915f8522711af1c839579d780b99c13ecda288c Mon Sep 17 00:00:00 2001 From: umsangdon Date: Mon, 5 Oct 2026 00:36:47 +0900 Subject: [PATCH] =?UTF-8?q?test(M02):=20UI=5FMain=20=EA=B8=80=20=EC=B0=BE?= =?UTF-8?q?=EB=8A=94=20=EC=8B=9C=ED=97=98=20=EA=B8=B0=EB=8C=80=20=EA=B8=80?= =?UTF-8?q?=EC=9D=84=2041-3=20=EC=BD=94=EB=93=9C=EC=97=90=20=EB=A7=9E?= =?UTF-8?q?=EC=B6=A4=20=E2=80=94=20onSelect=20=EC=9D=98=20toDrawing.select?= =?UTF-8?q?=20=C2=B7=20busy=20=EC=9D=98=20toDrawing.waiting=20(43)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01BVPp2o6Mh2FZJr72yW3ofZ --- resources/tester/test_m02_area_panel.py | 5 ++++- resources/tester/test_m02_card_sheet_edit.py | 2 +- resources/tester/test_m02_drawing_card.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/resources/tester/test_m02_area_panel.py b/resources/tester/test_m02_area_panel.py index e53925a02..14aecfcaf 100644 --- a/resources/tester/test_m02_area_panel.py +++ b/resources/tester/test_m02_area_panel.py @@ -23,7 +23,10 @@ def test_면적_길은_일위대가_패널(): area = body.split('if (kind === "area") {')[1].split("\n }\n")[0] assert "apanel = buildAreaPanel({" in area and "host.append(apanel.root);" in area assert "picked: () => picked," in area and "pills: () => links.항목," in area - assert "apanel?.refresh();" in body and "onSelect: (s) => (picked = s.칸)," in body + assert ( + "apanel?.refresh();" in body + and "onSelect: (s) => ((picked = s.칸), toDrawing.select(s))," in body + ) assert "buildComboBar" not in main # 조합 줄 · [조합 고치기] 지움 assert body.index('if (at.layer === "project") return;') < body.index("buildAreaPanel") assert "apanel?.destroy();\n apanel = null;" in main # drop diff --git a/resources/tester/test_m02_card_sheet_edit.py b/resources/tester/test_m02_card_sheet_edit.py index 5f74cbd3b..42caf4113 100644 --- a/resources/tester/test_m02_card_sheet_edit.py +++ b/resources/tester/test_m02_card_sheet_edit.py @@ -69,7 +69,7 @@ def test_저장_안_한_카드_고침_물음(): assert "cards.dirty()" in show and "showConfirmDialog(TEXT.discardCards)" in show assert "opts.keepColumn?.(from)" in show main = _text(M02 / "M02_MasterTemplete_UI_Main.ts") - assert "const busy = (): boolean => dirty || !!panel?.dirty();" in main + assert "const busy = (): boolean => dirty || !!panel?.dirty() || toDrawing.waiting();" in main assert main.count("busy()") >= 3 # 떠나기 · 새로고침 막기 · 나무 고침(settle) assert main.index("await panel.saveCards();") < main.index("await panel.reload();") assert "keepColumn: (colId) => sheet?.selectColumn(colId)" in main diff --git a/resources/tester/test_m02_drawing_card.py b/resources/tester/test_m02_drawing_card.py index 5bffa5871..7db5d6688 100644 --- a/resources/tester/test_m02_drawing_card.py +++ b/resources/tester/test_m02_drawing_card.py @@ -51,5 +51,5 @@ def test_저장_안_한_카드_고침은_물음(): assert "dirty: anyDirty," in cards assert "dirty: () => cards.dirty()," in _text("M02_MasterTemplete_Structure.ts") main = _text("M02_MasterTemplete_UI_Main.ts") - assert "const busy = (): boolean => dirty || !!panel?.dirty();" in main + assert "const busy = (): boolean => dirty || !!panel?.dirty() || toDrawing.waiting();" in main assert main.count("!busy()") >= 2 # 떠날 때 물음 · 창 닫기 막음