Files
Gnuboard7/modules/_bundled/sirsoft-ecommerce/tests/scenarios/mp10-coupon-basic-validation.yaml
T
HeuJung 42eb21320b fix(ecommerce,core): 현금영수증 UI 보완 + 하네스 결함 6건 + 확장점 룰 사각 제거
현금영수증/환불계좌 기능(S3)의 감사 보완과, 그 과정에서 발견한 하네스 결함을
같은 세션에서 일괄 처리한다. 지시에 따라 무관 산출물(namuwiki 문서 초안 포함)도
단일 커밋으로 묶는다.

- 현금영수증 발급 이력 접기/펼치기(W-3) + 결제행별 독립 토글 + aria 상태
- vendor-bundle manifest 해시 재생성 — composer.json version bump 미반영분 정합
- 시나리오 매니페스트 거짓 경로 정정(A/B) + 미작성 부채 :test-files 정직 표기(C)
- layout-* 룰의 resources/extensions 검사 사각 제거 + 확장점 전용 root 스키마 분기
- validate-test-scenario.cjs: 맵형 test_files 크래시 + fallback 파서 covers 오검출 수정
- tosspayments 확장점 setState target 규약 위반 수정
2026-08-06 12:36:31 +09:00

43 lines
2.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# audit:allow test-scenario-coverage reason: |
# cross product 자동 전개는 audit 실행 환경에 js-yaml 부재로 nested axes 를 읽지 못하는
# 한계로 검출되지 않는다(동일 한계로 다른 번들 시나리오도 audit:allow). 본 변경은
# Store/UpdateCouponRequest 의 discountValueRules(정액 min:1)·messages(discount_type 분기)·
# prepareForValidation(빈값 null 정규화)을 PHPUnit Feature 가 discount_type × discount_value ×
# min_order_amount × request(store/update) cross product 로 커버하며 green.
feature: 쿠폰 기본정보 검증 — 정액 음수 메시지 + 최소주문금액 빈값 500 (A14)
description: |
정액(fixed) 할인값 음수/0 입력 시 정률 전용 메시지가 아닌 정액 메시지("할인값은 1원 이상…")로
표시되고 min:1 로 차단된다. 정률(rate) 0 입력은 기존 정률 메시지 유지(회귀). 최소주문금액을
빈 문자열로 저장 시 decimal cast 500 이 아니라 null 정규화되어 정상 저장(min_order_amount/
discount_max_amount/total_quantity 동시 정규화).
axes:
discount_type:
- fixed
- rate
discount_value:
- "-100" # 음수
- "0" # 0 → min:1 차단
- "1" # 경계 통과
- "150" # rate max:100 초과
min_order_amount:
- empty # 빈 문자열 → null 정규화(500 회피)
- null # null 입력
- "5000" # 정상 입력 비파괴
request:
- store
- update # sometimes 유지 확인
effects:
- fixed_negative_shows_fixed_message # 정액 음수 → 정액 메시지(정률 메시지 아님)
- fixed_zero_blocks_min1 # 정액 0 → 422 min:1
- fixed_one_passes # 정액 1 → 통과
- rate_zero_shows_rate_message # 정률 0 → 정률 메시지(회귀)
- rate_over_max_blocked # 정률 150 → 422 max:100
- empty_min_order_no_500_saves_null # 최소주문금액 빈값 → 500 아님 + null 저장
- valid_input_preserved # 정상 입력 비파괴
test_files:
- modules/_bundled/sirsoft-ecommerce/tests/Feature/Http/Controllers/Admin/CouponBasicValidationTest.php