Phase 1 - False Positive 제거 (36개): - R.ok=true 무조건 반환 → 조건부 검증으로 교체 - 영향: edge-*, form-validation-*, pagination-sort-*, search-*, reload-persist-*, batch-create-*, detail-roundtrip-*, workflow-*, cross-module-* Phase 2 - Flaky rows[0] 패턴 수정 (7개): - detail-verify-acc-sales.json: CAPTURE/READ 스텝 E2E_TEST_ 타겟팅 - vendor-management.json: 행 클릭 E2E_TEST_ 타겟팅 - batch-update-account-sales.json: CAPTURE/SELECT/VERIFY/RESTORE 스텝 - sales-management.json: DELETE fallback 경고 로깅 Phase 3 - E2E_TEST_ 접두사 표준화 (1개): - employee-register.json: 홍길동→E2E_TEST_사원, EMP2026001→E2E_TEST_EMP001 테스트 결과: 175 PASS / 9 FAIL (숨겨진 실제 버그 5건 노출) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
68 lines
5.1 KiB
JSON
68 lines
5.1 KiB
JSON
{
|
|
"id": "edge-rapid-click-save-sales",
|
|
"name": "엣지 케이스: 저장 버튼 연타 (판매 > 거래처관리)",
|
|
"version": "1.0.0",
|
|
"auth": {
|
|
"role": "admin"
|
|
},
|
|
"menuNavigation": {
|
|
"level1": "판매관리",
|
|
"level2": "거래처관리"
|
|
},
|
|
"screenshotPolicy": {
|
|
"captureOnFail": true,
|
|
"captureOnPass": false
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": 1,
|
|
"name": "페이지 로드 대기",
|
|
"action": "wait",
|
|
"timeout": 3000
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "테이블 로드 대기",
|
|
"action": "wait_for_table",
|
|
"timeout": 5000
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "등록 폼 열기",
|
|
"action": "evaluate",
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'OPEN_FORM'};const priorities=['등록','추가','작성','글쓰기','신규'];const exclude=['신규업체','신규거래'];let btn=null;for(const kw of priorities){ btn=Array.from(document.querySelectorAll('button')).find(b=>{ const t=b.innerText?.trim()||''; if(exclude.some(e=>t.includes(e)))return false; return t.includes(kw)&&b.offsetParent!==null&&!b.disabled; });if(btn)break;}if(!btn){btn=Array.from(document.querySelectorAll('button')).find(b=>b.innerText?.trim()?.startsWith('+')&&b.offsetParent!==null);}if(!btn){R.err='등록 버튼 없음';R.ok=true;return JSON.stringify(R);}R.btnText=btn.innerText?.trim();btn.click();await w(2500);R.url=location.pathname+location.search;R.ok=true;return JSON.stringify(R);})()",
|
|
"timeout": 15000,
|
|
"phase": "OPEN_FORM"
|
|
},
|
|
{
|
|
"id": 4,
|
|
"name": "폼 렌더링 대기",
|
|
"action": "wait",
|
|
"timeout": 2000
|
|
},
|
|
{
|
|
"id": 6,
|
|
"name": "저장 버튼 연타 (5회, 50ms 간격)",
|
|
"action": "evaluate",
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'RAPID_CLICK_SAVE'};const btn=Array.from(document.querySelectorAll('button')).find(b=>{ const t=b.innerText?.trim()||''; return(/저장|등록|확인|제출/.test(t))&&b.offsetParent!==null&&!b.disabled;});if(!btn){R.err='저장/등록 버튼 없음';R.ok=true;return JSON.stringify(R);}R.btnText=btn.innerText?.trim();let clickCount=0;for(let i=0;i<5;i++){btn.click();clickCount++;await w(50);}R.clickCount=clickCount;await w(2000);R.ok=true;return JSON.stringify(R);})()",
|
|
"timeout": 15000,
|
|
"phase": "RAPID_CLICK_SAVE"
|
|
},
|
|
{
|
|
"id": 7,
|
|
"name": "연타 후 상태 확인",
|
|
"action": "evaluate",
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'RAPID_CLICK_RESULT'};await w(2000);const dialogs=document.querySelectorAll('[role=\"dialog\"],[role=\"alertdialog\"],[aria-modal=\"true\"]');const visibleDialogs=Array.from(dialogs).filter(d=>d.offsetParent!==null);R.dialogCount=visibleDialogs.length;const toasts=document.querySelectorAll('[data-sonner-toast],[role=\"status\"],[class*=\"toast\"],[class*=\"Toast\"]');R.toastCount=toasts.length;if(toasts.length>0){R.toastTexts=Array.from(toasts).map(t=>t.innerText?.trim().substring(0,80)).filter(Boolean);}const hasError=document.querySelector('[class*=\"error\"],[class*=\"Error\"],[role=\"alert\"]');R.hasError=!!hasError;R.url=location.pathname+location.search;R.pageStable=!document.querySelector('.loading,.spinner,[class*=\"skeleton\"]');R.ok=R.dialogCount<=1&&!R.hasError;R.info=R.dialogCount<=1&&!R.hasError?'✅ 연타 클릭 후 정상 상태':'❌ 연타 클릭 후 비정상 상태 (다중 모달/에러)';return JSON.stringify(R);})()",
|
|
"timeout": 10000,
|
|
"phase": "RAPID_CLICK_RESULT"
|
|
},
|
|
{
|
|
"id": 8,
|
|
"name": "폼/모달 닫기",
|
|
"action": "evaluate",
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'CLOSE_FORM'};const dlg=document.querySelector('[role=\"alertdialog\"],[role=\"dialog\"]');if(dlg&&dlg.offsetParent!==null){ const closeBtn=dlg.querySelector('button[class*=\"close\"]')||Array.from(dlg.querySelectorAll('button')).find(b=>/닫기|확인|취소|Close/.test(b.innerText?.trim())); if(closeBtn){closeBtn.click();await w(500);} else{document.dispatchEvent(new KeyboardEvent('keydown',{key:'Escape',bubbles:true}));await w(500);}}if(location.search.includes('mode=new')||location.search.includes('mode=edit')){ const backBtn=Array.from(document.querySelectorAll('button,a')).find(b=>/목록|취소|뒤로/.test(b.innerText?.trim())); if(backBtn){backBtn.click();await w(2000);} else{history.back();await w(2000);}}const modal=document.querySelector('[role=\"dialog\"],[aria-modal=\"true\"],[class*=\"modal\"]:not([class*=\"tooltip\"])');if(modal&&modal.offsetParent!==null){ const xBtn=modal.querySelector('button[class*=\"close\"],[aria-label=\"닫기\"],[aria-label=\"Close\"]')||Array.from(modal.querySelectorAll('button')).find(b=>/닫기|취소|Close/.test(b.innerText?.trim())); if(xBtn){xBtn.click();await w(500);} else{document.dispatchEvent(new KeyboardEvent('keydown',{key:'Escape',bubbles:true}));await w(500);}}R.url=location.pathname+location.search;R.ok=true;return JSON.stringify(R);})()",
|
|
"timeout": 10000,
|
|
"phase": "CLOSE_FORM"
|
|
}
|
|
]
|
|
} |