fix(388-1 보안): 로그아웃 물음 — 주소 먼저 옮긴 뒤 떠남 확인
- B05 · B06 물음이 아직 같은 페이지로 보고 안 물어 초안 있는 채 바로 로그아웃되던 것 - 라우터처럼 주소를 홈으로 옮긴 뒤 물음 · [취소]면 주소 되돌림 - 화면: 초안 있는 채 로그아웃 → 확인창 · [취소] 머묾 · [폐기] 지움 · 밝음/어두움 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VmC34fsxxbweEG3RUjs3Mn
This commit is contained in:
@@ -65,8 +65,9 @@ def test_로그아웃_길_차례():
|
||||
body = shell[shell.index("async function onApp_Logout_Click") :]
|
||||
body = body[: body.index("\n}\n")]
|
||||
order = [
|
||||
body.index(s) for s in ("takeLeaveGuard()", "logout()", "wipeAccountCache()", "reload()")
|
||||
]
|
||||
body.index(s)
|
||||
for s in ("replaceState(", "takeLeaveGuard()", "logout()", "wipeAccountCache()", "reload()")
|
||||
] # 주소 먼저 옮김 — B05 · B06 물음이 「같은 페이지」로 보고 안 묻는 일 막음
|
||||
assert order == sorted(order)
|
||||
login = (ROOT / "A06_Login/A06_Login_Api_Fetch.ts").read_text(encoding="utf-8")
|
||||
assert "wipeIfOwnerChanged(data.user.id)" in login
|
||||
|
||||
Reference in New Issue
Block a user