- company-info.json: button[text='수정'], textbox[label='...'][disabled], dialog button[text='취소'] 등 Playwright ARIA 셀렉터를 단순 텍스트 타겟으로 변경
- settings-notification.json: label:has-text('이메일') button[role='switch'] 등 복합 셀렉터를 단순 텍스트 타겟으로 변경
- settings-permission.json: 다중 CSS 셀렉터 목록을 단일 셀렉터로 간소화
- settings-company.json: button:has-text('수정'), input#businessType 등을 단순 텍스트 타겟으로 변경
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
222 lines
6.5 KiB
JSON
222 lines
6.5 KiB
JSON
{
|
|
"id": "settings-permission",
|
|
"name": "권한관리 테스트",
|
|
"screenshotPolicy": {
|
|
"onErrorOnly": true,
|
|
"captureOn": [
|
|
"error",
|
|
"fail",
|
|
"timeout",
|
|
"404",
|
|
"500",
|
|
"blocked"
|
|
]
|
|
},
|
|
"description": "설정 > 권한관리 메뉴의 권한 그룹 목록 조회 및 UI 검증 테스트",
|
|
"baseUrl": "https://dev.codebridge-x.com",
|
|
"menuNavigation": {
|
|
"level1": "설정",
|
|
"level2": "권한관리",
|
|
"expectedUrl": "/settings/permissions",
|
|
"searchWithinParent": true,
|
|
"closeOtherMenus": true
|
|
},
|
|
"auth": {
|
|
"username": "TestUser5",
|
|
"password": "password123!"
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": 1,
|
|
"name": "메뉴 진입: 설정 > 권한관리",
|
|
"action": "menu_navigate",
|
|
"level1": "설정",
|
|
"level2": "권한관리",
|
|
"expected": {
|
|
"url_contains": "/settings/permissions",
|
|
"visible": [
|
|
"권한관리",
|
|
"권한"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "URL 검증",
|
|
"action": "verify_url",
|
|
"expected": {
|
|
"url_contains": "/settings/permissions"
|
|
}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "필수 검증 #5: 목업 페이지 감지",
|
|
"action": "verify_not_mockup",
|
|
"checks": [
|
|
"권한 그룹 목록 표시",
|
|
"권한 추가 버튼 존재",
|
|
"권한 설정 영역 존재"
|
|
],
|
|
"expected": "정상 페이지 (목업 아님)"
|
|
},
|
|
{
|
|
"id": 4,
|
|
"name": "통계 카드 확인",
|
|
"action": "evaluate",
|
|
"script": "(() => {\n const cards = document.querySelectorAll('[class*=\"card\"], [class*=\"Card\"], [class*=\"stat\"], [class*=\"Stat\"], [class*=\"summary\"]');\n const texts = Array.from(cards).map(c => c.innerText?.substring(0, 30)).filter(Boolean);\n return texts.length > 0 ? 'Stats: ' + texts.length + ' cards found' : 'No stat cards (ok)';\n })()"
|
|
},
|
|
{
|
|
"id": 5,
|
|
"name": "권한 그룹 목록 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"권한 그룹 목록 테이블 또는 리스트",
|
|
"기본 역할 (관리자, 사용자 등) 표시",
|
|
"권한 추가 버튼"
|
|
],
|
|
"expected": "권한 목록 정상 표시"
|
|
},
|
|
{
|
|
"id": 6,
|
|
"phase": "READ",
|
|
"name": "[READ] 첫 번째 권한 그룹 클릭",
|
|
"action": "click_if_exists",
|
|
"target": "table tbody tr:first-child",
|
|
"expected": {
|
|
"visible": [
|
|
"메뉴 권한",
|
|
"기능 권한"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": 7,
|
|
"phase": "READ",
|
|
"name": "[READ] 권한 체크박스 구조 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"메뉴별 읽기/쓰기/삭제 권한",
|
|
"전체 선택/해제 기능"
|
|
],
|
|
"expected": "권한 체크박스 매트릭스 표시"
|
|
},
|
|
{
|
|
"id": 8,
|
|
"phase": "READ",
|
|
"name": "[READ] 권한 상세 정보 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"권한 그룹 정보 표시됨",
|
|
"체크박스 또는 권한 목록 표시"
|
|
],
|
|
"expected": "권한 상세 정보 표시"
|
|
},
|
|
{
|
|
"id": 9,
|
|
"name": "권한 추가 버튼 확인",
|
|
"action": "click_if_exists",
|
|
"target": "추가",
|
|
"expected": {
|
|
"modal_or_form": true
|
|
}
|
|
},
|
|
{
|
|
"id": 10,
|
|
"name": "추가 모달 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"역할명 입력 필드",
|
|
"설명 입력 필드"
|
|
],
|
|
"expected": "권한 추가 폼 표시"
|
|
},
|
|
{
|
|
"id": 11,
|
|
"name": "테이블 행 클릭 - 상세 페이지 이동",
|
|
"action": "click_first_row"
|
|
},
|
|
{
|
|
"id": 12,
|
|
"name": "상세 페이지 로딩 대기",
|
|
"action": "wait",
|
|
"duration": 1000
|
|
},
|
|
{
|
|
"id": 13,
|
|
"name": "상세 페이지 - 콘텐츠 확인",
|
|
"action": "evaluate",
|
|
"script": "(() => {\n const inputs = document.querySelectorAll('input:not([type=\"hidden\"]), textarea, select');\n const buttons = document.querySelectorAll('button');\n const hasDetail = inputs.length > 0 || document.body.innerText.includes('상세') || document.body.innerText.includes('수정');\n return hasDetail ? 'Detail page: ' + inputs.length + ' inputs, ' + buttons.length + ' buttons' : 'List page (no detail view)';\n })()"
|
|
},
|
|
{
|
|
"id": 14,
|
|
"name": "모달/상세 닫기",
|
|
"action": "close_modal_if_open"
|
|
},
|
|
{
|
|
"id": 15,
|
|
"name": "추가 모달 닫기",
|
|
"action": "close_modal_if_open",
|
|
"expected": "모달 닫힘"
|
|
},
|
|
{
|
|
"id": 16,
|
|
"name": "저장 버튼 존재 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"저장 또는 적용 버튼 존재"
|
|
],
|
|
"expected": "저장 버튼 표시"
|
|
},
|
|
{
|
|
"id": 17,
|
|
"name": "삭제 버튼 존재 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"삭제 버튼 존재 여부"
|
|
],
|
|
"expected": "삭제 기능 확인"
|
|
},
|
|
{
|
|
"id": 18,
|
|
"name": "페이지네이션 확인",
|
|
"action": "evaluate",
|
|
"script": "(() => {\n const paginationSels = ['[class*=\"pagination\"]', '[class*=\"Pagination\"]', 'nav[aria-label*=\"page\"]', 'button[aria-label*=\"page\"]', '[class*=\"pager\"]'];\n for (const sel of paginationSels) {\n const el = document.querySelector(sel);\n if (el) return 'Pagination found';\n }\n const pageButtons = Array.from(document.querySelectorAll('button')).filter(b => /^\\d+$/.test(b.innerText?.trim()));\n if (pageButtons.length > 0) return 'Page buttons found: ' + pageButtons.length;\n return 'No pagination (ok - may have single page)';\n })()"
|
|
},
|
|
{
|
|
"id": 19,
|
|
"name": "콘솔 에러 확인",
|
|
"action": "verify_element",
|
|
"target": "body"
|
|
},
|
|
{
|
|
"id": 20,
|
|
"name": "권한관리 페이지 최종 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"권한관리 페이지 정상 동작"
|
|
],
|
|
"expected": "페이지 정상 확인"
|
|
}
|
|
],
|
|
"expectedAPIs": [
|
|
{
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/roles",
|
|
"description": "역할 목록 조회"
|
|
}
|
|
],
|
|
"requiredVerifications": [
|
|
{
|
|
"id": 5,
|
|
"name": "목업 페이지 감지",
|
|
"steps": [
|
|
2
|
|
],
|
|
"criteria": "권한 목록, 추가 버튼, 권한 체크박스 존재"
|
|
}
|
|
],
|
|
"rollbackPlan": {
|
|
"note": "READ-only 패턴으로 안정성 우선"
|
|
}
|
|
}
|