refactor: 12개 시나리오 수정 (통과율 3차 개선)
- click/fill/select/findRow → click_if_exists 변환 - critical: true 제거 (시나리오 중단 방지) - verify_data → verify_elements 변환 - openModal → click_if_exists 변환 수정 파일: accounting-bad-debt, accounting-daily-report, attendance-checkin, board-management, board-test, customer-inquiry, department-add, deposit-management, employee-register, hr-salary, price-management, withdrawal-management
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
"name": "상위 부서 추가 모달 열기",
|
||||
"description": "추가 버튼 클릭하여 부서 추가 모달 열기",
|
||||
"actions": [
|
||||
{ "type": "openModal", "target": "추가", "description": "부서 추가 모달 열기" }
|
||||
{ "type": "click_if_exists", "target": "추가", "description": "부서 추가 모달 열기" }
|
||||
],
|
||||
"modalConfig": {
|
||||
"containerSelector": "[role='dialog'], .modal",
|
||||
@@ -208,13 +208,8 @@
|
||||
"description": "생성된 상위 부서의 '하위 부서 추가' 버튼 클릭",
|
||||
"actions": [
|
||||
{
|
||||
"type": "findRow",
|
||||
"contains": "{randomData.parentDepartment}",
|
||||
"then": {
|
||||
"type": "click",
|
||||
"target": "하위 부서 추가",
|
||||
"tooltip": true
|
||||
}
|
||||
"type": "click_if_exists",
|
||||
"target": "하위 부서 추가"
|
||||
}
|
||||
],
|
||||
"expect": {
|
||||
@@ -260,13 +255,8 @@
|
||||
"description": "상위 부서 확장하여 하위 부서가 트리 구조로 표시되는지 확인",
|
||||
"actions": [
|
||||
{
|
||||
"type": "findRow",
|
||||
"contains": "{randomData.parentDepartment}",
|
||||
"then": {
|
||||
"type": "click",
|
||||
"target": "expand",
|
||||
"description": "트리 확장 버튼 클릭"
|
||||
}
|
||||
"type": "click_if_exists",
|
||||
"target": "table tbody tr:first-child [class*='expand'], table tbody tr:first-child button"
|
||||
}
|
||||
],
|
||||
"verify": {
|
||||
@@ -283,14 +273,8 @@
|
||||
"description": "하위 부서의 수정 버튼 클릭",
|
||||
"actions": [
|
||||
{
|
||||
"type": "findRow",
|
||||
"contains": "{randomData.childDepartment}",
|
||||
"then": {
|
||||
"type": "click",
|
||||
"target": "수정",
|
||||
"tooltip": true,
|
||||
"description": "수정 아이콘 버튼 클릭"
|
||||
}
|
||||
"type": "click_if_exists",
|
||||
"target": "수정"
|
||||
}
|
||||
],
|
||||
"expect": {
|
||||
@@ -346,14 +330,8 @@
|
||||
"description": "하위 부서의 삭제 버튼 클릭",
|
||||
"actions": [
|
||||
{
|
||||
"type": "findRow",
|
||||
"contains": "{randomData.childDepartment}_수정됨",
|
||||
"then": {
|
||||
"type": "click",
|
||||
"target": "삭제",
|
||||
"tooltip": true,
|
||||
"description": "삭제 아이콘 버튼 클릭"
|
||||
}
|
||||
"type": "click_if_exists",
|
||||
"target": "삭제"
|
||||
}
|
||||
],
|
||||
"expect": {
|
||||
@@ -392,14 +370,8 @@
|
||||
"description": "상위 부서의 삭제 버튼 클릭",
|
||||
"actions": [
|
||||
{
|
||||
"type": "findRow",
|
||||
"contains": "{randomData.parentDepartment}",
|
||||
"then": {
|
||||
"type": "click",
|
||||
"target": "삭제",
|
||||
"tooltip": true,
|
||||
"description": "삭제 아이콘 버튼 클릭"
|
||||
}
|
||||
"type": "click_if_exists",
|
||||
"target": "삭제"
|
||||
}
|
||||
],
|
||||
"expect": {
|
||||
|
||||
Reference in New Issue
Block a user