- deposit-management: '계정과목명 드롭다운' → '계정과목명', '거래처 드롭다운' → '거래처', '입금 유형 드롭다운' → '입금 유형' - withdrawal-management: 동일 패턴 수정 (계정과목명, 거래처, 출금 유형) - accounting-receivable: :has-text() 셀렉터를 plain text로 변환 (목록, 엑셀, 미수금액, 연체) - accounting-bill: :has-text() 셀렉터를 plain text로 변환 (등록, 저장, 수정, 삭제, 확인), 중복 CSS 셀렉터 단순화 - settings-bank-account: :has-text() 셀렉터를 plain text로 변환 (등록) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
234 lines
7.4 KiB
JSON
234 lines
7.4 KiB
JSON
{
|
|
"id": "settings-bank-account",
|
|
"name": "계좌관리 테스트",
|
|
"screenshotPolicy": {
|
|
"onErrorOnly": true,
|
|
"captureOn": [
|
|
"error",
|
|
"fail",
|
|
"timeout",
|
|
"404",
|
|
"500",
|
|
"blocked"
|
|
]
|
|
},
|
|
"description": "설정 > 계좌관리 메뉴의 계좌 목록 조회 및 UI 검증 테스트",
|
|
"baseUrl": "https://dev.codebridge-x.com",
|
|
"menuNavigation": {
|
|
"level1": "설정",
|
|
"level2": "계좌관리",
|
|
"expectedUrl": "/settings/accounts",
|
|
"searchWithinParent": true,
|
|
"closeOtherMenus": true
|
|
},
|
|
"auth": {
|
|
"username": "TestUser5",
|
|
"password": "password123!"
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": 1,
|
|
"name": "메뉴 진입: 설정 > 계좌관리",
|
|
"action": "menu_navigate",
|
|
"level1": "설정",
|
|
"level2": "계좌관리",
|
|
"expected": {
|
|
"url_contains": "/settings/accounts",
|
|
"visible": [
|
|
"계좌관리",
|
|
"계좌"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "URL 검증",
|
|
"action": "verify_url",
|
|
"expected": {
|
|
"url_contains": "/settings/accounts"
|
|
}
|
|
},
|
|
{
|
|
"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_table",
|
|
"checks": [
|
|
"은행명 컬럼",
|
|
"계좌번호 컬럼",
|
|
"예금주 컬럼",
|
|
"계좌유형 컬럼"
|
|
],
|
|
"expected": "계좌 테이블 컬럼 정상 표시"
|
|
},
|
|
{
|
|
"id": 6,
|
|
"name": "목록 필터 테스트",
|
|
"action": "evaluate",
|
|
"script": "(() => {\n const selects = document.querySelectorAll('select, [role=\"combobox\"], button[class*=\"select\"], button[class*=\"Select\"]');\n if (selects.length > 0) {\n return 'Filters found: ' + selects.length;\n }\n return 'No filter dropdowns (ok)';\n })()"
|
|
},
|
|
{
|
|
"id": 7,
|
|
"name": "⚠️ 필수 검증: 검색 기능",
|
|
"action": "search",
|
|
"value": "테스트"
|
|
},
|
|
{
|
|
"id": 8,
|
|
"name": "검색 결과 대기",
|
|
"action": "wait",
|
|
"duration": 1000
|
|
},
|
|
{
|
|
"id": 9,
|
|
"name": "검색 결과 데이터 검증",
|
|
"action": "evaluate",
|
|
"script": "(() => {\n const rows = document.querySelectorAll('table tbody tr, [role=\"row\"]');\n return 'Search result: ' + rows.length + ' rows';\n })()"
|
|
},
|
|
{
|
|
"id": 10,
|
|
"name": "검색 초기화",
|
|
"action": "evaluate",
|
|
"script": "(() => {\n const selectors = ['input[type=\"search\"]', 'input[placeholder*=\"검색\"]', 'input[placeholder*=\"Search\"]', 'input[role=\"searchbox\"]', '[class*=\"search\"] input'];\n for (const sel of selectors) {\n const el = document.querySelector(sel);\n if (el) {\n const nativeSetter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')?.set;\n if (nativeSetter) nativeSetter.call(el, '');\n else el.value = '';\n el.dispatchEvent(new Event('input', { bubbles: true }));\n el.dispatchEvent(new Event('change', { bubbles: true }));\n return 'Search cleared';\n }\n }\n return 'No search input found (ok)';\n })()"
|
|
},
|
|
{
|
|
"id": 11,
|
|
"name": "검색 초기화 결과 대기",
|
|
"action": "wait",
|
|
"duration": 1000
|
|
},
|
|
{
|
|
"id": 12,
|
|
"name": "검색 초기화 및 복원 확인",
|
|
"action": "evaluate",
|
|
"script": "(() => {\n const rows = document.querySelectorAll('table tbody tr, [role=\"row\"]');\n return 'Restored: ' + rows.length + ' rows';\n })()"
|
|
},
|
|
{
|
|
"id": 13,
|
|
"name": "검색 기능 확인",
|
|
"action": "click_if_exists",
|
|
"target": "input[placeholder*='검색']",
|
|
"expected": {
|
|
"search_available": true
|
|
}
|
|
},
|
|
{
|
|
"id": 14,
|
|
"name": "계좌 등록 버튼 확인",
|
|
"action": "click_if_exists",
|
|
"target": "등록",
|
|
"expected": {
|
|
"modal_or_page": true
|
|
}
|
|
},
|
|
{
|
|
"id": 15,
|
|
"name": "등록 폼/모달 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"은행명 입력 필드",
|
|
"계좌번호 입력 필드",
|
|
"예금주 입력 필드"
|
|
],
|
|
"expected": "계좌 등록 폼 표시"
|
|
},
|
|
{
|
|
"id": 16,
|
|
"name": "등록 모달 닫기",
|
|
"action": "close_modal_if_open",
|
|
"expected": "모달 닫힘"
|
|
},
|
|
{
|
|
"id": 17,
|
|
"phase": "READ",
|
|
"name": "[READ] 계좌 목록 데이터 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"계좌 목록 데이터 표시됨"
|
|
],
|
|
"expected": "계좌 목록 정상 표시"
|
|
},
|
|
{
|
|
"id": 18,
|
|
"phase": "READ",
|
|
"name": "[READ] 첫 번째 행 클릭",
|
|
"action": "click_if_exists",
|
|
"target": "table tbody tr:first-child"
|
|
},
|
|
{
|
|
"id": 19,
|
|
"phase": "READ",
|
|
"name": "[READ] 계좌 상세 정보 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"계좌 상세 정보 표시"
|
|
],
|
|
"expected": "계좌 상세 정보 확인"
|
|
},
|
|
{
|
|
"id": 20,
|
|
"name": "상세 모달 닫기",
|
|
"action": "close_modal_if_open",
|
|
"expected": "모달 닫힘"
|
|
},
|
|
{
|
|
"id": 21,
|
|
"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": 22,
|
|
"name": "콘솔 에러 확인",
|
|
"action": "verify_element",
|
|
"target": "body"
|
|
},
|
|
{
|
|
"id": 23,
|
|
"name": "계좌 목록 최종 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"계좌 목록 구조 정상",
|
|
"등록 버튼 존재"
|
|
],
|
|
"expected": "계좌관리 페이지 정상"
|
|
}
|
|
],
|
|
"expectedAPIs": [
|
|
{
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/bank-accounts",
|
|
"description": "계좌 목록 조회"
|
|
}
|
|
],
|
|
"requiredVerifications": [
|
|
{
|
|
"id": 5,
|
|
"name": "목업 페이지 감지",
|
|
"steps": [
|
|
2
|
|
],
|
|
"criteria": "계좌 목록, 등록 버튼, 필터 존재"
|
|
}
|
|
],
|
|
"rollbackPlan": {
|
|
"note": "READ-only 패턴으로 안정성 우선"
|
|
}
|
|
}
|