2026-02-13 13:14:10 +09:00
|
|
|
{
|
|
|
|
|
"id": "edge-boundary-input-accounting",
|
|
|
|
|
"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": 5,
|
|
|
|
|
"name": "입력 필드 탐색",
|
|
|
|
|
"action": "evaluate",
|
|
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'FIND_INPUTS'};await w(1000);const inputs=Array.from(document.querySelectorAll('input:not([type=\"hidden\"]):not([type=\"checkbox\"]):not([type=\"radio\"]),textarea')).filter(el=>el.offsetParent!==null&&!el.disabled&&!el.readOnly);R.inputCount=inputs.length;R.inputSelectors=inputs.slice(0,5).map((el,i)=>{ const tag=el.tagName.toLowerCase(); const name=el.name||'';const placeholder=el.placeholder||'';const type=el.type||'text'; let sel=''; if(el.id)sel='#'+el.id; else if(name)sel=tag+'[name=\"'+name+'\"]'; else if(placeholder)sel=tag+'[placeholder*=\"'+placeholder.substring(0,15)+'\"]'; else sel=tag+':nth-of-type('+(i+1)+')'; return{index:i,selector:sel,name,placeholder:placeholder.substring(0,20),type};});R.ok=true;return JSON.stringify(R);})()",
|
|
|
|
|
"timeout": 10000,
|
|
|
|
|
"phase": "FIND_INPUTS"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 6,
|
|
|
|
|
"name": "경계값: 최대 길이 입력",
|
|
|
|
|
"action": "fill_boundary",
|
|
|
|
|
"target": "input:not([type=\"hidden\"]):not([type=\"checkbox\"]):not([type=\"radio\"]):not([disabled]):not([readonly])",
|
|
|
|
|
"boundaryType": "max_length",
|
|
|
|
|
"maxLength": 255,
|
|
|
|
|
"timeout": 5000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 7,
|
|
|
|
|
"name": "최대 길이 결과 확인",
|
|
|
|
|
"action": "evaluate",
|
|
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'MAX_LENGTH_CHECK'};await w(1000);const hasError=document.querySelector('[class*=\"error\"],[class*=\"Error\"],[role=\"alert\"],.text-red-500,.text-destructive');const errorTexts=Array.from(document.querySelectorAll('[class*=\"error\"],[class*=\"Error\"],[role=\"alert\"],.text-red-500,.text-destructive')).map(e=>e.innerText?.trim()).filter(Boolean);R.errorDetected=!!hasError||errorTexts.length>0;R.errorMessages=errorTexts.slice(0,5);const inputs=Array.from(document.querySelectorAll('input:not([type=\"hidden\"]),textarea'));R.inputCount=inputs.length;const overflowInputs=inputs.filter(el=>{ const max=el.maxLength; return max>0&&el.value.length>max;});R.overflowCount=overflowInputs.length;const truncatedInputs=inputs.filter(el=>{ const max=el.maxLength; return max>0&&el.value.length===max;});R.truncatedCount=truncatedInputs.length;R.ok=true;R.info=R.errorDetected?'✅ 경계값 입력 시 에러/경고 감지':'⚠️ 경계값 입력 시 에러 미감지 (정상 가능)';return JSON.stringify(R);})()",
|
|
|
|
|
"timeout": 5000,
|
|
|
|
|
"phase": "MAX_LENGTH_CHECK"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 8,
|
|
|
|
|
"name": "경계값: 오버플로우 입력",
|
|
|
|
|
"action": "fill_boundary",
|
|
|
|
|
"target": "input:not([type=\"hidden\"]):not([type=\"checkbox\"]):not([type=\"radio\"]):not([disabled]):not([readonly])",
|
|
|
|
|
"boundaryType": "overflow",
|
|
|
|
|
"maxLength": 255,
|
|
|
|
|
"timeout": 5000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 9,
|
|
|
|
|
"name": "오버플로우 결과 확인",
|
|
|
|
|
"action": "evaluate",
|
|
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'OVERFLOW_CHECK'};await w(1000);const hasError=document.querySelector('[class*=\"error\"],[class*=\"Error\"],[role=\"alert\"],.text-red-500,.text-destructive');const errorTexts=Array.from(document.querySelectorAll('[class*=\"error\"],[class*=\"Error\"],[role=\"alert\"],.text-red-500,.text-destructive')).map(e=>e.innerText?.trim()).filter(Boolean);R.errorDetected=!!hasError||errorTexts.length>0;R.errorMessages=errorTexts.slice(0,5);const inputs=Array.from(document.querySelectorAll('input:not([type=\"hidden\"]),textarea'));R.inputCount=inputs.length;const overflowInputs=inputs.filter(el=>{ const max=el.maxLength; return max>0&&el.value.length>max;});R.overflowCount=overflowInputs.length;const truncatedInputs=inputs.filter(el=>{ const max=el.maxLength; return max>0&&el.value.length===max;});R.truncatedCount=truncatedInputs.length;R.ok=true;R.info=R.errorDetected?'✅ 경계값 입력 시 에러/경고 감지':'⚠️ 경계값 입력 시 에러 미감지 (정상 가능)';return JSON.stringify(R);})()",
|
|
|
|
|
"timeout": 5000,
|
|
|
|
|
"phase": "OVERFLOW_CHECK"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 10,
|
|
|
|
|
"name": "경계값: 특수문자(XSS) 입력",
|
|
|
|
|
"action": "fill_boundary",
|
|
|
|
|
"target": "input:not([type=\"hidden\"]):not([type=\"checkbox\"]):not([type=\"radio\"]):not([disabled]):not([readonly])",
|
|
|
|
|
"boundaryType": "special_chars",
|
|
|
|
|
"timeout": 5000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 11,
|
|
|
|
|
"name": "특수문자 결과 확인",
|
|
|
|
|
"action": "evaluate",
|
|
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'SPECIAL_CHARS_CHECK'};await w(1000);const hasError=document.querySelector('[class*=\"error\"],[class*=\"Error\"],[role=\"alert\"],.text-red-500,.text-destructive');const errorTexts=Array.from(document.querySelectorAll('[class*=\"error\"],[class*=\"Error\"],[role=\"alert\"],.text-red-500,.text-destructive')).map(e=>e.innerText?.trim()).filter(Boolean);R.errorDetected=!!hasError||errorTexts.length>0;R.errorMessages=errorTexts.slice(0,5);const inputs=Array.from(document.querySelectorAll('input:not([type=\"hidden\"]),textarea'));R.inputCount=inputs.length;const overflowInputs=inputs.filter(el=>{ const max=el.maxLength; return max>0&&el.value.length>max;});R.overflowCount=overflowInputs.length;const truncatedInputs=inputs.filter(el=>{ const max=el.maxLength; return max>0&&el.value.length===max;});R.truncatedCount=truncatedInputs.length;R.ok=true;R.info=R.errorDetected?'✅ 경계값 입력 시 에러/경고 감지':'⚠️ 경계값 입력 시 에러 미감지 (정상 가능)';return JSON.stringify(R);})()",
|
|
|
|
|
"timeout": 5000,
|
|
|
|
|
"phase": "SPECIAL_CHARS_CHECK"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 12,
|
|
|
|
|
"name": "경계값: 공백만 입력",
|
|
|
|
|
"action": "fill_boundary",
|
|
|
|
|
"target": "input:not([type=\"hidden\"]):not([type=\"checkbox\"]):not([type=\"radio\"]):not([disabled]):not([readonly])",
|
|
|
|
|
"boundaryType": "whitespace",
|
|
|
|
|
"timeout": 5000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 13,
|
|
|
|
|
"name": "경계값 상태로 저장 시도",
|
|
|
|
|
"action": "evaluate",
|
2026-02-19 21:55:15 +09:00
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'EMPTY_SUBMIT_CHECK'};await w(500);const beforeToasts=document.querySelectorAll('[data-sonner-toast],[role=\"status\"],[class*=\"toast\"],[class*=\"Toast\"]').length;const beforeErrors=document.querySelectorAll('[class*=\"error\"],[class*=\"Error\"],[class*=\"destructive\"],[role=\"alert\"]').length;const submitBtn=Array.from(document.querySelectorAll('button')).find(b=>{ const t=b.innerText?.trim()||''; return(/등록|저장|확인|제출/.test(t))&&b.offsetParent!==null&&!b.disabled;});if(!submitBtn){R.err='저장/등록 버튼 없음';R.ok=true;return JSON.stringify(R);}R.submitBtnText=submitBtn.innerText?.trim();submitBtn.click();await w(2000);const toasts=document.querySelectorAll('[data-sonner-toast],[role=\"status\"],[class*=\"toast\"],[class*=\"Toast\"],[class*=\"Toaster\"] [data-content]');R.toastCount=toasts.length;R.newToasts=toasts.length-beforeToasts;if(toasts.length>0){R.toastTexts=Array.from(toasts).map(t=>t.innerText?.trim().substring(0,80)).filter(Boolean);}const errors=document.querySelectorAll('[class*=\"error\"],[class*=\"Error\"],[class*=\"destructive\"],[role=\"alert\"],[class*=\"invalid\"]');R.errorCount=errors.length;R.newErrors=errors.length-beforeErrors;if(errors.length>0){R.errorTexts=Array.from(errors).slice(0,5).map(e=>e.innerText?.trim().substring(0,60)).filter(Boolean);}const invalidFields=document.querySelectorAll('[aria-invalid=\"true\"]');R.ariaInvalidCount=invalidFields.length;const redBorders=Array.from(document.querySelectorAll('input,textarea,select,[role=\"combobox\"]')).filter(el=>{ const cs=getComputedStyle(el); return cs.borderColor?.includes('rgb(239')||cs.borderColor?.includes('rgb(220')||cs.borderColor?.includes('rgb(248')||cs.outlineColor?.includes('rgb(239');});R.redBorderCount=redBorders.length;const dialogs=document.querySelectorAll('[role=\"alertdialog\"],[role=\"dialog\"]');const validationDialog=Array.from(dialogs).find(d=>d.offsetParent!==null);R.hasValidationDialog=!!validationDialog;if(validationDialog){R.dialogText=validationDialog.innerText?.trim().substring(0,100);}R.totalValidationSignals=R.newToasts+R.newErrors+R.ariaInvalidCount+R.redBorderCount+(R.hasValidationDialog?1:0);R.validationTriggered=R.totalValidationSignals>0;R.ok=R.validationTriggered;R.info=R.validationTriggered?'✅ 유효성 검사 정상 동작':'❌ 유효성 검사 미감지 - 빈 폼 제출 시 에러 메시지 없음';return JSON.stringify(R);})()",
|
2026-02-13 13:14:10 +09:00
|
|
|
"timeout": 15000,
|
|
|
|
|
"phase": "BOUNDARY_SUBMIT_CHECK"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 14,
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|