test(M02): UI_Main 글 찾는 시험 기대 글을 41-3 코드에 맞춤 — onSelect 의 toDrawing.select · busy 의 toDrawing.waiting (43)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BVPp2o6Mh2FZJr72yW3ofZ
This commit is contained in:
2026-10-05 00:36:47 +09:00
co-authored by Claude Opus 5.5
parent fd77c511be
commit 4915f85227
3 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 # 떠날 때 물음 · 창 닫기 막음