fix(공용): 떠남 [취소] 뒤 단계 [<] [>] 흐려짐 — 주소 되돌림 알림 (PLAN 572)
- main.ts 취소 갈래 = replaceState 뒤 aislo:route-restored 냄(hashchange 가 안 뜸) - ui_template_help [<] [>] sync 가 그 알림에도 다시 맞춤 · 화면에서 빠지면 둘 다 풂 - test_401 소스 대조 하나 더함 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -110,3 +110,11 @@ def test_공용이_도우미를_씀():
|
||||
for name in ("d02-points", "e02-ground", "e03-prob", "e04-settings", "e05-report"):
|
||||
assert f'"{name}": {{ bucket: "draft", scope: "project"' in state
|
||||
assert '"e06-rock"' in state and '"e07-settings"' in state
|
||||
|
||||
|
||||
def test_떠남_취소_뒤_단계_단추_다시_맞춤():
|
||||
# [취소] = 주소만 되돌림(hashchange 없음) → 「되돌림」 알림으로 [<] [>] 다시 맞춤
|
||||
main = (ROOT / "A00_Common/main.ts").read_text(encoding="utf-8")
|
||||
assert "window.dispatchEvent(new Event(ROUTE_RESTORED_EVENT))" in main
|
||||
help_ts = (ROOT / "ui_template/ui_template_help.ts").read_text(encoding="utf-8")
|
||||
assert "window.addEventListener(ROUTE_RESTORED_EVENT, onHash);" in help_ts
|
||||
|
||||
Reference in New Issue
Block a user