{ "id": "bill-management", "name": "어음관리 테스트", "screenshotPolicy": { "onErrorOnly": true, "captureOn": ["error", "fail", "timeout", "404", "500", "blocked"] }, "description": "회계관리 > 어음관리 페이지의 어음 등록/조회/수정 기능을 테스트하는 E2E 테스트", "baseUrl": "https://dev.codebridge-x.com", "url": "/accounting/bills", "navigation": { "targetUrl": "/accounting/bills", "urlPattern": "/accounting/bills|/ko/accounting/bills", "menuHints": ["어음관리", "어음 관리", "회계관리"] }, "menuNavigation": { "level1": "회계관리", "level2": "어음관리", "expectedUrl": "/accounting/bills" }, "menuNavigationEnhanced": { "strategy": "scroll-and-search", "sidebar": { "scrollContainer": ".sidebar-scroll", "scrollStep": 200, "maxScrollAttempts": 5, "waitAfterScroll": 300 }, "level1": { "text": "회계관리", "expandable": true, "waitAfterClick": 500 }, "level2": { "text": "어음관리", "waitAfterClick": 300 }, "fallbackUrl": "/accounting/bills", "expectedUrl": "/accounting/bills" }, "timeout": 90000, "tags": ["accounting", "bill", "crud"], "login": { "url": "https://dev.codebridge-x.com/login", "credentials": { "id": "TestUser5", "password": "password123!" }, "successIndicator": "대시보드" }, "testData": { "bill": { "type": "수취", "vendor": "코브라브릿지", "amount": "10000000", "issueDate": "2026-01-28", "dueDate": "2026-04-28", "note": "E2E 테스트 어음입니다" } }, "steps": [ { "id": "step-0", "name": "사이드바 메뉴 전체 펼치기", "description": "모두 펼치기 버튼을 클릭하여 전체 메뉴를 펼친 후 메뉴 탐색 준비", "actions": [ { "type": "evaluate", "script": "document.querySelector('.sidebar-scroll')?.scrollTo({top:0,behavior:'instant'})" }, { "type": "wait", "duration": 300 }, { "type": "evaluate", "script": "Array.from(document.querySelectorAll('button')).find(b => b.innerText?.includes('모두 펼치기'))?.click()" }, { "type": "wait", "duration": 2000 } ] }, { "id": "step-1", "name": "회계관리 메뉴 진입", "description": "회계관리 > 어음관리 메뉴로 이동", "actions": [ { "type": "scrollAndFind", "container": ".sidebar-scroll", "target": "회계관리", "scrollStep": 200, "maxAttempts": 5 }, { "type": "click", "target": "회계관리" }, { "type": "wait", "duration": 500 }, { "type": "scrollAndFind", "container": ".sidebar-scroll", "target": "어음관리", "scrollStep": 200, "maxAttempts": 3 }, { "type": "click", "target": "어음관리" } ], "expect": { "url": "/accounting/bills", "visible": ["어음관리", "어음 등록"] }, "fallback": { "type": "navigate", "url": "/accounting/bills" } }, { "id": "step-2", "name": "페이지 구조 확인", "description": "테이블 구조 및 탭 확인", "verify": { "visible": ["수취", "발행"], "tableColumns": ["번호", "어음번호", "구분", "거래처", "금액", "발행일", "만기일", "차수", "상태"] } }, { "id": "step-3", "name": "필수 검증 #3: 날짜 필터 테스트", "description": "날짜 필터 버튼 동작 확인", "actions": [ { "type": "click", "target": "당월" }, { "type": "wait", "duration": 500 } ], "expect": { "filterApplied": true, "dataFiltered": true } }, { "id": "step-4", "name": "필수 검증 #3: 구분 탭 필터 - 수취", "description": "수취 탭 클릭하여 필터링 확인", "actions": [ { "type": "click", "target": "수취", "role": "tab" }, { "type": "wait", "duration": 300 } ], "expect": { "tabActive": "수취", "dataFiltered": true } }, { "id": "step-5", "name": "필수 검증 #3: 구분 탭 필터 - 발행", "description": "발행 탭 클릭하여 필터링 확인", "actions": [ { "type": "click", "target": "발행", "role": "tab" }, { "type": "wait", "duration": 300 } ], "expect": { "tabActive": "발행", "dataFiltered": true } }, { "id": "step-6", "name": "수취 탭으로 복귀", "description": "수취 탭 클릭하여 수취 어음 표시", "actions": [ { "type": "click", "target": "수취", "role": "tab" }, { "type": "wait", "duration": 300 } ] }, { "id": "step-7", "name": "필수 검증 #2: 어음 등록 모달/페이지 열기", "description": "어음 등록 버튼 클릭하여 등록 화면 열기", "actions": [ { "type": "click", "target": "어음 등록" } ], "expect": { "pageOrModal": "어음 등록", "visible": ["구분", "거래처", "금액", "발행일", "만기일"] } }, { "id": "step-8", "name": "어음 등록 폼 입력", "description": "어음 정보 입력", "actions": [ { "type": "click", "target": "거래처", "role": "combobox" }, { "type": "click", "target": "{testData.bill.vendor}", "role": "option" }, { "type": "fill", "target": "금액", "value": "{testData.bill.amount}" }, { "type": "fill", "target": "발행일", "value": "{testData.bill.issueDate}" }, { "type": "fill", "target": "만기일", "value": "{testData.bill.dueDate}" } ] }, { "id": "step-9", "name": "필수 검증 #2: 어음 등록 저장", "description": "등록/저장 버튼 클릭하여 어음 저장", "actions": [ { "type": "click", "target": "저장" } ], "expect": { "urlMaintained": true, "noErrorPage": true, "toast": ["등록", "저장", "완료", "성공"] }, "verify": { "apiCall": "POST /api/accounting/bill" } }, { "id": "step-10", "name": "필수 검증 #4: 등록 데이터 반영 확인", "critical": true, "note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 데이터 등록 확인 필수!", "description": "테이블에서 등록된 어음 확인", "verify": { "tableContains": ["{testData.bill.amount}"], "recordCountIncreased": true } }, { "id": "step-11", "name": "어음 상세 열기", "description": "어음 항목 클릭하여 상세 보기", "actions": [ { "type": "evaluate", "script": "document.querySelector('tbody tr')?.click()" } ], "expect": { "pageOrModal": "어음 상세", "visible": ["어음번호", "구분", "거래처", "금액", "상태"] } }, { "id": "step-12", "name": "어음 상세 정보 확인", "description": "어음 상세 정보 표시 확인", "verify": { "visible": ["어음번호", "구분", "거래처", "금액", "발행일", "만기일", "상태"] } }, { "id": "step-13", "name": "상세 닫기", "description": "ESC 키로 상세 닫기", "actions": [ { "type": "press", "key": "Escape" }, { "type": "wait", "duration": 300 } ] } ], "assertions": [ { "type": "url", "expected": "/accounting/bills", "message": "어음관리 페이지에 머물러야 함" }, { "type": "elementExists", "selector": "button:has-text('어음 등록')", "message": "어음 등록 버튼이 표시되어야 함" } ], "mandatoryVerifications": { "description": "E2E_TEST_CONFIG.md 기준 필수 검증 항목", "items": [ { "id": 2, "name": "등록/저장 버튼", "trigger": "어음 등록 버튼", "verification": "URL 유지 + 에러 페이지 없음 + 성공 토스트 + 데이터 반영", "failCondition": "404/500 에러 페이지 이동" }, { "id": 3, "name": "검색/필터", "trigger": "날짜 필터, 구분 탭", "verification": "데이터 변화 확인", "failCondition": "필터 적용 후 데이터 무변화" }, { "id": 4, "name": "데이터 반영 확인", "trigger": "어음 등록 완료 후", "verification": "실제 데이터 등록 확인", "failCondition": "토스트만 확인하고 데이터 미확인" } ] }, "notes": { "testScope": "어음 등록 → 조회 → 필터링 테스트", "billTypes": ["수취", "발행"], "dateFilters": ["당해년도", "전전월", "전월", "당월", "어제", "오늘"], "statusTypes": ["보관중", "만기입금(7일전)", "만기결과", "결제완료"], "tableColumns": ["번호", "어음번호", "구분", "거래처", "금액", "발행일", "만기일", "차수", "상태"], "prerequisites": "로그인된 사용자에게 어음 관리 권한 필요" } }