feat: Phase 2 E2E 시나리오 추가 - 페이지네이션/정렬, 새로고침 유지, 연속 등록 (9/9 PASS)

- pagination-sort: 회계/판매/인사 테이블 정렬 및 페이지네이션 검증 (3 시나리오)
- reload-persist: 자유게시판/어음/입금 데이터 새로고침 후 유지 확인 (3 시나리오)
- batch-create: 3건 연속 등록 → 전체 확인 → 전체 삭제 (3 시나리오)
This commit is contained in:
김보곤
2026-02-12 10:06:30 +09:00
parent 09d375e2e1
commit 1118464761
9 changed files with 1420 additions and 0 deletions

129
reload-persist-board.json Normal file
View File

@@ -0,0 +1,129 @@
{
"id": "reload-persist-board",
"name": "새로고침 데이터 유지 검증: 자유게시판",
"version": "1.0.0",
"auth": {
"role": "admin"
},
"menuNavigation": {
"level1": "게시판",
"level2": "자유게시판"
},
"screenshotPolicy": {
"captureOnFail": true,
"captureOnPass": false
},
"steps": [
{
"id": 1,
"name": "[게시판 > 자유게시판] 페이지 로드 대기",
"action": "wait",
"timeout": 3000
},
{
"id": 2,
"name": "[게시판 > 자유게시판] 테이블 로드 대기",
"action": "wait_for_table",
"timeout": 5000
},
{
"id": 3,
"name": "[게시판 > 자유게시판] [CREATE] 데이터 생성",
"action": "evaluate",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const sv=(el,v)=>{const p=el.tagName==='TEXTAREA'?HTMLTextAreaElement.prototype:HTMLInputElement.prototype;const ns=Object.getOwnPropertyDescriptor(p,'value')?.set;if(ns)ns.call(el,v);else el.value=v;el.dispatchEvent(new Event('input',{bubbles:true}));el.dispatchEvent(new Event('change',{bubbles:true}));};const ts=(()=>{const n=new Date();const p=v=>v.toString().padStart(2,'0');return n.getFullYear()+p(n.getMonth()+1)+p(n.getDate())+'_'+p(n.getHours())+p(n.getMinutes())+p(n.getSeconds());})();const R={phase:'CREATE',ts};const testTitle='E2E_TEST_리로드_'+ts;R.testTitle=testTitle;const btn=Array.from(document.querySelectorAll('button')).find(b=>b.innerText?.trim()==='글쓰기'||/등록|작성/.test(b.innerText?.trim()));if(!btn){R.err='글쓰기 버튼 없음';return JSON.stringify(R);}btn.click();await w(2500);const ti=document.querySelector('input[placeholder*=\"제목\"]')||document.querySelector('input[type=\"text\"]');if(!ti){R.err='제목 입력란 없음';return JSON.stringify(R);}sv(ti,testTitle);await w(200);const ta=document.querySelector('textarea');if(ta){sv(ta,'새로고침 후 유지되어야 하는 테스트 데이터');await w(200);}const sub=Array.from(document.querySelectorAll('button')).find(b=>b.innerText?.trim()==='등록');if(!sub){R.err='등록 버튼 없음';return JSON.stringify(R);}sub.click();await w(3000);R.ok=true;return JSON.stringify(R);})()",
"timeout": 30000,
"phase": "CREATE"
},
{
"id": 4,
"name": "[게시판 > 자유게시판] [CREATE] 생성 후 대기",
"action": "wait",
"timeout": 3000
},
{
"id": 5,
"name": "[게시판 > 자유게시판] [CREATE] 목록 복귀",
"action": "evaluate",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));if(location.search.includes('mode=view')||location.search.includes('mode=edit')||location.search.includes('mode=new')){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);}}return JSON.stringify({url:location.pathname+location.search});})()",
"timeout": 10000,
"phase": "CREATE"
},
{
"id": 6,
"name": "[게시판 > 자유게시판] [CREATE] 목록 안정화",
"action": "wait",
"timeout": 2000
},
{
"id": 7,
"name": "[게시판 > 자유게시판] [VERIFY] 새로고침 전 데이터 확인",
"action": "evaluate",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'VERIFY'};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,80);if(!found)R.err='⚠️ 새로고침 후 E2E_TEST_ 데이터 사라짐 — 서버 저장 실패 의심';return JSON.stringify(R);})()",
"timeout": 10000,
"phase": "VERIFY"
},
{
"id": 8,
"name": "[게시판 > 자유게시판] [RELOAD] 페이지 새로고침",
"action": "reload",
"timeout": 10000
},
{
"id": 9,
"name": "[게시판 > 자유게시판] [RELOAD] 새로고침 후 대기",
"action": "wait",
"timeout": 5000
},
{
"id": 10,
"name": "[게시판 > 자유게시판] [RELOAD] SPA 안정화 대기",
"action": "wait",
"timeout": 5000
},
{
"id": 11,
"name": "[게시판 > 자유게시판] [VERIFY] 새로고침 후 데이터 유지 확인",
"action": "evaluate",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'VERIFY'};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,80);if(!found)R.err='⚠️ 새로고침 후 E2E_TEST_ 데이터 사라짐 — 서버 저장 실패 의심';return JSON.stringify(R);})()",
"timeout": 10000,
"phase": "VERIFY"
},
{
"id": 12,
"name": "[게시판 > 자유게시판] [DELETE] 테스트 데이터 삭제",
"action": "evaluate",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'DELETE'};const rows=Array.from(document.querySelectorAll('table tbody tr'));const row=rows.find(r=>r.innerText?.includes('E2E_TEST_'));if(!row){R.err='E2E_TEST_ 행 없음';R.ok=false;return JSON.stringify(R);}row.click();await w(2500);const delBtn=Array.from(document.querySelectorAll('button')).find(b=>b.innerText?.trim()==='삭제');if(!delBtn){R.err='삭제 버튼 없음';R.ok=false;return JSON.stringify(R);}delBtn.click();await w(1000);const cfm=Array.from(document.querySelectorAll('[role=\"alertdialog\"] button,[role=\"dialog\"] button,button')).find(b=>/확인|삭제|예|Yes/.test(b.innerText?.trim())&&b!==delBtn&&b.offsetParent!==null);if(cfm){cfm.click();await w(3000);}R.ok=true;return JSON.stringify(R);})()",
"timeout": 30000,
"phase": "DELETE",
"critical": true
},
{
"id": 13,
"name": "[게시판 > 자유게시판] [DELETE] 삭제 후 대기",
"action": "wait",
"timeout": 3000
},
{
"id": 14,
"name": "[게시판 > 자유게시판] [DELETE] 목록 복귀",
"action": "evaluate",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));if(location.search.includes('mode=view')||location.search.includes('mode=edit')||location.search.includes('mode=new')){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);}}return JSON.stringify({url:location.pathname+location.search});})()",
"timeout": 10000,
"phase": "DELETE"
},
{
"id": 15,
"name": "[게시판 > 자유게시판] [DELETE] 목록 안정화",
"action": "wait",
"timeout": 2000
},
{
"id": 16,
"name": "[게시판 > 자유게시판] [VERIFY] 삭제 확인",
"action": "evaluate",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'VERIFY_DELETE'};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.stillExists=!!found;R.ok=!found;if(found)R.warn='E2E_TEST_ 데이터가 여전히 존재';return JSON.stringify(R);})()",
"timeout": 10000,
"phase": "VERIFY"
}
]
}