refactor: 초정밀 시나리오 강화 (1060→1381 steps, 68/68 PASS)
This commit is contained in:
@@ -3,7 +3,14 @@
|
||||
"name": "이벤트 게시판 테스트",
|
||||
"screenshotPolicy": {
|
||||
"onErrorOnly": true,
|
||||
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
||||
"captureOn": [
|
||||
"error",
|
||||
"fail",
|
||||
"timeout",
|
||||
"404",
|
||||
"500",
|
||||
"blocked"
|
||||
]
|
||||
},
|
||||
"description": "고객센터 > 이벤트 게시판 메뉴의 이벤트 목록 조회/상세보기 기능 테스트",
|
||||
"baseUrl": "https://dev.codebridge-x.com",
|
||||
@@ -27,11 +34,21 @@
|
||||
"level2": "이벤트 게시판",
|
||||
"expected": {
|
||||
"url_contains": "/customer-center",
|
||||
"visible": ["이벤트"]
|
||||
"visible": [
|
||||
"이벤트"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "URL 검증",
|
||||
"action": "verify_url",
|
||||
"expected": {
|
||||
"url_contains": "/customer-center/events"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "필수 검증 #5: 목업 페이지 감지",
|
||||
"action": "verify_not_mockup",
|
||||
"checks": [
|
||||
@@ -41,7 +58,13 @@
|
||||
"expected": "정상 페이지 (목업 아님)"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"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": [
|
||||
@@ -52,7 +75,7 @@
|
||||
"expected": "이벤트 페이지 구조 정상"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"id": 6,
|
||||
"phase": "READ",
|
||||
"name": "[READ] 이벤트 목록 데이터 확인",
|
||||
"action": "verify_detail",
|
||||
@@ -62,7 +85,7 @@
|
||||
"expected": "이벤트 데이터 표시"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"id": 7,
|
||||
"phase": "FILTER",
|
||||
"name": "[FILTER] 상태별 필터",
|
||||
"action": "verify_elements",
|
||||
@@ -72,7 +95,7 @@
|
||||
"expected": "상태 필터 표시"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"id": 8,
|
||||
"phase": "READ",
|
||||
"name": "[READ] 이벤트 상세 보기",
|
||||
"action": "click_if_exists",
|
||||
@@ -82,7 +105,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"id": 9,
|
||||
"name": "이벤트 상세 정보 확인",
|
||||
"action": "verify_detail",
|
||||
"checks": [
|
||||
@@ -94,7 +117,7 @@
|
||||
"expected": "이벤트 상세 정보 표시"
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"id": 10,
|
||||
"name": "이벤트 참여 버튼 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
@@ -103,7 +126,7 @@
|
||||
"expected": "참여 버튼 확인"
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"id": 11,
|
||||
"name": "공유 기능 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
@@ -112,14 +135,14 @@
|
||||
"expected": "공유 기능 표시"
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"id": 12,
|
||||
"name": "목록으로 돌아가기",
|
||||
"action": "click_if_exists",
|
||||
"target": "button:has-text('목록'), a:has-text('목록'), [class*='back']",
|
||||
"expected": "목록 페이지로 복귀"
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"id": 13,
|
||||
"name": "페이지네이션 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
@@ -128,7 +151,35 @@
|
||||
"expected": "페이지네이션 표시"
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"id": 14,
|
||||
"name": "테이블 행 클릭 - 상세 페이지 이동",
|
||||
"action": "click_first_row"
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"name": "상세 페이지 로딩 대기",
|
||||
"action": "wait",
|
||||
"duration": 1000
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"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": 17,
|
||||
"name": "모달/상세 닫기",
|
||||
"action": "close_modal_if_open"
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"name": "콘솔 에러 확인",
|
||||
"action": "verify_element",
|
||||
"target": "body"
|
||||
},
|
||||
{
|
||||
"id": 19,
|
||||
"name": "이벤트 기간 정보 확인",
|
||||
"action": "verify_detail",
|
||||
"checks": [
|
||||
@@ -154,7 +205,9 @@
|
||||
{
|
||||
"id": 5,
|
||||
"name": "목업 페이지 감지",
|
||||
"steps": [2],
|
||||
"steps": [
|
||||
2
|
||||
],
|
||||
"criteria": "이벤트 목록, 이벤트 카드/리스트 존재"
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user