{ "id": "quality-certification", "name": "품질인정심사 시스템 테스트", "screenshotPolicy": { "onErrorOnly": true, "captureOn": ["error", "fail", "timeout", "404", "500", "blocked"] }, "description": "품질관리 > 품질인정심사 시스템 페이지의 점검표 조회/체크/필터 기능을 테스트하는 E2E 테스트", "baseUrl": "https://dev.codebridge-x.com", "url": "/quality/certification", "menuNavigation": { "level1": "품질관리", "level2": "품질인정심사 시스템", "expectedUrl": "/quality/certification" }, "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": "/quality/certification", "expectedUrl": "/quality/certification" }, "timeout": 90000, "tags": ["quality", "certification", "checklist"], "login": { "url": "https://dev.codebridge-x.com/login", "credentials": { "id": "TestUser5", "password": "password123!" }, "successIndicator": "대시보드" }, "testData": { "filter": { "year": "2025", "quarter": "1분기" } }, "steps": [ { "id": "step-0", "name": "사이드바 초기화", "description": "사이드바를 최상단으로 스크롤하여 메뉴 탐색 준비", "actions": [ { "type": "evaluate", "script": "document.querySelector('.sidebar-scroll')?.scrollTo({top:0,behavior:'instant'})" }, { "type": "wait", "duration": 500 } ], "expect": { "sidebarReady": true } }, { "id": "step-1", "name": "품질관리 메뉴 진입", "description": "품질관리 > 품질인정심사 시스템 메뉴로 이동", "actions": [ { "type": "scrollAndFind", "container": ".sidebar-scroll", "target": "품질관리", "scrollStep": 200, "maxAttempts": 5 }, { "type": "click", "target": "품질관리" }, { "type": "wait", "duration": 500 }, { "type": "click", "target": "품질인정심사 시스템" } ], "expect": { "url": "/quality/certification", "visible": ["품질인정심사 시스템", "점검표 항목"] }, "fallback": { "type": "navigate", "url": "/quality/certification" } }, { "id": "step-2", "name": "페이지 구조 확인", "description": "통계 카드와 점검표 구조 확인", "verify": { "visible": ["1일차: 기준/매뉴얼", "2일차: 로트추적", "전체 심사"], "checklistCategories": [ "원재료 품질관리 기준", "제조공정 관리 기준", "제품 품질관리 기준", "제조설비 관리", "검사설비 관리", "문서 및 인증 관리" ] } }, { "id": "step-3", "name": "필수 검증 #3: 년도 필터 기능", "description": "년도 드롭다운에서 2025년 선택", "actions": [ { "type": "click", "target": "년도", "role": "combobox" }, { "type": "click", "target": "2025", "role": "option" } ], "expect": { "selected": "2025" } }, { "id": "step-4", "name": "필수 검증 #3: 분기 필터 기능", "description": "분기 선택으로 데이터 필터링", "actions": [ { "type": "click", "target": "1분기" } ], "expect": { "filterApplied": true } }, { "id": "step-5", "name": "필수 검증 #3: 조회 버튼 동작", "description": "조회 버튼 클릭하여 데이터 로드", "actions": [ { "type": "click", "target": "조회" } ], "expect": { "urlMaintained": true, "noErrorPage": true, "dataLoaded": true }, "verify": { "apiCall": "GET /api/quality/certification" } }, { "id": "step-6", "name": "점검표 항목 펼치기", "description": "원재료 품질관리 기준 항목 펼쳐서 하위 항목 확인", "actions": [ { "type": "click", "target": "원재료 품질관리 기준" } ], "expect": { "visible": ["수입검사 기준 확인", "불합격품 처리 기준 확인", "자재 보관 기준 확인"] } }, { "id": "step-7", "name": "점검 항목 선택", "description": "점검 항목 클릭하여 문서 미리보기 확인", "actions": [ { "type": "click", "target": "수입검사 기준 확인" } ], "expect": { "documentPreview": true, "visible": ["문서", "미리보기"] } }, { "id": "step-8", "name": "필수 검증 #2: 체크 상태 변경", "description": "미완료 항목을 완료로 체크", "actions": [ { "type": "click", "target": "자재 보관 기준 확인" }, { "type": "wait", "duration": 300 }, { "type": "click", "target": "완료", "description": "체크박스 또는 완료 버튼 클릭" } ], "expect": { "toast": ["완료", "저장", "성공"], "statusChanged": true }, "verify": { "apiCall": "PUT /api/quality/certification/item" } }, { "id": "step-9", "name": "필수 검증 #4: 체크 상태 반영 확인", "critical": true, "note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 상태 변경 확인 필수!", "description": "점검 항목 상태가 '완료'로 변경되었는지 확인", "verify": { "itemStatus": { "target": "자재 보관 기준 확인", "expected": "완료" }, "progressUpdated": "3/3" } }, { "id": "step-10", "name": "다른 카테고리 확인", "description": "제조공정 관리 기준 펼쳐서 확인", "actions": [ { "type": "click", "target": "제조공정 관리 기준" } ], "expect": { "visible": ["작업표준서 확인", "공정검사 기준 확인", "부적합품 처리 기준 확인"] } }, { "id": "step-11", "name": "화면 설정 확인", "description": "화면 설정 버튼이 있다면 동작 확인", "actions": [ { "type": "conditionalClick", "target": "화면 설정", "fallback": "skip" } ], "expect": { "settingsPanel": true } } ], "assertions": [ { "type": "url", "expected": "/quality/certification", "message": "품질인정심사 시스템 페이지에 머물러야 함" }, { "type": "elementExists", "selector": "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": 5, "name": "목업/미완성 페이지 감지", "trigger": "페이지 로드 시", "verification": "필터 동작 + 체크박스 동작 + API 호출 확인", "failCondition": "버튼만 있고 동작 불가, Console LOG만 출력" } ] }, "cleanup": { "enabled": true, "description": "테스트 중 변경한 체크 상태 원복", "actions": [ { "type": "revertCheckStatus", "target": "자재 보관 기준 확인" } ] }, "notes": { "testScope": "점검표 조회 → 필터 → 체크 상태 변경 → 문서 미리보기 테스트", "pageStructure": { "statistics": "1일차/2일차/전체 심사 진행률", "filters": "년도, 분기 선택", "checklist": "6개 카테고리 점검 항목", "preview": "선택한 문서 미리보기 패널" }, "checklistCategories": [ "원재료 품질관리 기준", "제조공정 관리 기준", "제품 품질관리 기준", "제조설비 관리", "검사설비 관리", "문서 및 인증 관리" ], "prerequisites": "로그인된 사용자에게 품질인정심사 조회/수정 권한 필요" } }