fix: 매출관리 4개 시나리오 VERIFY 로직 수정 (페이지네이션 대응)
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
"id": 10,
|
||||
"name": "[회계관리 > 매출관리] [VERIFY] 생성 데이터 확인 (행수 증가 + 금액 대조)",
|
||||
"action": "evaluate",
|
||||
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'VERIFY_CREATE'};await w(500);const rows=document.querySelectorAll('table tbody tr');R.rowCount=rows.length;R.rowsBefore=window.__E2E_ROWS_BEFORE__||0;R.rowIncreased=rows.length>R.rowsBefore;if(rows.length>0){const ft=rows[0].innerText;R.firstRowText=ft?.substring(0,100);R.hasAmount=ft?.includes('500,000')||ft?.includes('500000')||false;}R.ok=R.rowIncreased||R.hasAmount||false;R.info='before:'+R.rowsBefore+',after:'+rows.length;return JSON.stringify(R);})()",
|
||||
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));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;if(found)R.foundText=found.innerText?.substring(0,100);R.ok=R.found;return JSON.stringify(R);})()",
|
||||
"timeout": 15000,
|
||||
"phase": "VERIFY"
|
||||
},
|
||||
@@ -175,7 +175,7 @@
|
||||
"id": 23,
|
||||
"name": "[회계관리 > 매출관리] [VERIFY] 삭제 확인 (행수 원복 검증)",
|
||||
"action": "evaluate",
|
||||
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'VERIFY_DELETE'};await w(1000);if(location.search.includes('mode=view')||location.search.includes('mode=edit')){const btn=Array.from(document.querySelectorAll('button,a')).find(b=>/목록/.test(b.innerText?.trim()));if(btn){btn.click();await w(2000);}else{history.back();await w(2000);}}const rows=document.querySelectorAll('table tbody tr');R.rowCount=rows.length;R.rowsBefore=window.__E2E_ROWS_BEFORE__||0;R.ok=rows.length<=R.rowsBefore;R.info='before:'+R.rowsBefore+',after:'+rows.length;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_DELETE'};await w(1000);if(location.search.includes('mode=view')||location.search.includes('mode=edit')){const btn=Array.from(document.querySelectorAll('button,a')).find(b=>/목록/.test(b.innerText?.trim()));if(btn){btn.click();await w(2000);}else{history.back();await w(2000);}}const rows=document.querySelectorAll('table tbody tr');R.rowCount=rows.length;const found=Array.from(rows).find(r=>r.innerText?.includes(ts));R.stillExists=!!found;R.ok=!found;R.info='rows:'+rows.length+(found?',E2E data still exists':',E2E data removed');return JSON.stringify(R);})()",
|
||||
"timeout": 15000,
|
||||
"phase": "VERIFY"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user