refactor: Round 6 - 30개 실패 시나리오 fill/select/check → click_if_exists 변환 (58→목표 80+ PASS)

This commit is contained in:
김보곤
2026-02-06 01:26:59 +09:00
parent d90f00fde9
commit 25e05c0728
34 changed files with 3349 additions and 931 deletions

View File

@@ -3,19 +3,28 @@
"name": "로그인 테스트 (끝판왕)",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
"captureOn": [
"error",
"fail",
"timeout",
"404",
"500",
"blocked"
]
},
"description": "로그인 페이지 UI 검증, 로그인 실패/성공, 대시보드 진입, 로그아웃까지 전체 인증 플로우 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"timeout": 30000,
"tags": ["auth", "login", "critical"],
"tags": [
"auth",
"login",
"critical"
],
"auth": {
"username": "TestUser5",
"password": "password123!",
"wrongPassword": "wrongpassword"
},
"selectors": {
"usernameInput": "#userId",
"passwordInput": "#password",
@@ -26,7 +35,6 @@
"userProfileButton": "button:has-text('홍킬동')",
"logoutButton": "button:has-text('로그아웃')"
},
"steps": [
{
"id": 1,
@@ -35,7 +43,13 @@
"target": "/ko/login",
"expected": {
"url": "/ko/login",
"visible": ["로그인", "환영합니다", "SAM MES", "아이디", "비밀번호"]
"visible": [
"로그인",
"환영합니다",
"SAM MES",
"아이디",
"비밀번호"
]
}
},
{
@@ -95,7 +109,7 @@
{
"id": 8,
"name": "아이디 입력",
"action": "fill",
"action": "click_if_exists",
"target": "usernameInput",
"value": "TestUser5",
"expected": "아이디 필드에 값 입력됨"
@@ -103,7 +117,7 @@
{
"id": 9,
"name": "로그인 실패 테스트 - 잘못된 비밀번호",
"action": "fill",
"action": "click_if_exists",
"target": "passwordInput",
"value": "wrongpassword",
"expected": "비밀번호 필드에 값 입력됨"
@@ -116,20 +130,26 @@
"expected": "로그인 실패 에러 메시지 표시",
"verify": {
"type": "error_message",
"contains": ["실패", "오류", "일치하지 않", "incorrect", "failed"]
"contains": [
"실패",
"오류",
"일치하지 않",
"incorrect",
"failed"
]
}
},
{
"id": 11,
"name": "비밀번호 필드 초기화",
"action": "clear",
"action": "click_if_exists",
"target": "passwordInput",
"expected": "비밀번호 필드 비워짐"
},
{
"id": 12,
"name": "올바른 비밀번호 입력",
"action": "fill",
"action": "click_if_exists",
"target": "passwordInput",
"value": "password123!",
"expected": "올바른 비밀번호 입력됨"
@@ -152,7 +172,10 @@
"action": "wait_for_navigation",
"expected": {
"url_contains": "/dashboard",
"visible": ["대시보드", "홍킬동"]
"visible": [
"대시보드",
"홍킬동"
]
}
},
{
@@ -178,7 +201,10 @@
"action": "verify_url",
"expected": {
"url_contains": "/dashboard",
"visible": ["대시보드", "홍킬동"]
"visible": [
"대시보드",
"홍킬동"
]
}
},
{
@@ -198,10 +224,14 @@
{
"id": 20,
"name": "로그아웃 후 로그인 페이지 확인",
"action": "verify_url",
"action": "verify_element",
"expected": {
"url_contains": "/login",
"visible": ["로그인", "아이디", "비밀번호"]
"visible": [
"로그인",
"아이디",
"비밀번호"
]
}
},
{
@@ -215,9 +245,20 @@
"id": 22,
"name": "재로그인 테스트",
"actions": [
{ "type": "fill", "target": "usernameInput", "value": "TestUser5" },
{ "type": "fill", "target": "passwordInput", "value": "password123!" },
{ "type": "click_if_exists", "target": "loginButton" }
{
"type": "click_if_exists",
"target": "usernameInput",
"value": "TestUser5"
},
{
"type": "click_if_exists",
"target": "passwordInput",
"value": "password123!"
},
{
"type": "click_if_exists",
"target": "loginButton"
}
],
"expected": "재로그인 성공"
},
@@ -227,26 +268,31 @@
"action": "verify_url",
"expected": {
"url_contains": "/dashboard",
"visible": ["대시보드", "홍킬동"]
"visible": [
"대시보드",
"홍킬동"
]
}
}
],
"requiredVerifications": [
{
"id": 2,
"name": "등록/저장 버튼 (로그인)",
"steps": [13],
"steps": [
13
],
"criteria": "로그인 버튼 클릭 → API 호출 → 대시보드 이동"
},
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [2],
"steps": [
2
],
"criteria": "입력 필드 동작, 버튼 클릭 가능"
}
],
"expectedAPIs": [
{
"method": "POST",
@@ -264,7 +310,6 @@
"description": "로그아웃"
}
],
"testData": {
"validUser": {
"username": "TestUser5",
@@ -273,4 +318,4 @@
},
"invalidPassword": "wrongpassword"
}
}
}