feat: Phase 3 시나리오 60개 추가 (워크플로우 5, 성능 20, 엣지케이스 15, 접근성 20)

- workflow-*: 다중 모듈 비즈니스 워크플로우 5종
- perf-*: 20개 주요 페이지 성능 측정 시나리오
- edge-*: 폼 검증, 경계값, 특수문자, 빠른 클릭 등 15종
- a11y-*: WCAG 2.1 AA 접근성 검사 20개 페이지
This commit is contained in:
김보곤
2026-02-13 13:14:10 +09:00
parent 6e7fd08699
commit b9ff143c8d
72 changed files with 4208 additions and 112 deletions

View File

@@ -0,0 +1,54 @@
{
"id": "edge-concurrent-action-hr",
"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": "탭/필터 빠른 전환 테스트",
"action": "evaluate",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'RAPID_TAB_SWITCH'};const tabs=Array.from(document.querySelectorAll('[role=\"tab\"],button[class*=\"tab\"],a[class*=\"tab\"]')).filter(el=>el.offsetParent!==null);R.tabCount=tabs.length;if(tabs.length<2){ const buttons=Array.from(document.querySelectorAll('button')).filter(b=>b.offsetParent!==null&&!b.disabled); R.fallbackButtonCount=buttons.length; if(buttons.length>=2){ for(let i=0;i<3;i++){buttons[0].click();await w(100);buttons[1].click();await w(100);} R.rapidSwitchCount=6; }else{R.warn='탭/버튼 2개 미만';R.ok=true;return JSON.stringify(R);}}else{ for(let i=0;i<3;i++){tabs[0].click();await w(100);tabs[1%tabs.length].click();await w(100);} R.rapidSwitchCount=6;}await w(2000);const hasError=document.querySelector('[class*=\"error\"],[class*=\"Error\"],[role=\"alert\"]');R.hasError=!!hasError;R.pageStable=!document.querySelector('.loading,.spinner,[class*=\"skeleton\"]');R.ok=true;R.info=R.hasError?'⚠️ 빠른 전환 후 에러 발생':'✅ 빠른 전환 후 정상 상태';return JSON.stringify(R);})()",
"timeout": 15000,
"phase": "RAPID_TAB_SWITCH"
},
{
"id": 4,
"name": "페이지네이션 빠른 클릭",
"action": "evaluate",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'RAPID_PAGINATION'};const pageButtons=Array.from(document.querySelectorAll('[class*=\"pagination\"] button,[class*=\"Pagination\"] button,nav button')).filter(el=>el.offsetParent!==null&&!el.disabled);R.paginationButtonCount=pageButtons.length;if(pageButtons.length<2){R.warn='페이지네이션 버튼 부족';R.ok=true;return JSON.stringify(R);}const nextBtn=pageButtons.find(b=>/다음|next|>||»/.test(b.innerText?.trim()||b.getAttribute('aria-label')||''));const prevBtn=pageButtons.find(b=>/이전|prev|<||«/.test(b.innerText?.trim()||b.getAttribute('aria-label')||''));if(nextBtn&&prevBtn){ for(let i=0;i<3;i++){nextBtn.click();await w(50);prevBtn.click();await w(50);} R.rapidNavCount=6;}else if(pageButtons.length>=2){ for(let i=0;i<3;i++){pageButtons[0].click();await w(50);pageButtons[1].click();await w(50);} R.rapidNavCount=6;}await w(2000);const hasError=document.querySelector('[class*=\"error\"],[class*=\"Error\"],[role=\"alert\"]');R.hasError=!!hasError;R.pageStable=!document.querySelector('.loading,.spinner,[class*=\"skeleton\"]');R.ok=true;R.info=R.hasError?'⚠️ 빠른 페이지 전환 후 에러':'✅ 빠른 페이지 전환 후 정상';return JSON.stringify(R);})()",
"timeout": 15000,
"phase": "RAPID_PAGINATION"
},
{
"id": 5,
"name": "다중 버튼 동시 클릭 시뮬레이션",
"action": "evaluate",
"script": "(async()=>{const w=ms=>new Promise(r=>setTimeout(r,ms));const R={phase:'MULTI_BUTTON_CLICK'};const buttons=Array.from(document.querySelectorAll('button')).filter(b=>b.offsetParent!==null&&!b.disabled);R.totalButtons=buttons.length;if(buttons.length<3){R.warn='버튼 3개 미만';R.ok=true;return JSON.stringify(R);}const clickTargets=buttons.slice(0,3);for(const btn of clickTargets){btn.click();await w(30);}await w(2000);const hasError=document.querySelector('[class*=\"error\"],[class*=\"Error\"],[role=\"alert\"]');R.hasError=!!hasError;R.pageStable=!document.querySelector('.loading,.spinner,[class*=\"skeleton\"]');const modal=document.querySelector('[role=\"dialog\"],[aria-modal=\"true\"]');if(modal&&modal.offsetParent!==null){ const closeBtn=modal.querySelector('button[class*=\"close\"],[aria-label=\"닫기\"]')||Array.from(modal.querySelectorAll('button')).find(b=>/닫기|취소|Close/.test(b.innerText?.trim())); if(closeBtn){closeBtn.click();await w(500);} else{document.dispatchEvent(new KeyboardEvent('keydown',{key:'Escape',bubbles:true}));await w(500);}}R.ok=true;R.info=R.hasError?'⚠️ 다중 버튼 클릭 후 에러':'✅ 다중 버튼 클릭 후 정상';return JSON.stringify(R);})()",
"timeout": 15000,
"phase": "MULTI_BUTTON_CLICK"
}
]
}