refactor: 8개 시나리오 스텝 검증 품질 개선
- payment-history: 구체적 CSS 셀렉터 추가 (40% → 90%+ 목표) - production-dashboard: verify_elements → verify_element 변환 - purchase-status: selectors 섹션 추가, 필터/다운로드 검증 개선 - settings-subscription: 모든 verify_elements를 구체적 셀렉터로 변환 - popup-management: 89 → 77 스텝으로 최적화, evaluate 스크립트 추가 - draft-box: 56 → 36 스텝으로 최적화, phase 마커 추가 - company-info: 폼 필드 ID 셀렉터 추가, 복잡한 검증 evaluate 추가 - item-management: 25+ 구체적 셀렉터 추가, generic verify 제거
This commit is contained in:
@@ -1,18 +1,49 @@
|
||||
{
|
||||
"id": "company-info",
|
||||
"name": "설정 - 회사정보",
|
||||
"description": "회사 정보 관리 기능 테스트 - 회사 정보 조회, 수정, 회사 추가 기능",
|
||||
"baseUrl": "https://dev.codebridge-x.com",
|
||||
|
||||
"screenshotPolicy": {
|
||||
"onErrorOnly": true,
|
||||
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
||||
},
|
||||
"description": "회사 정보 관리 기능 테스트 - 회사 정보 조회, 수정, 회사 추가 기능",
|
||||
"baseUrl": "https://dev.codebridge-x.com",
|
||||
|
||||
"selectors": {
|
||||
"pageTitle": "h1, h2, [class*='PageHeader'] h1, [class*='page-header'] h1",
|
||||
"pageLayout": "[class*='PageLayout'], main",
|
||||
"addCompanyBtn": "button:has-text('회사 추가')",
|
||||
"editBtn": "button:has-text('수정')",
|
||||
"saveBtn": "button:has-text('저장')",
|
||||
"cancelBtn": "button:has-text('취소')",
|
||||
"companyNameInput": "#companyName",
|
||||
"representativeNameInput": "#representativeName",
|
||||
"businessTypeInput": "#businessType",
|
||||
"businessCategoryInput": "#businessCategory",
|
||||
"emailInput": "#email",
|
||||
"taxInvoiceEmailInput": "#taxInvoiceEmail",
|
||||
"businessNumberInput": "#businessNumber",
|
||||
"paymentBankInput": "#paymentBank",
|
||||
"paymentAccountInput": "#paymentAccount",
|
||||
"paymentAccountHolderInput": "#paymentAccountHolder",
|
||||
"addressSearchBtn": "button:has-text('우편번호 찾기')",
|
||||
"companyInfoCard": "[class*='Card']:has(h3:has-text('회사 정보'))",
|
||||
"paymentInfoCard": "[class*='Card']:has(h3:has-text('결제 계좌 정보'))",
|
||||
"dialog": "[role='dialog']",
|
||||
"dialogTitle": "[role='dialog'] h2",
|
||||
"dialogCancelBtn": "[role='dialog'] button:has-text('취소')",
|
||||
"dialogNextBtn": "[role='dialog'] button:has-text('다음')",
|
||||
"dialogBusinessNumberInput": "[role='dialog'] #businessNumber",
|
||||
"alertDialog": "[role='alertdialog']",
|
||||
"alertConfirmBtn": "[role='alertdialog'] button:has-text('확인')"
|
||||
},
|
||||
|
||||
"navigation": {
|
||||
"targetUrl": "/company-info",
|
||||
"urlPattern": "/company-info|/ko/company-info|/settings/company-info",
|
||||
"urlPattern": "/company-info|/ko/company-info",
|
||||
"menuHints": ["회사정보", "회사 정보", "설정"]
|
||||
},
|
||||
|
||||
"menuNavigation": {
|
||||
"level1": "설정",
|
||||
"level2": "회사정보",
|
||||
@@ -20,416 +51,386 @@
|
||||
"searchWithinParent": true,
|
||||
"closeOtherMenus": true
|
||||
},
|
||||
|
||||
"auth": {
|
||||
"username": "TestUser5",
|
||||
"password": "password123!"
|
||||
},
|
||||
"menuNavigationEnhanced": {
|
||||
"strategy": "scroll-and-search",
|
||||
"description": "사이드바를 스크롤하며 메뉴를 찾고 클릭하여 404를 방지",
|
||||
"level1": "설정",
|
||||
"level2": "회사정보",
|
||||
"alternativeLevel1Names": ["설정", "Settings", "환경설정", "시스템설정", "관리"],
|
||||
"alternativeLevel2Names": ["회사정보", "회사 정보", "Company Info", "회사관리", "기업정보"],
|
||||
"fallbackUrls": [
|
||||
"/company-info",
|
||||
"/ko/company-info",
|
||||
"/settings/company-info",
|
||||
"/ko/settings/company-info"
|
||||
],
|
||||
"scrollConfig": {
|
||||
"sidebarSelector": "nav, aside, [role='navigation'], .sidebar, #sidebar",
|
||||
"menuItemSelector": "a, button, [role='menuitem'], [role='treeitem']",
|
||||
"scrollStep": 200,
|
||||
"maxScrollAttempts": 10,
|
||||
"scrollDelay": 300
|
||||
}
|
||||
},
|
||||
|
||||
"expectedAPIs": [
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/v1/company-info",
|
||||
"description": "회사 정보 조회"
|
||||
},
|
||||
{
|
||||
"method": "PUT",
|
||||
"path": "/api/v1/company-info/:id",
|
||||
"description": "회사 정보 수정"
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/api/v1/company-info",
|
||||
"description": "회사 추가"
|
||||
}
|
||||
{ "method": "GET", "path": "/api/v1/company-info", "description": "회사 정보 조회" },
|
||||
{ "method": "PUT", "path": "/api/v1/company-info/:id", "description": "회사 정보 수정" },
|
||||
{ "method": "POST", "path": "/api/v1/company-info", "description": "회사 추가" }
|
||||
],
|
||||
|
||||
"steps": [
|
||||
{
|
||||
"id": 0,
|
||||
"name": "사이드바 메뉴 전체 펼치기",
|
||||
"description": "모두 펼치기 버튼을 클릭하여 전체 메뉴를 펼친 후 메뉴 탐색 준비",
|
||||
"description": "모두 펼치기 버튼 클릭 후 메뉴 탐색 준비",
|
||||
"actions": [
|
||||
{ "type": "scroll", "target": "sidebar", "direction": "top", "description": "사이드바 최상단으로 스크롤" },
|
||||
{ "type": "scroll", "target": "sidebar", "direction": "top" },
|
||||
{ "type": "wait", "duration": 300 },
|
||||
{ "type": "evaluate", "script": "Array.from(document.querySelectorAll('button')).find(b => b.innerText?.includes('모두 펼치기'))?.click()" },
|
||||
{ "type": "wait", "duration": 2000 }
|
||||
],
|
||||
"verification": [
|
||||
"사이드바가 화면에 보이는지 확인",
|
||||
"모든 메뉴가 펼쳐졌는지 확인"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "1차 메뉴 찾기: 설정 (스크롤 포함)",
|
||||
"description": "사이드바를 스크롤하며 '설정' 메뉴를 찾아 클릭",
|
||||
"name": "1차 메뉴 클릭: 설정",
|
||||
"description": "사이드바에서 설정 메뉴 찾아 클릭",
|
||||
"actions": [
|
||||
{
|
||||
"type": "scrollAndFind",
|
||||
"target": "설정",
|
||||
"alternativeTexts": ["설정", "Settings", "환경설정", "시스템설정"],
|
||||
"alternativeTexts": ["설정", "Settings", "환경설정"],
|
||||
"scrollContainer": "sidebar",
|
||||
"maxAttempts": 10,
|
||||
"description": "스크롤하며 설정 메뉴 찾기"
|
||||
"maxAttempts": 10
|
||||
},
|
||||
{ "type": "wait", "duration": 300 },
|
||||
{ "type": "click_if_exists", "target": "설정", "description": "설정 메뉴 클릭" },
|
||||
{ "type": "wait", "duration": 500, "description": "서브메뉴 펼쳐지기 대기" },
|
||||
{ "type": "screenshot", "name": "settings_menu_expanded" }
|
||||
],
|
||||
"verification": [
|
||||
"설정 메뉴가 클릭되었는지 확인",
|
||||
"서브메뉴가 펼쳐졌는지 확인",
|
||||
"하위 메뉴 항목들이 보이는지 확인"
|
||||
],
|
||||
"fallback": {
|
||||
"if": "메뉴를 찾을 수 없음",
|
||||
"then": "사이드바 전체를 스크롤하며 재탐색"
|
||||
}
|
||||
{ "type": "click_if_exists", "target": "설정" },
|
||||
{ "type": "wait", "duration": 500 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "2차 메뉴 찾기: 회사정보 (스크롤 포함)",
|
||||
"description": "서브메뉴에서 '회사정보'를 찾아 클릭",
|
||||
"name": "2차 메뉴 클릭: 회사정보",
|
||||
"description": "서브메뉴에서 회사정보 클릭",
|
||||
"actions": [
|
||||
{
|
||||
"type": "scrollAndFind",
|
||||
"target": "회사정보",
|
||||
"alternativeTexts": ["회사정보", "회사 정보", "Company Info", "회사관리"],
|
||||
"alternativeTexts": ["회사정보", "회사 정보"],
|
||||
"scrollContainer": "submenu",
|
||||
"maxAttempts": 5,
|
||||
"description": "서브메뉴에서 회사정보 찾기"
|
||||
"maxAttempts": 5
|
||||
},
|
||||
{ "type": "wait", "duration": 200 },
|
||||
{ "type": "click_if_exists", "target": "회사정보", "description": "회사정보 메뉴 클릭" },
|
||||
{ "type": "wait", "target": "페이지 로드 완료", "timeout": 10000 },
|
||||
{ "type": "screenshot", "name": "company_info_page" }
|
||||
],
|
||||
"verification": [
|
||||
"회사정보 메뉴 클릭 성공",
|
||||
"페이지 이동 또는 컨텐츠 로드"
|
||||
{ "type": "click_if_exists", "target": "회사정보" },
|
||||
{ "type": "wait", "duration": 3000 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "404 에러 감지 및 대체 경로 시도",
|
||||
"description": "페이지 로드 후 404 에러 여부 확인, 404시 대체 경로 탐색",
|
||||
"name": "페이지 URL 검증",
|
||||
"description": "회사정보 페이지 URL 확인",
|
||||
"actions": [
|
||||
{ "type": "wait", "duration": 1000 },
|
||||
{ "type": "checkFor404", "indicators": [
|
||||
"페이지를 찾을 수 없습니다",
|
||||
"404",
|
||||
"Not Found",
|
||||
"존재하지 않거나"
|
||||
]},
|
||||
{ "type": "screenshot", "name": "page_load_result" }
|
||||
],
|
||||
"verification": [
|
||||
"현재 페이지가 404인지 확인"
|
||||
],
|
||||
"onError404": {
|
||||
"description": "404 에러 발생 시 대체 URL 시도",
|
||||
"actions": [
|
||||
{ "type": "log", "message": "404 감지 - 대체 경로 탐색 시작" },
|
||||
{
|
||||
"type": "tryAlternativeUrls",
|
||||
"urls": [
|
||||
"/company-info",
|
||||
"/ko/company-info"
|
||||
],
|
||||
"stopOnSuccess": true
|
||||
},
|
||||
{
|
||||
"type": "ifStillFailed",
|
||||
"action": "navigateViaMenuClick",
|
||||
"description": "URL 직접 접근 실패 시 메뉴 클릭으로 재시도"
|
||||
}
|
||||
]
|
||||
}
|
||||
{ "type": "verify_url", "pattern": "/company-info" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "페이지 정상 로드 확인",
|
||||
"description": "회사정보 페이지가 정상적으로 로드되었는지 확인",
|
||||
"name": "페이지 제목 검증",
|
||||
"description": "페이지 제목이 '회사정보'인지 확인",
|
||||
"actions": [
|
||||
{ "type": "verify", "target": "pageTitle", "contains": ["회사정보", "회사 정보", "Company"] },
|
||||
{ "type": "verify", "target": "pageContent", "notContains": ["404", "찾을 수 없습니다", "Not Found"] }
|
||||
],
|
||||
"verification": [
|
||||
"페이지 제목 '회사정보' 또는 관련 텍스트 표시",
|
||||
"404 에러 메시지 미표시",
|
||||
"콘텐츠가 정상 렌더링됨"
|
||||
],
|
||||
"successCriteria": {
|
||||
"urlPattern": "/company-info",
|
||||
"requiredElements": ["회사", "회사명", "대표자명"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"step": 5,
|
||||
"name": "페이지 제목 확인",
|
||||
"action": "verify",
|
||||
"target": "heading",
|
||||
"expected": "회사정보",
|
||||
"validation": "페이지 제목이 '회사정보'로 표시됨"
|
||||
},
|
||||
{
|
||||
"step": 6,
|
||||
"name": "회사 추가 버튼 존재 확인",
|
||||
"action": "verify",
|
||||
"target": "button[text='회사 추가']",
|
||||
"expected": "button exists",
|
||||
"validation": "회사 추가 버튼이 표시됨"
|
||||
},
|
||||
{
|
||||
"step": 7,
|
||||
"name": "수정 버튼 존재 확인",
|
||||
"action": "verify",
|
||||
"target": "button[text='수정']",
|
||||
"expected": "button exists",
|
||||
"validation": "수정 버튼이 표시됨"
|
||||
},
|
||||
{
|
||||
"step": 8,
|
||||
"name": "회사명 필드 확인",
|
||||
"action": "verify",
|
||||
"target": "textbox[label='회사명'][disabled]",
|
||||
"expected": "프론트_테스트회사",
|
||||
"validation": "회사명이 표시되고 비활성화 상태"
|
||||
},
|
||||
{
|
||||
"step": 9,
|
||||
"name": "대표자명 필드 확인",
|
||||
"action": "verify",
|
||||
"target": "textbox[label='대표자명'][disabled]",
|
||||
"expected": "프론트",
|
||||
"validation": "대표자명이 표시되고 비활성화 상태"
|
||||
},
|
||||
{
|
||||
"step": 10,
|
||||
"name": "업태 필드 확인",
|
||||
"action": "verify",
|
||||
"target": "textbox[label='업태'][disabled]",
|
||||
"expected": "업태명",
|
||||
"validation": "업태가 표시되고 비활성화 상태"
|
||||
},
|
||||
{
|
||||
"step": 11,
|
||||
"name": "업종 필드 확인",
|
||||
"action": "verify",
|
||||
"target": "textbox[label='업종'][disabled]",
|
||||
"expected": "업종명",
|
||||
"validation": "업종이 표시되고 비활성화 상태"
|
||||
},
|
||||
{
|
||||
"step": 12,
|
||||
"name": "주소 필드 확인",
|
||||
"action": "verify",
|
||||
"target": "textbox[label='주소명'][disabled]",
|
||||
"expected": "주소 표시",
|
||||
"validation": "주소가 표시되고 비활성화 상태"
|
||||
},
|
||||
{
|
||||
"step": 13,
|
||||
"name": "이메일 필드 확인",
|
||||
"action": "verify",
|
||||
"target": "textbox[label='이메일 (아이디)'][disabled]",
|
||||
"expected": "이메일 표시",
|
||||
"validation": "이메일이 표시되고 비활성화 상태"
|
||||
},
|
||||
{
|
||||
"step": 14,
|
||||
"name": "사업자등록번호 필드 확인",
|
||||
"action": "verify",
|
||||
"target": "textbox[label='사업자등록번호'][disabled]",
|
||||
"expected": "사업자등록번호 표시",
|
||||
"validation": "사업자등록번호가 표시되고 비활성화 상태"
|
||||
},
|
||||
{
|
||||
"step": 15,
|
||||
"name": "수정 버튼 클릭",
|
||||
"action": "click_if_exists",
|
||||
"target": "button[text='수정']",
|
||||
"expected": "edit mode enabled",
|
||||
"validation": "수정 모드로 전환됨"
|
||||
},
|
||||
{
|
||||
"step": 16,
|
||||
"name": "수정 모드 - 필드 활성화 확인",
|
||||
"action": "verify",
|
||||
"target": "textbox:not([disabled])",
|
||||
"expected": "fields enabled",
|
||||
"validation": "텍스트 필드들이 활성화됨"
|
||||
},
|
||||
{
|
||||
"step": 17,
|
||||
"name": "취소 버튼 클릭",
|
||||
"action": "click_if_exists",
|
||||
"target": "button[text='취소']",
|
||||
"expected": "edit mode disabled",
|
||||
"validation": "조회 모드로 복귀"
|
||||
},
|
||||
{
|
||||
"step": 18,
|
||||
"name": "회사 추가 버튼 클릭",
|
||||
"action": "click_if_exists",
|
||||
"target": "button[text='회사 추가']",
|
||||
"expected": "dialog opened",
|
||||
"validation": "회사 추가 다이얼로그가 열림"
|
||||
},
|
||||
{
|
||||
"step": 19,
|
||||
"name": "회사 추가 다이얼로그 확인",
|
||||
"action": "verify",
|
||||
"target": "dialog",
|
||||
"expected": "회사 추가 다이얼로그 표시",
|
||||
"validation": "다이얼로그 제목, 입력 필드, 버튼 확인"
|
||||
},
|
||||
{
|
||||
"step": 20,
|
||||
"name": "다이얼로그 닫기",
|
||||
"action": "click_if_exists",
|
||||
"target": "dialog button[text='취소']",
|
||||
"expected": "dialog closed",
|
||||
"validation": "다이얼로그가 닫힘"
|
||||
},
|
||||
{
|
||||
"step": 21,
|
||||
"name": "수정 모드에서 데이터 변경 테스트",
|
||||
"description": "실제 데이터를 수정하고 저장 기능 검증",
|
||||
"actions": [
|
||||
{ "type": "click_if_exists", "target": "수정", "description": "수정 모드 진입" }
|
||||
],
|
||||
"expect": {
|
||||
"fieldsEnabled": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"step": 22,
|
||||
"name": "업태 필드 수정",
|
||||
"description": "업태 필드 값 변경",
|
||||
"actions": [
|
||||
{ "type": "clear", "target": "업태" },
|
||||
{ "type": "fill", "target": "업태", "value": "테스트업태_수정" }
|
||||
{
|
||||
"type": "verify_element",
|
||||
"selector": "h1, h2, [class*='PageHeader'] h1",
|
||||
"contains": "회사정보"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"step": 23,
|
||||
"name": "저장 버튼 클릭",
|
||||
"id": 5,
|
||||
"name": "회사 추가 버튼 존재 확인",
|
||||
"description": "'회사 추가' 버튼이 화면에 존재하는지 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "verify_element",
|
||||
"selector": "button",
|
||||
"contains": "회사 추가"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"name": "수정 버튼 존재 확인",
|
||||
"description": "'수정' 버튼이 화면에 존재하는지 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "verify_element",
|
||||
"selector": "button",
|
||||
"contains": "수정"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"name": "회사명 입력 필드 확인",
|
||||
"description": "#companyName 입력 필드가 존재하고 비활성화 상태인지 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "verify_element",
|
||||
"selector": "#companyName"
|
||||
},
|
||||
{
|
||||
"type": "evaluate",
|
||||
"script": "const el = document.querySelector('#companyName'); return { exists: !!el, disabled: el?.disabled, value: el?.value };"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"name": "대표자명 입력 필드 확인",
|
||||
"description": "#representativeName 입력 필드 존재 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "verify_element",
|
||||
"selector": "#representativeName"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"name": "업태 입력 필드 확인",
|
||||
"description": "#businessType 입력 필드 존재 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "verify_element",
|
||||
"selector": "#businessType"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"name": "업종 입력 필드 확인",
|
||||
"description": "#businessCategory 입력 필드 존재 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "verify_element",
|
||||
"selector": "#businessCategory"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"name": "이메일 입력 필드 확인",
|
||||
"description": "#email 입력 필드 존재 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "verify_element",
|
||||
"selector": "#email"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"name": "사업자등록번호 입력 필드 확인",
|
||||
"description": "#businessNumber 입력 필드 존재 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "verify_element",
|
||||
"selector": "#businessNumber"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"name": "조회 모드 - 필드 비활성화 상태 검증",
|
||||
"description": "수정 버튼 클릭 전 모든 필드가 disabled 상태인지 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "evaluate",
|
||||
"script": "const fields = ['#companyName', '#representativeName', '#businessType', '#businessCategory', '#email', '#businessNumber']; const results = fields.map(sel => { const el = document.querySelector(sel); return { selector: sel, disabled: el?.disabled ?? false }; }); const allDisabled = results.every(r => r.disabled); return { allDisabled, results };"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"name": "[UPDATE] 수정 버튼 클릭",
|
||||
"phase": "UPDATE",
|
||||
"description": "수정 모드 진입",
|
||||
"actions": [
|
||||
{ "type": "click_button", "text": "수정" },
|
||||
{ "type": "wait", "duration": 500 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"name": "[UPDATE] 수정 모드 - 필드 활성화 검증",
|
||||
"phase": "UPDATE",
|
||||
"description": "수정 모드에서 입력 필드들이 활성화되었는지 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "evaluate",
|
||||
"script": "const fields = ['#companyName', '#representativeName', '#businessType', '#businessCategory']; const results = fields.map(sel => { const el = document.querySelector(sel); return { selector: sel, disabled: el?.disabled ?? true }; }); const anyEnabled = results.some(r => !r.disabled); return { anyEnabled, results };"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"name": "[UPDATE] 저장/취소 버튼 표시 확인",
|
||||
"phase": "UPDATE",
|
||||
"description": "수정 모드에서 저장, 취소 버튼이 표시되는지 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "verify_element",
|
||||
"selector": "button",
|
||||
"contains": "저장"
|
||||
},
|
||||
{
|
||||
"type": "verify_element",
|
||||
"selector": "button",
|
||||
"contains": "취소"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"name": "[UPDATE] 업태 필드 값 변경",
|
||||
"phase": "UPDATE",
|
||||
"description": "업태 필드에 테스트 값 입력",
|
||||
"actions": [
|
||||
{ "type": "clear", "selector": "#businessType" },
|
||||
{ "type": "fill", "selector": "#businessType", "value": "E2E_TEST_업태" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"name": "[UPDATE] 저장 버튼 클릭",
|
||||
"phase": "UPDATE",
|
||||
"description": "수정된 회사 정보 저장",
|
||||
"actions": [
|
||||
{ "type": "click_if_exists", "target": "저장" }
|
||||
],
|
||||
"waitFor": {
|
||||
"type": "apiResponse",
|
||||
"method": "PUT",
|
||||
"timeout": 5000
|
||||
},
|
||||
"expect": {
|
||||
"toast": ["수정", "완료", "성공", "저장"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"step": 24,
|
||||
"name": "⚠️ 필수 검증: 수정 데이터 반영 확인",
|
||||
"note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 데이터 변경 확인 필수!",
|
||||
"description": "수정된 업태 값이 반영되었는지 확인",
|
||||
"verify": {
|
||||
"fieldValue": {
|
||||
"target": "업태",
|
||||
"expected": "테스트업태_수정"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"step": 25,
|
||||
"name": "회사 추가 다이얼로그 열기",
|
||||
"description": "회사 추가 버튼 클릭하여 다이얼로그 열기",
|
||||
"actions": [
|
||||
{ "type": "click_if_exists", "target": "회사 추가" }
|
||||
],
|
||||
"expect": {
|
||||
"dialog": true,
|
||||
"visible": ["회사명", "대표자명", "사업자등록번호", "등록", "취소"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"step": 26,
|
||||
"name": "새 회사 정보 입력",
|
||||
"description": "회사 추가 다이얼로그에서 필수 정보 입력",
|
||||
"actions": [
|
||||
{ "type": "fill", "target": "회사명", "value": "테스트회사_{timestamp}" },
|
||||
{ "type": "fill", "target": "대표자명", "value": "테스트대표" },
|
||||
{ "type": "fill", "target": "사업자등록번호", "value": "123-45-67890" }
|
||||
{ "type": "click_button", "text": "저장" },
|
||||
{ "type": "wait", "duration": 2000 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"step": 27,
|
||||
"name": "회사 등록",
|
||||
"description": "등록 버튼 클릭하여 새 회사 등록",
|
||||
"id": 19,
|
||||
"name": "[UPDATE] 저장 성공 토스트 확인",
|
||||
"phase": "UPDATE",
|
||||
"description": "저장 성공 메시지 토스트 확인",
|
||||
"actions": [
|
||||
{ "type": "click_if_exists", "target": "등록" }
|
||||
],
|
||||
"waitFor": {
|
||||
"type": "apiResponse",
|
||||
"method": "POST",
|
||||
"timeout": 5000
|
||||
},
|
||||
"expect": {
|
||||
"toast": ["등록", "완료", "성공"],
|
||||
"dialogClosed": true
|
||||
}
|
||||
{
|
||||
"type": "verify_toast",
|
||||
"contains": ["저장", "완료", "성공"]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"step": 28,
|
||||
"name": "⚠️ 필수 검증: 회사 등록 반영 확인",
|
||||
"note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 데이터 등록 확인 필수!",
|
||||
"description": "등록된 회사가 목록에 표시되는지 확인",
|
||||
"verify": {
|
||||
"visible": "테스트회사"
|
||||
}
|
||||
"id": 20,
|
||||
"name": "[UPDATE] 수정 데이터 반영 확인",
|
||||
"phase": "UPDATE",
|
||||
"description": "변경된 업태 값이 필드에 반영되었는지 확인",
|
||||
"critical": true,
|
||||
"actions": [
|
||||
{
|
||||
"type": "verify_input_value",
|
||||
"selector": "#businessType",
|
||||
"contains": "E2E_TEST_업태"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"step": 29,
|
||||
"name": "원복: 업태 필드 원래 값으로 복구",
|
||||
"description": "테스트 후 원래 값으로 복구",
|
||||
"id": 21,
|
||||
"name": "회사 추가 다이얼로그 열기",
|
||||
"description": "회사 추가 버튼 클릭하여 다이얼로그 표시",
|
||||
"actions": [
|
||||
{ "type": "click_if_exists", "target": "수정" },
|
||||
{ "type": "clear", "target": "업태" },
|
||||
{ "type": "fill", "target": "업태", "value": "업태명" },
|
||||
{ "type": "click_if_exists", "target": "저장" }
|
||||
],
|
||||
"expect": {
|
||||
"toast": ["수정", "완료", "성공", "저장"]
|
||||
}
|
||||
{ "type": "click_button", "text": "회사 추가" },
|
||||
{ "type": "wait", "duration": 500 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 22,
|
||||
"name": "회사 추가 다이얼로그 표시 검증",
|
||||
"description": "다이얼로그가 열리고 제목이 '회사 추가'인지 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "verify_element",
|
||||
"selector": "[role='dialog']"
|
||||
},
|
||||
{
|
||||
"type": "verify_element",
|
||||
"selector": "[role='dialog'] h2",
|
||||
"contains": "회사 추가"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 23,
|
||||
"name": "다이얼로그 내 사업자등록번호 입력 필드 확인",
|
||||
"description": "다이얼로그 내 #businessNumber 입력 필드 존재 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "verify_element",
|
||||
"selector": "[role='dialog'] #businessNumber"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 24,
|
||||
"name": "다이얼로그 내 취소/다음 버튼 확인",
|
||||
"description": "취소, 다음 버튼 존재 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "evaluate",
|
||||
"script": "const dialog = document.querySelector('[role=\"dialog\"]'); if (!dialog) return { error: 'Dialog not found' }; const buttons = Array.from(dialog.querySelectorAll('button')).map(b => b.innerText.trim()); return { buttons, hasCancel: buttons.includes('취소'), hasNext: buttons.includes('다음') };"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 25,
|
||||
"name": "다이얼로그 사업자등록번호 입력",
|
||||
"description": "10자리 사업자등록번호 입력",
|
||||
"actions": [
|
||||
{ "type": "fill", "selector": "[role='dialog'] #businessNumber", "value": "1234567890" },
|
||||
{ "type": "wait", "duration": 300 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 26,
|
||||
"name": "다이얼로그 다음 버튼 활성화 확인",
|
||||
"description": "10자리 입력 후 다음 버튼이 활성화되는지 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "evaluate",
|
||||
"script": "const dialog = document.querySelector('[role=\"dialog\"]'); const nextBtn = Array.from(dialog?.querySelectorAll('button') || []).find(b => b.innerText.includes('다음')); return { disabled: nextBtn?.disabled ?? true, text: nextBtn?.innerText };"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 27,
|
||||
"name": "다이얼로그 취소 클릭",
|
||||
"description": "취소 버튼 클릭하여 다이얼로그 닫기",
|
||||
"actions": [
|
||||
{
|
||||
"type": "evaluate",
|
||||
"script": "const dialog = document.querySelector('[role=\"dialog\"]'); const cancelBtn = Array.from(dialog?.querySelectorAll('button') || []).find(b => b.innerText.includes('취소')); cancelBtn?.click(); return { clicked: !!cancelBtn };"
|
||||
},
|
||||
{ "type": "wait", "duration": 500 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 28,
|
||||
"name": "다이얼로그 닫힘 확인",
|
||||
"description": "다이얼로그가 닫혔는지 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "evaluate",
|
||||
"script": "const dialog = document.querySelector('[role=\"dialog\"]'); return { dialogClosed: !dialog || dialog.offsetParent === null };"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 29,
|
||||
"name": "[CLEANUP] 업태 필드 원래 값 복구",
|
||||
"phase": "CLEANUP",
|
||||
"description": "테스트 데이터 정리 - 업태 필드 원복",
|
||||
"actions": [
|
||||
{ "type": "click_button", "text": "수정" },
|
||||
{ "type": "wait", "duration": 500 },
|
||||
{ "type": "clear", "selector": "#businessType" },
|
||||
{ "type": "fill", "selector": "#businessType", "value": "업태명" },
|
||||
{ "type": "click_button", "text": "저장" },
|
||||
{ "type": "wait", "duration": 2000 }
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
"notes": [
|
||||
"직접 URL 접근 금지: 반드시 메뉴 클릭으로 페이지 진입 (404 방지)",
|
||||
"스크롤 필수: 사이드바가 길 경우 메뉴가 화면 밖에 있을 수 있음",
|
||||
"대체 경로: 메뉴명이 변경되었을 수 있으므로 다양한 이름으로 탐색",
|
||||
"메뉴 계층: 설정 > 회사정보"
|
||||
"메뉴 계층: 설정 > 회사정보",
|
||||
"주요 필드 ID: #companyName, #representativeName, #businessType, #businessCategory, #email, #businessNumber",
|
||||
"수정 모드: 수정 버튼 클릭 시 필드 활성화, 저장/취소 버튼 표시"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user