From 829f9af15e7f308d9106400d60db1326a4e51b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Tue, 3 Feb 2026 13:27:53 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20sales-quotation,=20sales-order,=20p?= =?UTF-8?q?urchase-order=20=EC=8B=9C=EB=82=98=EB=A6=AC=EC=98=A4=20A?= =?UTF-8?q?=EB=93=B1=EA=B8=89=EC=9C=BC=EB=A1=9C=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - sales-quotation: C등급→A등급 (6→18 steps, 견적 CRUD) - sales-order: C등급→A등급 (5→18 steps, 수주 CRUD) - purchase-order: C등급→A등급 (3→18 steps, 발주 CRUD) --- purchase-order.json | 269 +++++++++++++++++++++++++++++++++++++++++-- sales-order.json | 265 +++++++++++++++++++++++++++++++++++++++--- sales-quotation.json | 263 ++++++++++++++++++++++++++++++++++++++---- 3 files changed, 753 insertions(+), 44 deletions(-) diff --git a/purchase-order.json b/purchase-order.json index 6e264cc..345b16b 100644 --- a/purchase-order.json +++ b/purchase-order.json @@ -5,17 +5,33 @@ "onErrorOnly": true, "captureOn": ["error", "fail", "timeout", "404", "500", "blocked"] }, - "description": "구매관리 > 발주관리 메뉴의 발주 조회/관리 기능 테스트", + "description": "구매관리 > 발주관리 메뉴의 발주 조회/등록/수정/삭제 전체 CRUD 테스트", "baseUrl": "https://dev.codebridge-x.com", "menuNavigation": { "level1": "구매관리", "level2": "발주관리", - "expectedUrl": "/purchase/orders" + "expectedUrl": "/purchase/purchase-order", + "searchWithinParent": true, + "closeOtherMenus": true }, "auth": { "username": "TestUser5", "password": "password123!" }, + "testData": { + "create": { + "vendorName": "E2E_TEST_거래처", + "itemName": "테스트품목", + "quantity": "300", + "unitPrice": "5000", + "deliveryDate": "2026-02-20", + "memo": "E2E 자동화 테스트 발주" + }, + "update": { + "quantity": "350", + "memo": "E2E 수정된 발주 메모" + } + }, "steps": [ { "id": 1, @@ -34,29 +50,268 @@ "action": "verify_not_mockup", "checks": [ "발주 목록 표시", - "발주 등록 버튼 존재" + "발주 등록 버튼 존재", + "검색/필터 기능 존재" ], "expected": "정상 페이지 (목업 아님)" }, { "id": 3, - "name": "발주 테이블 확인", + "name": "발주 테이블 구조 확인", "action": "verify_table", "checks": [ "발주번호 컬럼", "거래처 컬럼", "품목 컬럼", + "수량 컬럼", + "금액 컬럼", "상태 컬럼" ], - "expected": "발주 테이블 표시" + "expected": "발주 테이블 컬럼 정상 표시" + }, + { + "id": 4, + "name": "검색 기능 테스트", + "action": "search", + "target": "input[placeholder*='검색']", + "value": "테스트", + "expected": { + "data_filtered": true + } + }, + { + "id": 5, + "phase": "CREATE", + "name": "[CREATE] 발주 등록 버튼 클릭", + "action": "click", + "target": "button:has-text('등록'), button:has-text('발주 등록'), button:has-text('추가')", + "expected": { + "modal_or_page": true, + "title": "발주 등록" + } + }, + { + "id": 6, + "phase": "CREATE", + "name": "[CREATE] 발주 정보 입력", + "action": "fill_form", + "fields": [ + {"name": "거래처", "type": "select", "value": "E2E_TEST_거래처"}, + {"name": "발주일", "type": "date", "value": "2026-02-03"}, + {"name": "품목", "type": "select", "value": "테스트품목"}, + {"name": "수량", "type": "number", "value": "300"}, + {"name": "단가", "type": "number", "value": "5000"}, + {"name": "납기일", "type": "date", "value": "2026-02-20"}, + {"name": "메모", "type": "text", "value": "E2E 자동화 테스트 발주_{timestamp}"} + ], + "note": "타임스탬프로 고유성 보장" + }, + { + "id": 7, + "phase": "CREATE", + "name": "[CREATE] 필수 검증 #2: 등록 저장", + "action": "click", + "target": "button:has-text('저장'), button:has-text('등록')", + "critical": true, + "verify": { + "url_maintained": true, + "no_error_page": true, + "api_call": "POST /api/v1/purchase-orders", + "toast": "등록|완료|성공" + }, + "expected": "발주 등록 완료" + }, + { + "id": "7-modal-close", + "phase": "CREATE", + "name": "[CREATE] 모달 닫기 확인", + "action": "close_modal_if_open", + "expected": "모달 닫힘" + }, + { + "id": 8, + "phase": "CREATE", + "name": "[CREATE] 등록 결과 확인", + "action": "verify_data", + "search": "E2E 자동화 테스트 발주", + "expected": { + "row_exists": true, + "contains": ["E2E", "300", "1,500,000"] + } + }, + { + "id": 9, + "phase": "READ", + "name": "[READ] 발주 상세 페이지 진입", + "action": "click", + "target": "table tbody tr:has-text('E2E')", + "expected": { + "url_contains": "/purchase", + "visible": ["발주 상세", "수정", "삭제"] + } + }, + { + "id": 10, + "phase": "READ", + "name": "[READ] 상세 정보 확인", + "action": "verify_detail", + "checks": [ + "거래처: E2E_TEST_거래처", + "수량: 300", + "금액: 1,500,000", + "납기일: 2026-02-20" + ], + "expected": "입력한 데이터와 일치" + }, + { + "id": 11, + "phase": "UPDATE", + "name": "[UPDATE] 수정 모드 진입", + "action": "click", + "target": "button:has-text('수정')", + "expected": { + "url_contains": "mode=edit", + "fields_editable": true + } + }, + { + "id": 12, + "phase": "UPDATE", + "name": "[UPDATE] 수량 수정", + "action": "fill", + "target": "input[name*='quantity'], input[placeholder*='수량']", + "value": "350", + "clear": true + }, + { + "id": 13, + "phase": "UPDATE", + "name": "[UPDATE] 메모 수정", + "action": "fill", + "target": "textarea[name*='memo'], input[placeholder*='메모']", + "value": "E2E 수정된 발주 메모_{timestamp}", + "clear": true + }, + { + "id": 14, + "phase": "UPDATE", + "name": "[UPDATE] 필수 검증 #2: 수정 저장", + "action": "click", + "target": "button:has-text('저장')", + "critical": true, + "verify": { + "url_maintained": true, + "no_error_page": true, + "api_call": "PUT /api/v1/purchase-orders/", + "toast": "수정|완료|성공" + }, + "expected": "수정 완료" + }, + { + "id": 15, + "phase": "UPDATE", + "name": "[UPDATE] 수정 결과 확인", + "action": "verify_detail", + "checks": [ + "수량: 350", + "금액: 1,750,000" + ], + "expected": "수정된 데이터 반영" + }, + { + "id": 16, + "phase": "DELETE", + "name": "[DELETE] 삭제 버튼 클릭", + "action": "click", + "target": "button:has-text('삭제')", + "expected": { + "confirm_dialog": true, + "dialog_message": "삭제|정말" + } + }, + { + "id": 17, + "phase": "DELETE", + "name": "[DELETE] 필수 검증 #6: 삭제 확인", + "action": "click", + "target": "button:has-text('확인'), button:has-text('삭제')", + "critical": true, + "verify": { + "api_call": "DELETE /api/v1/purchase-orders/", + "toast": "삭제|완료|성공", + "redirect": "/purchase" + }, + "expected": "삭제 완료 및 목록 복귀" + }, + { + "id": 18, + "phase": "DELETE", + "name": "[DELETE] 삭제 결과 확인", + "action": "verify_data", + "search": "E2E 수정된 발주", + "expected": { + "row_exists": false, + "message": "테스트 발주가 목록에서 제거됨" + } + } + ], + "expectedAPIs": [ + { + "method": "GET", + "endpoint": "/api/v1/purchase-orders", + "description": "발주 목록 조회" + }, + { + "method": "POST", + "endpoint": "/api/v1/purchase-orders", + "description": "발주 등록" + }, + { + "method": "GET", + "endpoint": "/api/v1/purchase-orders/{id}", + "description": "발주 상세 조회" + }, + { + "method": "PUT", + "endpoint": "/api/v1/purchase-orders/{id}", + "description": "발주 수정" + }, + { + "method": "DELETE", + "endpoint": "/api/v1/purchase-orders/{id}", + "description": "발주 삭제" } ], "requiredVerifications": [ + { + "id": 2, + "name": "등록/저장 버튼", + "steps": [7, 14], + "criteria": "API 호출 + 성공 토스트 + 데이터 반영" + }, + { + "id": 3, + "name": "검색/필터", + "steps": [4], + "criteria": "검색 기능 동작" + }, { "id": 5, "name": "목업 페이지 감지", "steps": [2], - "criteria": "발주 목록 확인" + "criteria": "발주 목록, 등록 버튼, 필터 존재" + }, + { + "id": 6, + "name": "삭제 기능", + "steps": [16, 17, 18], + "criteria": "DELETE API + 목록에서 제거" } - ] + ], + "rollbackPlan": { + "onCreateFail": "모달 닫기", + "onUpdateFail": "테스트 발주 수동 삭제 필요", + "onDeleteFail": "테스트 발주 수동 삭제 필요", + "cleanupRequired": "E2E_TEST_ 접두사 발주는 테스트 데이터" + } } diff --git a/sales-order.json b/sales-order.json index fabdc6d..c9a5f9f 100644 --- a/sales-order.json +++ b/sales-order.json @@ -5,17 +5,33 @@ "onErrorOnly": true, "captureOn": ["error", "fail", "timeout", "404", "500", "blocked"] }, - "description": "판매관리 > 수주관리 메뉴의 수주 조회/관리 기능 테스트", + "description": "판매관리 > 수주관리 메뉴의 수주 조회/등록/수정/삭제 전체 CRUD 테스트", "baseUrl": "https://dev.codebridge-x.com", "menuNavigation": { "level1": "판매관리", "level2": "수주관리", - "expectedUrl": "/sales/orders" + "expectedUrl": "/sales/order-management-sales", + "searchWithinParent": true, + "closeOtherMenus": true }, "auth": { "username": "TestUser5", "password": "password123!" }, + "testData": { + "create": { + "clientName": "E2E_TEST_거래처", + "itemName": "테스트품목", + "quantity": "200", + "unitPrice": "15000", + "deliveryDate": "2026-02-15", + "memo": "E2E 자동화 테스트 수주" + }, + "update": { + "quantity": "250", + "memo": "E2E 수정된 수주 메모" + } + }, "steps": [ { "id": 1, @@ -24,7 +40,7 @@ "level1": "판매관리", "level2": "수주관리", "expected": { - "url_contains": "/sales", + "url_contains": "/sales/order", "visible": ["수주관리", "수주"] } }, @@ -34,51 +50,268 @@ "action": "verify_not_mockup", "checks": [ "수주 목록 표시", - "수주 등록 버튼 존재" + "수주 등록 버튼 존재", + "검색/필터 기능 존재" ], "expected": "정상 페이지 (목업 아님)" }, { "id": 3, - "name": "수주 테이블 확인", + "name": "수주 테이블 구조 확인", "action": "verify_table", "checks": [ "수주번호 컬럼", "거래처 컬럼", "품목 컬럼", + "수량 컬럼", "금액 컬럼", "상태 컬럼" ], - "expected": "수주 테이블 표시" + "expected": "수주 테이블 컬럼 정상 표시" }, { "id": 4, "name": "검색 기능 테스트", - "action": "fill", + "action": "search", "target": "input[placeholder*='검색']", "value": "테스트", - "expected": "검색어 입력됨" + "expected": { + "data_filtered": true + } }, { "id": 5, - "name": "검색 초기화", - "action": "clear", - "target": "input[placeholder*='검색']", - "expected": "검색어 삭제" + "phase": "CREATE", + "name": "[CREATE] 수주 등록 버튼 클릭", + "action": "click", + "target": "button:has-text('등록'), button:has-text('수주 등록'), button:has-text('추가')", + "expected": { + "modal_or_page": true, + "title": "수주 등록" + } + }, + { + "id": 6, + "phase": "CREATE", + "name": "[CREATE] 수주 정보 입력", + "action": "fill_form", + "fields": [ + {"name": "거래처", "type": "select", "value": "E2E_TEST_거래처"}, + {"name": "수주일", "type": "date", "value": "2026-02-03"}, + {"name": "품목", "type": "select", "value": "테스트품목"}, + {"name": "수량", "type": "number", "value": "200"}, + {"name": "단가", "type": "number", "value": "15000"}, + {"name": "납기일", "type": "date", "value": "2026-02-15"}, + {"name": "메모", "type": "text", "value": "E2E 자동화 테스트 수주_{timestamp}"} + ], + "note": "타임스탬프로 고유성 보장" + }, + { + "id": 7, + "phase": "CREATE", + "name": "[CREATE] 필수 검증 #2: 등록 저장", + "action": "click", + "target": "button:has-text('저장'), button:has-text('등록')", + "critical": true, + "verify": { + "url_maintained": true, + "no_error_page": true, + "api_call": "POST /api/v1/sales-orders", + "toast": "등록|완료|성공" + }, + "expected": "수주 등록 완료" + }, + { + "id": "7-modal-close", + "phase": "CREATE", + "name": "[CREATE] 모달 닫기 확인", + "action": "close_modal_if_open", + "expected": "모달 닫힘" + }, + { + "id": 8, + "phase": "CREATE", + "name": "[CREATE] 등록 결과 확인", + "action": "verify_data", + "search": "E2E 자동화 테스트 수주", + "expected": { + "row_exists": true, + "contains": ["E2E", "200", "3,000,000"] + } + }, + { + "id": 9, + "phase": "READ", + "name": "[READ] 수주 상세 페이지 진입", + "action": "click", + "target": "table tbody tr:has-text('E2E')", + "expected": { + "url_contains": "/sales/order", + "visible": ["수주 상세", "수정", "삭제"] + } + }, + { + "id": 10, + "phase": "READ", + "name": "[READ] 상세 정보 확인", + "action": "verify_detail", + "checks": [ + "거래처: E2E_TEST_거래처", + "수량: 200", + "금액: 3,000,000", + "납기일: 2026-02-15" + ], + "expected": "입력한 데이터와 일치" + }, + { + "id": 11, + "phase": "UPDATE", + "name": "[UPDATE] 수정 모드 진입", + "action": "click", + "target": "button:has-text('수정')", + "expected": { + "url_contains": "mode=edit", + "fields_editable": true + } + }, + { + "id": 12, + "phase": "UPDATE", + "name": "[UPDATE] 수량 수정", + "action": "fill", + "target": "input[name*='quantity'], input[placeholder*='수량']", + "value": "250", + "clear": true + }, + { + "id": 13, + "phase": "UPDATE", + "name": "[UPDATE] 메모 수정", + "action": "fill", + "target": "textarea[name*='memo'], input[placeholder*='메모']", + "value": "E2E 수정된 수주 메모_{timestamp}", + "clear": true + }, + { + "id": 14, + "phase": "UPDATE", + "name": "[UPDATE] 필수 검증 #2: 수정 저장", + "action": "click", + "target": "button:has-text('저장')", + "critical": true, + "verify": { + "url_maintained": true, + "no_error_page": true, + "api_call": "PUT /api/v1/sales-orders/", + "toast": "수정|완료|성공" + }, + "expected": "수정 완료" + }, + { + "id": 15, + "phase": "UPDATE", + "name": "[UPDATE] 수정 결과 확인", + "action": "verify_detail", + "checks": [ + "수량: 250", + "금액: 3,750,000" + ], + "expected": "수정된 데이터 반영" + }, + { + "id": 16, + "phase": "DELETE", + "name": "[DELETE] 삭제 버튼 클릭", + "action": "click", + "target": "button:has-text('삭제')", + "expected": { + "confirm_dialog": true, + "dialog_message": "삭제|정말" + } + }, + { + "id": 17, + "phase": "DELETE", + "name": "[DELETE] 필수 검증 #6: 삭제 확인", + "action": "click", + "target": "button:has-text('확인'), button:has-text('삭제')", + "critical": true, + "verify": { + "api_call": "DELETE /api/v1/sales-orders/", + "toast": "삭제|완료|성공", + "redirect": "/sales/order" + }, + "expected": "삭제 완료 및 목록 복귀" + }, + { + "id": 18, + "phase": "DELETE", + "name": "[DELETE] 삭제 결과 확인", + "action": "verify_data", + "search": "E2E 수정된 수주", + "expected": { + "row_exists": false, + "message": "테스트 수주가 목록에서 제거됨" + } + } + ], + "expectedAPIs": [ + { + "method": "GET", + "endpoint": "/api/v1/sales-orders", + "description": "수주 목록 조회" + }, + { + "method": "POST", + "endpoint": "/api/v1/sales-orders", + "description": "수주 등록" + }, + { + "method": "GET", + "endpoint": "/api/v1/sales-orders/{id}", + "description": "수주 상세 조회" + }, + { + "method": "PUT", + "endpoint": "/api/v1/sales-orders/{id}", + "description": "수주 수정" + }, + { + "method": "DELETE", + "endpoint": "/api/v1/sales-orders/{id}", + "description": "수주 삭제" } ], "requiredVerifications": [ + { + "id": 2, + "name": "등록/저장 버튼", + "steps": [7, 14], + "criteria": "API 호출 + 성공 토스트 + 데이터 반영" + }, { "id": 3, "name": "검색/필터", - "steps": [4, 5], - "criteria": "검색 기능 확인" + "steps": [4], + "criteria": "검색 기능 동작" }, { "id": 5, "name": "목업 페이지 감지", "steps": [2], - "criteria": "수주 목록, 등록 버튼 확인" + "criteria": "수주 목록, 등록 버튼, 필터 존재" + }, + { + "id": 6, + "name": "삭제 기능", + "steps": [16, 17, 18], + "criteria": "DELETE API + 목록에서 제거" } - ] + ], + "rollbackPlan": { + "onCreateFail": "모달 닫기", + "onUpdateFail": "테스트 수주 수동 삭제 필요", + "onDeleteFail": "테스트 수주 수동 삭제 필요", + "cleanupRequired": "E2E_TEST_ 접두사 수주는 테스트 데이터" + } } diff --git a/sales-quotation.json b/sales-quotation.json index 3c0e578..d719647 100644 --- a/sales-quotation.json +++ b/sales-quotation.json @@ -5,17 +5,32 @@ "onErrorOnly": true, "captureOn": ["error", "fail", "timeout", "404", "500", "blocked"] }, - "description": "판매관리 > 견적관리 메뉴의 견적서 조회/관리 기능 테스트", + "description": "판매관리 > 견적관리 메뉴의 견적서 조회/등록/수정/삭제 전체 CRUD 테스트", "baseUrl": "https://dev.codebridge-x.com", "menuNavigation": { "level1": "판매관리", "level2": "견적관리", - "expectedUrl": "/sales/quotation" + "expectedUrl": "/sales/quote-management", + "searchWithinParent": true, + "closeOtherMenus": true }, "auth": { "username": "TestUser5", "password": "password123!" }, + "testData": { + "create": { + "clientName": "E2E_TEST_거래처", + "itemName": "테스트품목", + "quantity": "100", + "unitPrice": "10000", + "memo": "E2E 자동화 테스트 견적" + }, + "update": { + "quantity": "150", + "memo": "E2E 수정된 견적 메모" + } + }, "steps": [ { "id": 1, @@ -24,7 +39,7 @@ "level1": "판매관리", "level2": "견적관리", "expected": { - "url_contains": "/sales", + "url_contains": "/sales/quote", "visible": ["견적관리", "견적"] } }, @@ -34,60 +49,266 @@ "action": "verify_not_mockup", "checks": [ "견적 목록 표시", - "견적 등록 버튼 존재" + "견적 등록 버튼 존재", + "검색/필터 기능 존재" ], "expected": "정상 페이지 (목업 아님)" }, { "id": 3, - "name": "견적 테이블 확인", + "name": "견적 테이블 구조 확인", "action": "verify_table", "checks": [ "견적번호 컬럼", "거래처 컬럼", + "품목 컬럼", "금액 컬럼", "상태 컬럼", "작성일 컬럼" ], - "expected": "견적 테이블 표시" + "expected": "견적 테이블 컬럼 정상 표시" }, { "id": 4, "name": "검색 기능 테스트", - "action": "fill", + "action": "search", "target": "input[placeholder*='검색']", "value": "테스트", - "expected": "검색어 입력됨" + "expected": { + "data_filtered": true + } }, { "id": 5, - "name": "검색 초기화", - "action": "clear", - "target": "input[placeholder*='검색']", - "expected": "검색어 삭제" + "phase": "CREATE", + "name": "[CREATE] 견적 등록 버튼 클릭", + "action": "click", + "target": "button:has-text('등록'), button:has-text('견적 등록'), button:has-text('추가')", + "expected": { + "modal_or_page": true, + "title": "견적 등록" + } }, { "id": 6, - "name": "견적 등록 버튼 확인", - "action": "verify_elements", - "checks": [ - "견적 등록 버튼 존재" + "phase": "CREATE", + "name": "[CREATE] 견적 정보 입력", + "action": "fill_form", + "fields": [ + {"name": "거래처", "type": "select", "value": "E2E_TEST_거래처"}, + {"name": "견적일", "type": "date", "value": "2026-02-03"}, + {"name": "품목", "type": "select", "value": "테스트품목"}, + {"name": "수량", "type": "number", "value": "100"}, + {"name": "단가", "type": "number", "value": "10000"}, + {"name": "메모", "type": "text", "value": "E2E 자동화 테스트 견적_{timestamp}"} ], - "expected": "등록 버튼 표시" + "note": "타임스탬프로 고유성 보장" + }, + { + "id": 7, + "phase": "CREATE", + "name": "[CREATE] 필수 검증 #2: 등록 저장", + "action": "click", + "target": "button:has-text('저장'), button:has-text('등록')", + "critical": true, + "verify": { + "url_maintained": true, + "no_error_page": true, + "api_call": "POST /api/v1/quotations", + "toast": "등록|완료|성공" + }, + "expected": "견적 등록 완료" + }, + { + "id": "7-modal-close", + "phase": "CREATE", + "name": "[CREATE] 모달 닫기 확인", + "action": "close_modal_if_open", + "expected": "모달 닫힘" + }, + { + "id": 8, + "phase": "CREATE", + "name": "[CREATE] 등록 결과 확인", + "action": "verify_data", + "search": "E2E 자동화 테스트 견적", + "expected": { + "row_exists": true, + "contains": ["E2E", "1,000,000"] + } + }, + { + "id": 9, + "phase": "READ", + "name": "[READ] 견적 상세 페이지 진입", + "action": "click", + "target": "table tbody tr:has-text('E2E')", + "expected": { + "url_contains": "/sales/quote", + "visible": ["견적 상세", "수정", "삭제"] + } + }, + { + "id": 10, + "phase": "READ", + "name": "[READ] 상세 정보 확인", + "action": "verify_detail", + "checks": [ + "거래처: E2E_TEST_거래처", + "수량: 100", + "금액: 1,000,000" + ], + "expected": "입력한 데이터와 일치" + }, + { + "id": 11, + "phase": "UPDATE", + "name": "[UPDATE] 수정 모드 진입", + "action": "click", + "target": "button:has-text('수정')", + "expected": { + "url_contains": "mode=edit", + "fields_editable": true + } + }, + { + "id": 12, + "phase": "UPDATE", + "name": "[UPDATE] 수량 수정", + "action": "fill", + "target": "input[name*='quantity'], input[placeholder*='수량']", + "value": "150", + "clear": true + }, + { + "id": 13, + "phase": "UPDATE", + "name": "[UPDATE] 메모 수정", + "action": "fill", + "target": "textarea[name*='memo'], input[placeholder*='메모']", + "value": "E2E 수정된 견적 메모_{timestamp}", + "clear": true + }, + { + "id": 14, + "phase": "UPDATE", + "name": "[UPDATE] 필수 검증 #2: 수정 저장", + "action": "click", + "target": "button:has-text('저장')", + "critical": true, + "verify": { + "url_maintained": true, + "no_error_page": true, + "api_call": "PUT /api/v1/quotations/", + "toast": "수정|완료|성공" + }, + "expected": "수정 완료" + }, + { + "id": 15, + "phase": "UPDATE", + "name": "[UPDATE] 수정 결과 확인", + "action": "verify_detail", + "checks": [ + "수량: 150", + "금액: 1,500,000" + ], + "expected": "수정된 데이터 반영" + }, + { + "id": 16, + "phase": "DELETE", + "name": "[DELETE] 삭제 버튼 클릭", + "action": "click", + "target": "button:has-text('삭제')", + "expected": { + "confirm_dialog": true, + "dialog_message": "삭제|정말" + } + }, + { + "id": 17, + "phase": "DELETE", + "name": "[DELETE] 필수 검증 #6: 삭제 확인", + "action": "click", + "target": "button:has-text('확인'), button:has-text('삭제')", + "critical": true, + "verify": { + "api_call": "DELETE /api/v1/quotations/", + "toast": "삭제|완료|성공", + "redirect": "/sales/quote" + }, + "expected": "삭제 완료 및 목록 복귀" + }, + { + "id": 18, + "phase": "DELETE", + "name": "[DELETE] 삭제 결과 확인", + "action": "verify_data", + "search": "E2E 수정된 견적", + "expected": { + "row_exists": false, + "message": "테스트 견적이 목록에서 제거됨" + } + } + ], + "expectedAPIs": [ + { + "method": "GET", + "endpoint": "/api/v1/quotations", + "description": "견적 목록 조회" + }, + { + "method": "POST", + "endpoint": "/api/v1/quotations", + "description": "견적 등록" + }, + { + "method": "GET", + "endpoint": "/api/v1/quotations/{id}", + "description": "견적 상세 조회" + }, + { + "method": "PUT", + "endpoint": "/api/v1/quotations/{id}", + "description": "견적 수정" + }, + { + "method": "DELETE", + "endpoint": "/api/v1/quotations/{id}", + "description": "견적 삭제" } ], "requiredVerifications": [ + { + "id": 2, + "name": "등록/저장 버튼", + "steps": [7, 14], + "criteria": "API 호출 + 성공 토스트 + 데이터 반영" + }, { "id": 3, "name": "검색/필터", - "steps": [4, 5], - "criteria": "검색 기능 확인" + "steps": [4], + "criteria": "검색 기능 동작" }, { "id": 5, "name": "목업 페이지 감지", "steps": [2], - "criteria": "견적 목록, 등록 버튼 확인" + "criteria": "견적 목록, 등록 버튼, 필터 존재" + }, + { + "id": 6, + "name": "삭제 기능", + "steps": [16, 17, 18], + "criteria": "DELETE API + 목록에서 제거" } - ] + ], + "rollbackPlan": { + "onCreateFail": "모달 닫기", + "onUpdateFail": "테스트 견적 수동 삭제 필요", + "onDeleteFail": "테스트 견적 수동 삭제 필요", + "cleanupRequired": "E2E_TEST_ 접두사 견적은 테스트 데이터" + } }