2026-02-13 13:14:10 +09:00
|
|
|
{
|
|
|
|
|
"id": "workflow-board-approval",
|
|
|
|
|
"name": "비즈니스 워크플로우: 게시판→결재기안→결재함 흐름",
|
|
|
|
|
"version": "1.0.0",
|
|
|
|
|
"category": "workflow",
|
|
|
|
|
"auth": {
|
|
|
|
|
"role": "admin"
|
|
|
|
|
},
|
|
|
|
|
"menuNavigation": {
|
|
|
|
|
"level1": "게시판",
|
|
|
|
|
"level2": "자유게시판"
|
|
|
|
|
},
|
|
|
|
|
"screenshotPolicy": {
|
|
|
|
|
"captureOnFail": true,
|
|
|
|
|
"captureOnPass": false
|
|
|
|
|
},
|
|
|
|
|
"steps": [
|
|
|
|
|
{
|
|
|
|
|
"id": 1,
|
|
|
|
|
"name": "[게시판 > 자유게시판] wait",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 3000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 2,
|
|
|
|
|
"name": "[게시판 > 자유게시판] wait_for_table",
|
|
|
|
|
"action": "wait_for_table",
|
|
|
|
|
"timeout": 5000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 3,
|
|
|
|
|
"name": "[게시판 > 자유게시판] CAPTURE_POST",
|
|
|
|
|
"action": "evaluate",
|
2026-02-19 21:55:15 +09:00
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'CAPTURE_POST'};await w(1500);const rows=Array.from(document.querySelectorAll('table tbody tr')).filter(r=>r.offsetParent!==null);R.rowCount=rows.length;if(rows.length===0){R.warn='테이블에 데이터 없음';R.ok=true;return JSON.stringify(R);}const testRow=rows.find(r=>r.innerText?.includes('E2E_TEST_'));const targetRow=testRow||rows[0];R.usedTestRow=!!testRow;const cells=targetRow.querySelectorAll('td');let val='';const indices=[1,2,3];for(const i of indices){ const t=cells[i]?.innerText?.trim(); if(t&&t.length>=2&&t.length<=40&&!/^[\\d,.]+$/.test(t)&&!/^\\d{4}[-/]/.test(t)){val=t;break;}}R.postTitle=val;if(!val){R.warn='postTitle 추출 실패';R.ok=true;return JSON.stringify(R);}if(!window.__WORKFLOW_CTX__)window.__WORKFLOW_CTX__={};window.__WORKFLOW_CTX__.postTitle=val;R.ok=true;R.info='캐처: '+val;return JSON.stringify(R);})()",
|
2026-02-13 13:14:10 +09:00
|
|
|
"phase": "CAPTURE_POST"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 4,
|
|
|
|
|
"name": "[결재관리 > 기안함] 메뉴 이동",
|
|
|
|
|
"action": "menu_navigate",
|
|
|
|
|
"level1": "결재관리",
|
|
|
|
|
"level2": "기안함",
|
|
|
|
|
"timeout": 10000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 5,
|
|
|
|
|
"name": "[결재관리 > 기안함] wait",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 3000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 6,
|
|
|
|
|
"name": "[결재관리 > 기안함] wait_for_table",
|
|
|
|
|
"action": "wait_for_table",
|
|
|
|
|
"timeout": 5000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 7,
|
|
|
|
|
"name": "[결재관리 > 기안함] CHECK_DRAFTS",
|
|
|
|
|
"action": "evaluate",
|
|
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'CHECK_DRAFTS'};await w(1500);const rows=Array.from(document.querySelectorAll('table tbody tr')).filter(r=>r.offsetParent!==null);R.rowCount=rows.length;R.ok=true;R.info='테이블 행: '+rows.length;return JSON.stringify(R);})()",
|
|
|
|
|
"phase": "CHECK_DRAFTS"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 8,
|
|
|
|
|
"name": "[결재관리 > 결재함] 메뉴 이동",
|
|
|
|
|
"action": "menu_navigate",
|
|
|
|
|
"level1": "결재관리",
|
|
|
|
|
"level2": "결재함",
|
|
|
|
|
"timeout": 10000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 9,
|
|
|
|
|
"name": "[결재관리 > 결재함] wait",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 3000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 10,
|
|
|
|
|
"name": "[결재관리 > 결재함] wait_for_table",
|
|
|
|
|
"action": "wait_for_table",
|
|
|
|
|
"timeout": 5000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 11,
|
|
|
|
|
"name": "[결재관리 > 결재함] CHECK_APPROVALS",
|
|
|
|
|
"action": "evaluate",
|
|
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'CHECK_APPROVALS'};await w(1500);const rows=Array.from(document.querySelectorAll('table tbody tr')).filter(r=>r.offsetParent!==null);R.rowCount=rows.length;R.ok=true;R.info='테이블 행: '+rows.length;return JSON.stringify(R);})()",
|
|
|
|
|
"phase": "CHECK_APPROVALS"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 12,
|
|
|
|
|
"name": "[결재관리 > 참조함] 메뉴 이동",
|
|
|
|
|
"action": "menu_navigate",
|
|
|
|
|
"level1": "결재관리",
|
|
|
|
|
"level2": "참조함",
|
|
|
|
|
"timeout": 10000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 13,
|
|
|
|
|
"name": "[결재관리 > 참조함] wait",
|
|
|
|
|
"action": "wait",
|
|
|
|
|
"timeout": 3000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 14,
|
|
|
|
|
"name": "[결재관리 > 참조함] wait_for_table",
|
|
|
|
|
"action": "wait_for_table",
|
|
|
|
|
"timeout": 5000
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 15,
|
|
|
|
|
"name": "[결재관리 > 참조함] CHECK_REFERENCES",
|
|
|
|
|
"action": "evaluate",
|
|
|
|
|
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'CHECK_REFERENCES'};await w(1500);const rows=Array.from(document.querySelectorAll('table tbody tr')).filter(r=>r.offsetParent!==null);R.rowCount=rows.length;R.ok=true;R.info='테이블 행: '+rows.length;return JSON.stringify(R);})()",
|
|
|
|
|
"phase": "CHECK_REFERENCES"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|