fix: login 시나리오 - 쿠키/스토리지 클리어 후 로그인 페이지 이동

로그아웃 클릭 대신 세션 직접 클리어 방식으로 변경
(로그아웃 비동기 리다이렉트 문제 해결)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-08 01:35:39 +09:00
parent 0dbb84fd56
commit 2084439482

View File

@@ -16,29 +16,27 @@
"steps": [ "steps": [
{ {
"id": 1, "id": 1,
"name": "프로필 메뉴 열기 (로그아웃 준비)", "name": "세션 클리어 (로그아웃 효과)",
"action": "evaluate", "action": "evaluate",
"script": "(() => { const btns = Array.from(document.querySelectorAll('button')); const profileBtn = btns.find(b => b.innerText?.includes('홍킬동') || b.querySelector('[class*=\"avatar\"], [class*=\"Avatar\"], img[alt]')); if (profileBtn) { profileBtn.click(); return 'Profile menu clicked'; } const headerBtns = document.querySelectorAll('header button, nav button, [class*=\"header\"] button'); for (const b of headerBtns) { if (b.querySelector('img') || b.querySelector('[class*=\"avatar\"]')) { b.click(); return 'Avatar button clicked'; } } return 'Profile button not found'; })()" "script": "(async () => { document.cookie.split(';').forEach(c => { document.cookie = c.trim().split('=')[0] + '=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/'; }); try { localStorage.clear(); } catch(e) {} try { sessionStorage.clear(); } catch(e) {} return 'Session cleared'; })()"
}, },
{ {
"id": 2, "id": 2,
"name": "로그아웃 클릭", "name": "로그인 페이지 이동",
"action": "click", "action": "navigate",
"target": "로그아웃" "target": "/ko/login"
}, },
{ {
"id": 3, "id": 3,
"name": "로그인 페이지 도착 대기", "name": "로그인 페이지 도착 대기",
"action": "wait", "action": "wait",
"timeout": 3000 "timeout": 2000
}, },
{ {
"id": 4, "id": 4,
"name": "로그인 페이지 확인", "name": "로그인 폼 존재 확인",
"action": "verify_url", "action": "evaluate",
"expected": { "script": "(() => { const uid = document.querySelector('#userId'); const pwd = document.querySelector('#password'); const submit = document.querySelector('button[type=\"submit\"]'); if (uid && pwd && submit) return 'Login form ready'; return 'Form not found - inputs: ' + document.querySelectorAll('input').length; })()"
"url_contains": "/ko/login"
}
}, },
{ {
"id": 5, "id": 5,