fix(D03): 못 읽은 채 떠남 = 고침 없음 — 처음 깨끗한 값 = 빈 선 (PLAN 572-3)

- 프로젝트 없음 · 불러오기 실패 때 savedJson "" 라 dirty 참 → 떠남 셋 물음이 잘못 뜸(ORCA 실측)
- test_560_4 한 줄 덧

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 18:20:12 +09:00
co-authored by Claude Opus 5.5
parent c3fbcb13f1
commit 2b1f54aa4c
2 changed files with 5 additions and 1 deletions
@@ -64,6 +64,10 @@ def test_de_pages_guard_leave():
assert "beforeLeave" not in ts, path # 말없이 저장 없음 — 공용 셋 물음
if name:
assert f'discard: () => clearState("{name}", projectId)' in call, path
# D03 — 못 읽은 채(프로젝트 없음 · 불러오기 실패) 떠나면 고침 없음
assert "let savedJson = JSON.stringify(network);" in _src(
"D03_PlanAnalysis/D03_PlanAnalysis_UI_Page.ts"
)
e03 = _src("E03_StabSection/E03_StabSection_UI_Page.ts")
assert "dirty: () => repPending > 0" in e03 and "repPending -= 1" in e03