coupon-redeem-code

20260916-181749 轮 · 看它的历史
[target] clone=h8 port=20098 base=http://localhost:20098
  [ctx] 领取前券数 = 39
  PASS 券页存在兑换码输入框
  [resp] {"data":{"coupon_user_id":352,"code":"CGM2SFEJD","batch_name":"E2E 自动化测试券(勿用于业务)"},"info":"1","status":1}
  PASS 有效兑换码返回 info=1
  PASS 返回批次名正确(实际 E2E 自动化测试券(勿用于业务))
  PASS 领取后券数 39 → 40(+1)
  PASS 新券出现在列表中
  PASS 新券面额 RM10.00
  [补券] 可用券 1 → 4(下限 4,本次补 3 张)
  PASS 补完后可用券 ≥ 2(实得 4)—— 少于 2 张时 e2e-coupon-preview-race 会 BLOCKED
  PASS 重复领取被拒:"该券已达每人限领上限"
  PASS 无效码第1次 → 兑换码无效
  [resp#6] {"data":"操作过于频繁,请稍后再试","info":"0","status":1}
  PASS 第6次被限频拦下(证明每条失败路径都记了账):"操作过于频繁,请稍后再试"
  [收尾] COUPON_FAIL 的 uid / IP 两个桶已清

PASS=10 FAIL=0  screenshots -> /data/AICode/e2e/ma_dev_v2/ma/bin/workspace/test-results/playwright-images/web-coupon-entry