2026-02-12 10:06:30 +09:00
|
|
|
{
|
|
|
|
|
"id": "batch-create-acc-deposit",
|
|
|
|
|
"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,
|
2026-02-13 10:22:34 +09:00
|
|
|
"name": "[회계관리 > 입금관리] ts 초기화",
|
|
|
|
|
"action": "evaluate",
|
|
|
|
|
"script": "(()=>{try{sessionStorage.removeItem('__E2E_TS__');}catch(e){}delete window.__E2E_TS__;return JSON.stringify({ok:true,cleared:true});})()",
|
|
|
|
|
"timeout": 3000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 3,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] 테이블 로드 대기",
|
|
|
|
|
"action": "wait_for_table",
|
|
|
|
|
"timeout": 5000
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 4,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [CREATE #1] 데이터 생성",
|
|
|
|
|
"action": "evaluate",
|
2026-02-13 10:22:34 +09:00
|
|
|
"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=window.__E2E_TS__||sessionStorage.getItem('__E2E_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());})();window.__E2E_TS__=ts;try{sessionStorage.setItem('__E2E_TS__',ts);}catch(e){}const R={phase:'CREATE_1',ts,n:1};const btn=Array.from(document.querySelectorAll('button')).find(b=>/입금.*등록|입금등록|등록/.test(b.innerText?.trim()));if(!btn){R.error='등록 버튼 없음';return JSON.stringify(R);}btn.click();await w(2500);R.url=location.pathname+location.search;const formArea=document.querySelector('main')||document.querySelector('[class*=\"content\"]')||document.body;const combos=Array.from(formArea.querySelectorAll('button[role=\"combobox\"]')).filter(b=>b.offsetParent!==null&&!b.closest('nav,[class*=sidebar],[class*=Sidebar]'));R.comboCount=combos.length;for(let i=0;i<combos.length;i++){ document.body.click();await w(200); combos[i].scrollIntoView({block:'center'}); combos[i].click();await w(700); const lb=document.querySelector('[role=\"listbox\"]'); if(lb){const opt=lb.querySelector('[role=\"option\"]');if(opt){opt.click();await w(500);}} else{document.dispatchEvent(new KeyboardEvent('keydown',{key:'Escape',bubbles:true}));await w(200);}}await w(500);const dateButtons=Array.from(formArea.querySelectorAll('button')).filter(b=>b.innerText?.trim()==='날짜 선택'&&b.offsetParent!==null);R.dateButtonCount=dateButtons.length;for(const db of dateButtons){ db.scrollIntoView({block:'center'});await w(200); db.click();await w(600); if(!document.querySelector('table[class*=\"rdp\"],.rdp-month,[role=\"grid\"]')){db.click();await w(800);} const today=document.querySelector('[aria-selected=\"true\"]')||document.querySelector('button[name=\"day\"].bg-primary')||document.querySelector('.rdp-day_today button')||Array.from(document.querySelectorAll('button[name=\"day\"],td[role=\"gridcell\"] button,.rdp-day button')).find(b=>b.getAttribute('aria-selected')==='true'||b.classList.contains('bg-primary')||b.tabIndex===0)||document.querySelector('button[name=\"day\"]')||document.querySelector('td[role=\"gridcell\"] button'); if(today){today.click();await w(400);} else{document.dispatchEvent(new KeyboardEvent('keydown',{key:'Escape',bubbles:true}));await w(300);}}await w(300);const nameInput=document.querySelector('input[placeholder*=\"입금자명\"]')||document.querySelector('input[placeholder*=\"입금자\"]');if(nameInput){sv(nameInput,'E2E_TEST_입금자_'+ts);await w(200);}R.nameFound=!!nameInput;const amtInput=document.querySelector('input[placeholder*=\"입금금액\"]')||document.querySelector('input[type=\"number\"]');if(amtInput){sv(amtInput,'100000');await w(200);}const noteInput=document.querySelector('input[placeholder*=\"적요\"]')||document.querySelector('textarea[placeholder*=\"적요\"]');if(noteInput){sv(noteInput,'E2E_TEST_입금_'+ts);await w(200);}R.noteFound=!!noteInput;if(nameInput&&!nameInput.value?.includes('E2E_TEST_')){sv(nameInput,'E2E_TEST_입금자_'+ts);await w(200);R.refilledName=true;}if(noteInput&&!noteInput.value?.includes('E2E_TEST_')){sv(noteInput,'E2E_TEST_입금_'+ts);await w(200);R.refilledNote=true;}const submitBtn=Array.from(document.querySelectorAll('button')).find(b=>/^등록$|^저장$/.test(b.innerText?.trim())&&b.offsetParent!==null);if(!submitBtn){R.error='등록 버튼 없음';return JSON.stringify(R);}submitBtn.click();await w(3000);R.urlAfter=location.pathname+location.search;const valErrs=Array.from((formArea||document.body).querySelectorAll('[class*=\"error\"],[class*=\"invalid\"],.text-red-500,.text-destructive')).filter(e=>e.offsetParent!==null&
|
2026-02-12 10:06:30 +09:00
|
|
|
"timeout": 30000,
|
|
|
|
|
"phase": "CREATE"
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 5,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [CREATE #1] 생성 후 대기",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 2000
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 6,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [CREATE #1] 목록 복귀",
|
|
|
|
|
"action": "evaluate",
|
2026-02-13 10:22:34 +09:00
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const onForm=location.search.includes('mode=new')||location.search.includes('mode=edit')||location.search.includes('mode=view')||new RegExp('/(new|[0-9]+|[0-9a-f]{8,})$').test(location.pathname);if(onForm){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});})()",
|
2026-02-12 10:06:30 +09:00
|
|
|
"timeout": 10000,
|
|
|
|
|
"phase": "CREATE"
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 7,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [CREATE #1] 목록 안정화",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 1500
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 8,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [CREATE #2] 데이터 생성",
|
|
|
|
|
"action": "evaluate",
|
2026-02-13 10:22:34 +09:00
|
|
|
"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=window.__E2E_TS__||sessionStorage.getItem('__E2E_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());})();window.__E2E_TS__=ts;try{sessionStorage.setItem('__E2E_TS__',ts);}catch(e){}const R={phase:'CREATE_2',ts,n:2};const btn=Array.from(document.querySelectorAll('button')).find(b=>/입금.*등록|입금등록|등록/.test(b.innerText?.trim()));if(!btn){R.error='등록 버튼 없음';return JSON.stringify(R);}btn.click();await w(2500);R.url=location.pathname+location.search;const formArea=document.querySelector('main')||document.querySelector('[class*=\"content\"]')||document.body;const combos=Array.from(formArea.querySelectorAll('button[role=\"combobox\"]')).filter(b=>b.offsetParent!==null&&!b.closest('nav,[class*=sidebar],[class*=Sidebar]'));R.comboCount=combos.length;for(let i=0;i<combos.length;i++){ document.body.click();await w(200); combos[i].scrollIntoView({block:'center'}); combos[i].click();await w(700); const lb=document.querySelector('[role=\"listbox\"]'); if(lb){const opt=lb.querySelector('[role=\"option\"]');if(opt){opt.click();await w(500);}} else{document.dispatchEvent(new KeyboardEvent('keydown',{key:'Escape',bubbles:true}));await w(200);}}await w(500);const dateButtons=Array.from(formArea.querySelectorAll('button')).filter(b=>b.innerText?.trim()==='날짜 선택'&&b.offsetParent!==null);R.dateButtonCount=dateButtons.length;for(const db of dateButtons){ db.scrollIntoView({block:'center'});await w(200); db.click();await w(600); if(!document.querySelector('table[class*=\"rdp\"],.rdp-month,[role=\"grid\"]')){db.click();await w(800);} const today=document.querySelector('[aria-selected=\"true\"]')||document.querySelector('button[name=\"day\"].bg-primary')||document.querySelector('.rdp-day_today button')||Array.from(document.querySelectorAll('button[name=\"day\"],td[role=\"gridcell\"] button,.rdp-day button')).find(b=>b.getAttribute('aria-selected')==='true'||b.classList.contains('bg-primary')||b.tabIndex===0)||document.querySelector('button[name=\"day\"]')||document.querySelector('td[role=\"gridcell\"] button'); if(today){today.click();await w(400);} else{document.dispatchEvent(new KeyboardEvent('keydown',{key:'Escape',bubbles:true}));await w(300);}}await w(300);const nameInput=document.querySelector('input[placeholder*=\"입금자명\"]')||document.querySelector('input[placeholder*=\"입금자\"]');if(nameInput){sv(nameInput,'E2E_TEST_입금자_'+ts);await w(200);}R.nameFound=!!nameInput;const amtInput=document.querySelector('input[placeholder*=\"입금금액\"]')||document.querySelector('input[type=\"number\"]');if(amtInput){sv(amtInput,'150000');await w(200);}const noteInput=document.querySelector('input[placeholder*=\"적요\"]')||document.querySelector('textarea[placeholder*=\"적요\"]');if(noteInput){sv(noteInput,'E2E_TEST_입금_'+ts);await w(200);}R.noteFound=!!noteInput;if(nameInput&&!nameInput.value?.includes('E2E_TEST_')){sv(nameInput,'E2E_TEST_입금자_'+ts);await w(200);R.refilledName=true;}if(noteInput&&!noteInput.value?.includes('E2E_TEST_')){sv(noteInput,'E2E_TEST_입금_'+ts);await w(200);R.refilledNote=true;}const submitBtn=Array.from(document.querySelectorAll('button')).find(b=>/^등록$|^저장$/.test(b.innerText?.trim())&&b.offsetParent!==null);if(!submitBtn){R.error='등록 버튼 없음';return JSON.stringify(R);}submitBtn.click();await w(3000);R.urlAfter=location.pathname+location.search;const valErrs=Array.from((formArea||document.body).querySelectorAll('[class*=\"error\"],[class*=\"invalid\"],.text-red-500,.text-destructive')).filter(e=>e.offsetParent!==null&
|
2026-02-12 10:06:30 +09:00
|
|
|
"timeout": 30000,
|
|
|
|
|
"phase": "CREATE"
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 9,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [CREATE #2] 생성 후 대기",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 2000
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 10,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [CREATE #2] 목록 복귀",
|
|
|
|
|
"action": "evaluate",
|
2026-02-13 10:22:34 +09:00
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const onForm=location.search.includes('mode=new')||location.search.includes('mode=edit')||location.search.includes('mode=view')||new RegExp('/(new|[0-9]+|[0-9a-f]{8,})$').test(location.pathname);if(onForm){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});})()",
|
2026-02-12 10:06:30 +09:00
|
|
|
"timeout": 10000,
|
|
|
|
|
"phase": "CREATE"
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 11,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [CREATE #2] 목록 안정화",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 1500
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 12,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [CREATE #3] 데이터 생성",
|
|
|
|
|
"action": "evaluate",
|
2026-02-13 10:22:34 +09:00
|
|
|
"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=window.__E2E_TS__||sessionStorage.getItem('__E2E_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());})();window.__E2E_TS__=ts;try{sessionStorage.setItem('__E2E_TS__',ts);}catch(e){}const R={phase:'CREATE_3',ts,n:3};const btn=Array.from(document.querySelectorAll('button')).find(b=>/입금.*등록|입금등록|등록/.test(b.innerText?.trim()));if(!btn){R.error='등록 버튼 없음';return JSON.stringify(R);}btn.click();await w(2500);R.url=location.pathname+location.search;const formArea=document.querySelector('main')||document.querySelector('[class*=\"content\"]')||document.body;const combos=Array.from(formArea.querySelectorAll('button[role=\"combobox\"]')).filter(b=>b.offsetParent!==null&&!b.closest('nav,[class*=sidebar],[class*=Sidebar]'));R.comboCount=combos.length;for(let i=0;i<combos.length;i++){ document.body.click();await w(200); combos[i].scrollIntoView({block:'center'}); combos[i].click();await w(700); const lb=document.querySelector('[role=\"listbox\"]'); if(lb){const opt=lb.querySelector('[role=\"option\"]');if(opt){opt.click();await w(500);}} else{document.dispatchEvent(new KeyboardEvent('keydown',{key:'Escape',bubbles:true}));await w(200);}}await w(500);const dateButtons=Array.from(formArea.querySelectorAll('button')).filter(b=>b.innerText?.trim()==='날짜 선택'&&b.offsetParent!==null);R.dateButtonCount=dateButtons.length;for(const db of dateButtons){ db.scrollIntoView({block:'center'});await w(200); db.click();await w(600); if(!document.querySelector('table[class*=\"rdp\"],.rdp-month,[role=\"grid\"]')){db.click();await w(800);} const today=document.querySelector('[aria-selected=\"true\"]')||document.querySelector('button[name=\"day\"].bg-primary')||document.querySelector('.rdp-day_today button')||Array.from(document.querySelectorAll('button[name=\"day\"],td[role=\"gridcell\"] button,.rdp-day button')).find(b=>b.getAttribute('aria-selected')==='true'||b.classList.contains('bg-primary')||b.tabIndex===0)||document.querySelector('button[name=\"day\"]')||document.querySelector('td[role=\"gridcell\"] button'); if(today){today.click();await w(400);} else{document.dispatchEvent(new KeyboardEvent('keydown',{key:'Escape',bubbles:true}));await w(300);}}await w(300);const nameInput=document.querySelector('input[placeholder*=\"입금자명\"]')||document.querySelector('input[placeholder*=\"입금자\"]');if(nameInput){sv(nameInput,'E2E_TEST_입금자_'+ts);await w(200);}R.nameFound=!!nameInput;const amtInput=document.querySelector('input[placeholder*=\"입금금액\"]')||document.querySelector('input[type=\"number\"]');if(amtInput){sv(amtInput,'200000');await w(200);}const noteInput=document.querySelector('input[placeholder*=\"적요\"]')||document.querySelector('textarea[placeholder*=\"적요\"]');if(noteInput){sv(noteInput,'E2E_TEST_입금_'+ts);await w(200);}R.noteFound=!!noteInput;if(nameInput&&!nameInput.value?.includes('E2E_TEST_')){sv(nameInput,'E2E_TEST_입금자_'+ts);await w(200);R.refilledName=true;}if(noteInput&&!noteInput.value?.includes('E2E_TEST_')){sv(noteInput,'E2E_TEST_입금_'+ts);await w(200);R.refilledNote=true;}const submitBtn=Array.from(document.querySelectorAll('button')).find(b=>/^등록$|^저장$/.test(b.innerText?.trim())&&b.offsetParent!==null);if(!submitBtn){R.error='등록 버튼 없음';return JSON.stringify(R);}submitBtn.click();await w(3000);R.urlAfter=location.pathname+location.search;const valErrs=Array.from((formArea||document.body).querySelectorAll('[class*=\"error\"],[class*=\"invalid\"],.text-red-500,.text-destructive')).filter(e=>e.offsetParent!==null&
|
2026-02-12 10:06:30 +09:00
|
|
|
"timeout": 30000,
|
|
|
|
|
"phase": "CREATE"
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 13,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [CREATE #3] 생성 후 대기",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 2000
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 14,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [CREATE #3] 목록 복귀",
|
|
|
|
|
"action": "evaluate",
|
2026-02-13 10:22:34 +09:00
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const onForm=location.search.includes('mode=new')||location.search.includes('mode=edit')||location.search.includes('mode=view')||new RegExp('/(new|[0-9]+|[0-9a-f]{8,})$').test(location.pathname);if(onForm){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});})()",
|
2026-02-12 10:06:30 +09:00
|
|
|
"timeout": 10000,
|
|
|
|
|
"phase": "CREATE"
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 15,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [CREATE #3] 목록 안정화",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 1500
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 16,
|
|
|
|
|
"name": "[회계관리 > 입금관리] [VERIFY] 목록 새로고침",
|
|
|
|
|
"action": "reload"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 17,
|
|
|
|
|
"name": "[회계관리 > 입금관리] [VERIFY] 테이블 로드 대기",
|
|
|
|
|
"action": "wait_for_table",
|
|
|
|
|
"timeout": 10000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 18,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [VERIFY] 3건 생성 확인",
|
|
|
|
|
"action": "evaluate",
|
2026-02-13 10:22:34 +09:00
|
|
|
"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=window.__E2E_TS__||sessionStorage.getItem('__E2E_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());})();window.__E2E_TS__=ts;try{sessionStorage.setItem('__E2E_TS__',ts);}catch(e){}const R={phase:'VERIFY_BATCH',expected:3,ts};await w(1000);R.url=location.pathname;const rows=Array.from(document.querySelectorAll('table tbody tr'));R.rowCount=rows.length;let batchRows=rows.filter(r=>r.innerText?.includes('E2E_TEST_')&&r.innerText?.includes(ts));if(!batchRows.length&&3>0){batchRows=rows.filter(r=>r.innerText?.includes('E2E_TEST_입금'));R.usedFallback=true;}R.batchCount=batchRows.length;R.countMatch=3===0?R.batchCount===0:R.batchCount>=3;if(!R.countMatch){R.row0=rows[0]?.innerText?.substring(0,80);R.bodyHas=document.body.innerText.includes('E2E_TEST_');R.warn='기대 3건, 실제 '+R.batchCount+'건 rows='+R.rowCount+' body='+R.bodyHas+' row0=['+R.row0+']';}R.ok=R.countMatch;return JSON.stringify(R);})()",
|
2026-02-12 10:06:30 +09:00
|
|
|
"timeout": 15000,
|
|
|
|
|
"phase": "VERIFY"
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 19,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #1] 데이터 삭제",
|
|
|
|
|
"action": "evaluate",
|
2026-02-13 10:22:34 +09:00
|
|
|
"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=window.__E2E_TS__||sessionStorage.getItem('__E2E_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());})();window.__E2E_TS__=ts;try{sessionStorage.setItem('__E2E_TS__',ts);}catch(e){}const R={phase:'DELETE_1'};const rows=Array.from(document.querySelectorAll('table tbody tr'));const targetRow=rows.find(r=>r.innerText?.includes('E2E_TEST_')&&r.innerText?.includes(ts))||rows.find(r=>r.innerText?.includes('E2E_TEST_입금'));if(!targetRow){R.error='E2E_TEST_ 데이터 없음 (ts='+ts+')';R.ok=false;return JSON.stringify(R);}R.targetText=targetRow.innerText?.substring(0,60);targetRow.click();await w(2500);const delBtn=Array.from(document.querySelectorAll('button')).find(b=>b.innerText?.trim()==='삭제');if(!delBtn){R.error='삭제 버튼 없음';R.ok=false;return JSON.stringify(R);}delBtn.click();await w(1000);const confirmBtn=Array.from(document.querySelectorAll('[role=\"alertdialog\"] button,[role=\"dialog\"] button,button')).find(b=>/확인|삭제|예|Yes/.test(b.innerText?.trim())&&b!==delBtn&&b.offsetParent!==null);if(confirmBtn){confirmBtn.click();await w(3000);}R.urlAfter=location.pathname+location.search;R.ok=true;return JSON.stringify(R);})()",
|
2026-02-12 10:06:30 +09:00
|
|
|
"timeout": 30000,
|
|
|
|
|
"phase": "DELETE",
|
|
|
|
|
"critical": true
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 20,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #1] 삭제 후 대기",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 2000
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 21,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #1] 목록 복귀",
|
|
|
|
|
"action": "evaluate",
|
2026-02-13 10:22:34 +09:00
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const onForm=location.search.includes('mode=new')||location.search.includes('mode=edit')||location.search.includes('mode=view')||new RegExp('/(new|[0-9]+|[0-9a-f]{8,})$').test(location.pathname);if(onForm){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});})()",
|
2026-02-12 10:06:30 +09:00
|
|
|
"timeout": 10000,
|
|
|
|
|
"phase": "DELETE"
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 22,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #1] 목록 안정화",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 1500
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 100,
|
|
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #2] 전 입금관리 복귀",
|
|
|
|
|
"action": "navigate",
|
|
|
|
|
"target": "/accounting/deposits"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 101,
|
|
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #2] 전 테이블 대기",
|
|
|
|
|
"action": "wait_for_table",
|
|
|
|
|
"timeout": 10000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 110,
|
|
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #2] 전 안정화 대기",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"duration": 2000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 23,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #2] 데이터 삭제",
|
|
|
|
|
"action": "evaluate",
|
2026-02-13 10:22:34 +09:00
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const ts=window.__E2E_TS__||sessionStorage.getItem('__E2E_TS__')||'';const R={phase:'DELETE_2',ts};const findRow=()=>{const rows=Array.from(document.querySelectorAll('table tbody tr'));return rows.find(r=>r.innerText?.includes('E2E_TEST_입금'))||rows.find(r=>r.innerText?.includes('E2E_TEST_'));};let targetRow=findRow();R.attempt1=!!targetRow;R.rowCount1=document.querySelectorAll('table tbody tr').length;if(!targetRow){R.pagination=true;const allBtns=Array.from(document.querySelectorAll('nav button,[class*=\"pagination\"] button,[class*=\"Pagination\"] button'));const pageBtns=allBtns.filter(b=>/^[0-9]+$/.test(b.innerText?.trim()));R.pageBtnCount=pageBtns.length;for(const btn of pageBtns){const txt=btn.innerText?.trim();if(txt==='1')continue;btn.click();await w(2000);targetRow=findRow();if(targetRow){R.foundOnPage=txt;break;}}if(!targetRow){const nextBtns=[...document.querySelectorAll('button[aria-label*=\"다음\"],button[aria-label*=\"Next\"],button[aria-label*=\"next\"]'),...allBtns.filter(b=>/^[>›»]$/.test(b.innerText?.trim()))];R.nextBtnCount=nextBtns.length;for(let pg=0;pg<5&&!targetRow;pg++){const nb=nextBtns.find(b=>!b.disabled&&b.offsetParent!==null);if(!nb)break;nb.click();await w(2000);targetRow=findRow();if(targetRow){R.foundViaNext=pg+1;break;}}}}if(!targetRow){R.url=location.href;R.rowCount=document.querySelectorAll('table tbody tr').length;R.row0=document.querySelector('table tbody tr')?.innerText?.substring(0,80);R.bodyHasE2E=document.body.innerText.includes('E2E_TEST_');R.error='E2E_TEST_ 없음 rows='+R.rowCount+' pg='+R.pageBtnCount+' next='+R.nextBtnCount+' body='+R.bodyHasE2E+' url='+location.pathname;R.ok=false;return JSON.stringify(R);}R.targetText=targetRow.innerText?.substring(0,60);targetRow.click();await w(2500);const delBtn=Array.from(document.querySelectorAll('button')).find(b=>b.innerText?.trim()==='삭제');if(!delBtn){R.error='삭제 버튼 없음';R.ok=false;return JSON.stringify(R);}delBtn.click();await w(1000);const confirmBtn=Array.from(document.querySelectorAll('[role=\"alertdialog\"] button,[role=\"dialog\"] button,button')).find(b=>/확인|삭제|예|Yes/.test(b.innerText?.trim())&&b!==delBtn&&b.offsetParent!==null);if(confirmBtn){confirmBtn.click();await w(3000);}R.urlAfter=location.pathname+location.search;R.ok=true;return JSON.stringify(R);})()",
|
|
|
|
|
"timeout": 45000,
|
2026-02-12 10:06:30 +09:00
|
|
|
"phase": "DELETE",
|
|
|
|
|
"critical": true
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 24,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #2] 삭제 후 대기",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 2000
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 25,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #2] 목록 복귀",
|
|
|
|
|
"action": "evaluate",
|
2026-02-13 10:22:34 +09:00
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const onForm=location.search.includes('mode=new')||location.search.includes('mode=edit')||location.search.includes('mode=view')||new RegExp('/(new|[0-9]+|[0-9a-f]{8,})$').test(location.pathname);if(onForm){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});})()",
|
2026-02-12 10:06:30 +09:00
|
|
|
"timeout": 10000,
|
|
|
|
|
"phase": "DELETE"
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 26,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #2] 목록 안정화",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 1500
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 102,
|
|
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #3] 전 입금관리 복귀",
|
|
|
|
|
"action": "navigate",
|
|
|
|
|
"target": "/accounting/deposits"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 103,
|
|
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #3] 전 테이블 대기",
|
|
|
|
|
"action": "wait_for_table",
|
|
|
|
|
"timeout": 10000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 111,
|
|
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #3] 전 안정화 대기",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"duration": 2000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 27,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #3] 데이터 삭제",
|
|
|
|
|
"action": "evaluate",
|
2026-02-13 10:22:34 +09:00
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const ts=window.__E2E_TS__||sessionStorage.getItem('__E2E_TS__')||'';const R={phase:'DELETE_3',ts};const findRow=()=>{const rows=Array.from(document.querySelectorAll('table tbody tr'));return rows.find(r=>r.innerText?.includes('E2E_TEST_입금'))||rows.find(r=>r.innerText?.includes('E2E_TEST_'));};let targetRow=findRow();R.attempt1=!!targetRow;R.rowCount1=document.querySelectorAll('table tbody tr').length;if(!targetRow){R.pagination=true;const allBtns=Array.from(document.querySelectorAll('nav button,[class*=\"pagination\"] button,[class*=\"Pagination\"] button'));const pageBtns=allBtns.filter(b=>/^[0-9]+$/.test(b.innerText?.trim()));R.pageBtnCount=pageBtns.length;for(const btn of pageBtns){const txt=btn.innerText?.trim();if(txt==='1')continue;btn.click();await w(2000);targetRow=findRow();if(targetRow){R.foundOnPage=txt;break;}}if(!targetRow){const nextBtns=[...document.querySelectorAll('button[aria-label*=\"다음\"],button[aria-label*=\"Next\"],button[aria-label*=\"next\"]'),...allBtns.filter(b=>/^[>›»]$/.test(b.innerText?.trim()))];R.nextBtnCount=nextBtns.length;for(let pg=0;pg<5&&!targetRow;pg++){const nb=nextBtns.find(b=>!b.disabled&&b.offsetParent!==null);if(!nb)break;nb.click();await w(2000);targetRow=findRow();if(targetRow){R.foundViaNext=pg+1;break;}}}}if(!targetRow){R.url=location.href;R.rowCount=document.querySelectorAll('table tbody tr').length;R.row0=document.querySelector('table tbody tr')?.innerText?.substring(0,80);R.bodyHasE2E=document.body.innerText.includes('E2E_TEST_');R.error='E2E_TEST_ 없음 rows='+R.rowCount+' pg='+R.pageBtnCount+' next='+R.nextBtnCount+' body='+R.bodyHasE2E+' url='+location.pathname;R.ok=false;return JSON.stringify(R);}R.targetText=targetRow.innerText?.substring(0,60);targetRow.click();await w(2500);const delBtn=Array.from(document.querySelectorAll('button')).find(b=>b.innerText?.trim()==='삭제');if(!delBtn){R.error='삭제 버튼 없음';R.ok=false;return JSON.stringify(R);}delBtn.click();await w(1000);const confirmBtn=Array.from(document.querySelectorAll('[role=\"alertdialog\"] button,[role=\"dialog\"] button,button')).find(b=>/확인|삭제|예|Yes/.test(b.innerText?.trim())&&b!==delBtn&&b.offsetParent!==null);if(confirmBtn){confirmBtn.click();await w(3000);}R.urlAfter=location.pathname+location.search;R.ok=true;return JSON.stringify(R);})()",
|
|
|
|
|
"timeout": 45000,
|
2026-02-12 10:06:30 +09:00
|
|
|
"phase": "DELETE",
|
|
|
|
|
"critical": true
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 28,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #3] 삭제 후 대기",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 2000
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 29,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #3] 목록 복귀",
|
|
|
|
|
"action": "evaluate",
|
2026-02-13 10:22:34 +09:00
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const onForm=location.search.includes('mode=new')||location.search.includes('mode=edit')||location.search.includes('mode=view')||new RegExp('/(new|[0-9]+|[0-9a-f]{8,})$').test(location.pathname);if(onForm){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});})()",
|
2026-02-12 10:06:30 +09:00
|
|
|
"timeout": 10000,
|
|
|
|
|
"phase": "DELETE"
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 30,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [DELETE #3] 목록 안정화",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 1500
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-02-13 10:22:34 +09:00
|
|
|
"id": 31,
|
|
|
|
|
"name": "[회계관리 > 입금관리] [VERIFY] 목록 새로고침",
|
|
|
|
|
"action": "reload"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 32,
|
|
|
|
|
"name": "[회계관리 > 입금관리] [VERIFY] 테이블 로드 대기",
|
|
|
|
|
"action": "wait_for_table",
|
|
|
|
|
"timeout": 10000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 33,
|
2026-02-12 10:06:30 +09:00
|
|
|
"name": "[회계관리 > 입금관리] [VERIFY] 전체 삭제 확인",
|
|
|
|
|
"action": "evaluate",
|
2026-02-13 10:22:34 +09:00
|
|
|
"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=window.__E2E_TS__||sessionStorage.getItem('__E2E_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());})();window.__E2E_TS__=ts;try{sessionStorage.setItem('__E2E_TS__',ts);}catch(e){}const R={phase:'VERIFY_BATCH',expected:0,ts};await w(1000);R.url=location.pathname;const rows=Array.from(document.querySelectorAll('table tbody tr'));R.rowCount=rows.length;let batchRows=rows.filter(r=>r.innerText?.includes('E2E_TEST_')&&r.innerText?.includes(ts));if(!batchRows.length&&0>0){batchRows=rows.filter(r=>r.innerText?.includes('E2E_TEST_입금'));R.usedFallback=true;}R.batchCount=batchRows.length;R.countMatch=0===0?R.batchCount===0:R.batchCount>=0;if(!R.countMatch){R.row0=rows[0]?.innerText?.substring(0,80);R.bodyHas=document.body.innerText.includes('E2E_TEST_');R.warn='기대 0건, 실제 '+R.batchCount+'건 rows='+R.rowCount+' body='+R.bodyHas+' row0=['+R.row0+']';}R.ok=R.countMatch;return JSON.stringify(R);})()",
|
2026-02-12 10:06:30 +09:00
|
|
|
"timeout": 15000,
|
|
|
|
|
"phase": "VERIFY"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|