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:
김보곤
2026-03-04 11:42:23 +09:00
parent ed9e6270cc
commit f42cf4ab7d
17 changed files with 43 additions and 43 deletions

View File

@@ -124,7 +124,7 @@
"id": 16,
"name": "[회계관리 > 매출관리] [UPDATE] 수정 내용 검증 (공급가액 1,000,000 재계산 확인)",
"action": "evaluate",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const toastInfo=()=>{const t=document.querySelectorAll('[data-sonner-toast],[role=\"status\"],[class*=\"toast\"],[class*=\"Toast\"],[class*=\"Toaster\"] [data-content]');return{count:t.length,text:t.length>0?Array.from(t).pop()?.innerText?.trim().substring(0,100):''};};const R={phase:'VERIFY_UPDATE'};const pageText=document.body.innerText;R.toast=toastInfo();const toastOk=R.toast.text&&(/수정|완료|저장|성공/.test(R.toast.text));R.hasSupply1M=pageText.includes('1,000,000')||pageText.includes('1000000');R.toastOk=toastOk;R.url=location.pathname+location.search;R.onListPage=!location.search.includes('mode=edit')&&!location.search.includes('mode=view')&&!/\\/[0-9]+$/.test(location.pathname);const logs=(window.__API_LOGS__||[]);R.apiPutOk=logs.some(l=>(l.method==='PUT'||l.method==='PATCH')&&l.ok);if(!toastOk&&!R.hasSupply1M&&R.onListPage){R.info='save redirected to list (toast expired), verifying via row click';const rows=document.querySelectorAll('table tbody tr');let target=Array.from(rows).find(r=>r.innerText?.includes('E2E_TEST_'));if(!target&&rows.length>0)target=rows[0];if(target){target.click();await w(2500);const dt=document.body.innerText;R.hasSupply1M=dt.includes('1,000,000')||dt.includes('1000000');R.reEnteredDetail=true;}}R.ok=toastOk||R.hasSupply1M||R.apiPutOk||(R.onListPage&&!location.search.includes('mode=edit'));return JSON.stringify(R);})()",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const toastInfo=()=>{const t=document.querySelectorAll('[data-sonner-toast],[role=\"status\"],[class*=\"toast\"],[class*=\"Toast\"],[class*=\"Toaster\"] [data-content]');return{count:t.length,text:t.length>0?Array.from(t).pop()?.innerText?.trim().substring(0,100):''};};const R={phase:'VERIFY_UPDATE'};const pageText=document.body.innerText;R.toast=toastInfo();const toastOk=R.toast.text&&(/수정|완료|저장|성공/.test(R.toast.text));R.hasSupply1M=pageText.includes('1,000,000')||pageText.includes('1000000');R.toastOk=toastOk;R.url=location.pathname+location.search;R.onListPage=!location.search.includes('mode=edit')&&!location.search.includes('mode=view')&&!/\\/[0-9]+$/.test(location.pathname);const logs=((window.__E2E__?window.__E2E__.getApiLogs().logs:[]));R.apiPutOk=logs.some(l=>(l.method==='PUT'||l.method==='PATCH')&&l.ok);if(!toastOk&&!R.hasSupply1M&&R.onListPage){R.info='save redirected to list (toast expired), verifying via row click';const rows=document.querySelectorAll('table tbody tr');let target=Array.from(rows).find(r=>r.innerText?.includes('E2E_TEST_'));if(!target&&rows.length>0)target=rows[0];if(target){target.click();await w(2500);const dt=document.body.innerText;R.hasSupply1M=dt.includes('1,000,000')||dt.includes('1000000');R.reEnteredDetail=true;}}R.ok=toastOk||R.hasSupply1M||R.apiPutOk||(R.onListPage&&!location.search.includes('mode=edit'));return JSON.stringify(R);})()",
"timeout": 15000,
"phase": "UPDATE"
},