test(B08,M02): 낡은 시험 둘 기대값을 지금 코드 꼴에 맞춤 — 자재 할증 editable(rows[keep[i]]) · 스프레드시트 미리보기(도구 줄 없음 · 메뉴 ss--preview)(205-2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SE9MxeXTu2uaDZ55BJowAY
This commit is contained in:
2026-10-10 16:02:15 +09:00
co-authored by Claude Sonnet 5.5
parent e0ad372e70
commit d540395938
2 changed files with 6 additions and 2 deletions
@@ -126,6 +126,6 @@ def test_화면_연결():
ui = (ROOT / "B08_Quantity/B08_Quantity_UI_Material.ts").read_text(encoding="utf-8")
assert "liveSurcharge(projectId, payload.surcharge_pct)" in ui
assert "onOptionsChange(host," in ui
assert 'key === "surcharge" && !rows[i].panel' in ui and "할증 = 좌측 패널" in ui
assert 'key === "surcharge" && !rows[keep[i]].panel' in ui and "할증 = 좌측 패널" in ui
panel = (ROOT / "B08_Quantity/B08_Quantity_UI_Options.ts").read_text(encoding="utf-8")
assert "put({ material_surcharge_pct:" in panel and "body.material_surcharge_pct" in panel
+5 -1
View File
@@ -23,7 +23,11 @@ def test_스프레드시트_미리보기_수정_옵션():
src = _text(ROOT / "A00_Common" / "spreadsheet" / "spreadsheet.ts")
assert "preview?: boolean;" in src
assert "const bare = readOnly || !!opts.preview;" in src
assert "bare ? null : mountToolbar(ctx)" in src and "bare ? null : attachMenu(ctx)" in src
assert "bare ? null : mountToolbar(ctx)" in src
# 미리보기 우클릭 = 「복사」 한 줄 — 메뉴 쪽이 ss--preview 로 가름
assert "attachMenu(ctx)" in src and '" ss--preview"' in src
menu = _text(ROOT / "A00_Common" / "spreadsheet" / "spreadsheet_menu.ts")
assert 'classList.contains("ss--preview")' in menu and "copyOnlyItems(ctx)" in menu
# 편집 · 수식 입력 줄은 readOnly 만 막음 — preview 는 고칠 수 있음
assert "const readOnly = !!opts.readOnly;" in src
assert re.search(r"for \(const node of \[toolbar\?\.root, ed\.bar, grid\.root", src)