fix: deprecated window.__API_LOGS__ → window.__E2E__.getApiLogs() 패턴 수정 (17개 파일)
- approval-box, edge-rapid-click-acc-sales, full-crud-* (4개) - hr-salary-long-term-care, production-work-order - quality-inspection, quality-performance-report - reload-persist-acc-deposit, sales-management - sales-order-bulk-delete, sales-order, sales-quotation - system-dashboard, vendor-management - 전체 209/209 ALL PASS 검증 완료 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -156,7 +156,7 @@
|
||||
"name": "[BULK-DELETE] API DELETE /orders/bulk 검증",
|
||||
"phase": "DELETE",
|
||||
"action": "evaluate",
|
||||
"script": "(()=>{const logs=window.__API_LOGS__||[];const bulkDels=logs.filter(l=>l.method==='DELETE'&&(l.url.includes('bulk')||l.url.includes('orders'))&&l.status>=200&&l.status<300);const singleDels=logs.filter(l=>l.method==='DELETE'&&l.status>=200&&l.status<300);return bulkDels.length>0?'pass: BULK DELETE '+bulkDels[bulkDels.length-1].status+' url='+bulkDels[bulkDels.length-1].url.split('/').slice(-2).join('/'):singleDels.length>0?'pass: DELETE found ('+singleDels.length+' calls)':'warn: no DELETE API calls found';})()"
|
||||
"script": "(()=>{const logs=(window.__E2E__?window.__E2E__.getApiLogs().logs:[]);const bulkDels=logs.filter(l=>l.method==='DELETE'&&(l.url.includes('bulk')||l.url.includes('orders'))&&l.status>=200&&l.status<300);const singleDels=logs.filter(l=>l.method==='DELETE'&&l.status>=200&&l.status<300);return bulkDels.length>0?'pass: BULK DELETE '+bulkDels[bulkDels.length-1].status+' url='+bulkDels[bulkDels.length-1].url.split('/').slice(-2).join('/'):singleDels.length>0?'pass: DELETE found ('+singleDels.length+' calls)':'warn: no DELETE API calls found';})()"
|
||||
},
|
||||
{
|
||||
"id": 19,
|
||||
@@ -170,7 +170,7 @@
|
||||
"id": 20,
|
||||
"name": "[SUMMARY] API 호출 통계",
|
||||
"action": "evaluate",
|
||||
"script": "(()=>{const logs=window.__API_LOGS__||[];const summary={total:logs.length,GET:logs.filter(l=>l.method==='GET').length,POST:logs.filter(l=>l.method==='POST').length,PUT:logs.filter(l=>l.method==='PUT').length,DELETE:logs.filter(l=>l.method==='DELETE').length,success:logs.filter(l=>l.status>=200&&l.status<300).length,failed:logs.filter(l=>l.status>=400).length,avgResponseTime:logs.length>0?Math.round(logs.reduce((s,l)=>s+(l.duration||0),0)/logs.length):0};return 'pass: API summary - total='+summary.total+' POST='+summary.POST+' DELETE='+summary.DELETE+' success='+summary.success+' failed='+summary.failed+' avg='+summary.avgResponseTime+'ms';})()"
|
||||
"script": "(()=>{const logs=(window.__E2E__?window.__E2E__.getApiLogs().logs:[]);const summary={total:logs.length,GET:logs.filter(l=>l.method==='GET').length,POST:logs.filter(l=>l.method==='POST').length,PUT:logs.filter(l=>l.method==='PUT').length,DELETE:logs.filter(l=>l.method==='DELETE').length,success:logs.filter(l=>l.status>=200&&l.status<300).length,failed:logs.filter(l=>l.status>=400).length,avgResponseTime:logs.length>0?Math.round(logs.reduce((s,l)=>s+(l.duration||0),0)/logs.length):0};return 'pass: API summary - total='+summary.total+' POST='+summary.POST+' DELETE='+summary.DELETE+' success='+summary.success+' failed='+summary.failed+' avg='+summary.avgResponseTime+'ms';})()"
|
||||
}
|
||||
],
|
||||
"expectedAPIs": [
|
||||
|
||||
Reference in New Issue
Block a user