fix: 매출관리 4개 시나리오 VERIFY 로직 수정 (페이지네이션 대응)

This commit is contained in:
김보곤
2026-02-19 13:19:14 +09:00
parent f71baef2af
commit cbf9b3c4b7
4 changed files with 9 additions and 9 deletions

View File

@@ -72,7 +72,7 @@
"id": 9,
"name": "[회계관리 > 매출관리] [VERIFY] 생성 데이터 확인",
"action": "evaluate",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const ts=window.__E2E_TS__||'E2E_TEST_';const R={phase:'VERIFY_CREATE'};await w(500);const rows=document.querySelectorAll('table tbody tr');R.rowCount=rows.length;const found=Array.from(rows).find(r=>r.innerText?.includes('E2E_TEST_'));R.found=!!found;R.ok=R.found;if(found)R.foundText=found.innerText?.substring(0,100);return JSON.stringify(R);})()",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const ts=window.__E2E_TS__||'E2E_TEST_';const R={phase:'VERIFY_CREATE'};await w(500);const rows=document.querySelectorAll('table tbody tr');R.rowCount=rows.length;let found=Array.from(rows).find(r=>r.innerText?.includes('E2E_TEST_'));if(!found){const ths=document.querySelectorAll('table thead th');const sortTh=Array.from(ths).find(th=>/일자|날짜|No|번호/.test(th.innerText?.trim()));if(sortTh){sortTh.click();await w(1500);sortTh.click();await w(1500);}const rows2=document.querySelectorAll('table tbody tr');found=Array.from(rows2).find(r=>r.innerText?.includes('E2E_TEST_'));R.rowCount=rows2.length;if(found)R.info='found after sort';}R.found=!!found;R.ok=R.found;if(found)R.foundText=found.innerText?.substring(0,100);return JSON.stringify(R);})()",
"timeout": 15000,
"phase": "VERIFY"
},
@@ -80,7 +80,7 @@
"id": 10,
"name": "[회계관리 > 매출관리] [READ] 상세 페이지 진입",
"action": "evaluate",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const ts=window.__E2E_TS__||'E2E_TEST_';const R={phase:'READ'};let row;for(let i=0;i<3;i++){const rows=Array.from(document.querySelectorAll('table tbody tr'));row=rows.find(r=>r.innerText?.includes('E2E_TEST_'));if(row)break;await w(1000);}if(!row){R.error='E2E_TEST_ 행 없음';R.ok=false;return JSON.stringify(R);}row.click();await w(2500);R.detailUrl=location.pathname+location.search;R.ok=true;return JSON.stringify(R);})()",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const ts=window.__E2E_TS__||'E2E_TEST_';const R={phase:'READ'};let row;for(let i=0;i<3;i++){const rows=Array.from(document.querySelectorAll('table tbody tr'));row=rows.find(r=>r.innerText?.includes('E2E_TEST_'));if(row)break;await w(1000);}if(!row){const ths=document.querySelectorAll('table thead th');const sortTh=Array.from(ths).find(th=>/일자|날짜|No|번호/.test(th.innerText?.trim()));if(sortTh){sortTh.click();await w(1500);sortTh.click();await w(1500);}const rows2=Array.from(document.querySelectorAll('table tbody tr'));row=rows2.find(r=>r.innerText?.includes('E2E_TEST_'));}if(!row){R.error='E2E_TEST_ 행 없음 (정렬 후에도 미발견)';R.ok=false;return JSON.stringify(R);}row.click();await w(2500);R.detailUrl=location.pathname+location.search;R.ok=true;return JSON.stringify(R);})()",
"timeout": 15000,
"phase": "READ"
},