fix: vendor-management step28 hasError를 title/h1 기반으로 변경 (body 내 숫자 false positive 방지)
This commit is contained in:
@@ -250,7 +250,7 @@
|
||||
"id": 28,
|
||||
"name": "[회계관리 > 거래처관리] [EDIT] 저장 완료 확인 (목록 복귀 + 에러 없음)",
|
||||
"action": "evaluate",
|
||||
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'SAVE_VERIFY'};let isListPage=false;for(let i=0;i<10;i++){const url=window.location.href;isListPage=url.includes('/accounting/vendors')&&!url.includes('mode=');if(isListPage)break;await w(500);}R.isListPage=isListPage;const hasError=document.body.innerText.includes('404')||document.body.innerText.includes('500')||document.body.innerText.includes('Not Found');R.hasError=hasError;R.ok=isListPage&&!hasError;R.info=R.ok?'PASS: 목록 복귀, 에러 없음':'FAIL: isListPage='+isListPage+', hasError='+hasError;return JSON.stringify(R);})()",
|
||||
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'SAVE_VERIFY'};let isListPage=false;for(let i=0;i<10;i++){const url=window.location.href;isListPage=url.includes('/accounting/vendors')&&!url.includes('mode=');if(isListPage)break;await w(500);}R.isListPage=isListPage;const t=document.title||'';const h1=document.querySelector('h1')?.innerText||'';const errText=t+' '+h1;const hasError=errText.includes('404')||errText.includes('Not Found')||errText.includes('500')||errText.includes('Server Error');R.hasError=hasError;R.ok=isListPage&&!hasError;R.info=R.ok?'PASS: 목록 복귀, 에러 없음':'FAIL: isListPage='+isListPage+', hasError='+hasError;return JSON.stringify(R);})()",
|
||||
"timeout": 15000,
|
||||
"phase": "VERIFY"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user