coupon-redeem-code
[target] clone=h8 port=20098 base=http://localhost:20098
[ctx] 领取前券数 = 39
PASS 券页存在兑换码输入框
[resp] {"data":{"coupon_user_id":354,"code":"C395YGUFV","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
ERROR response.json: Protocol error (Network.getResponseBody): No resource with given identifier found
at redeem (/data/AICode/e2e/ma_dev_v2/ma/bin/workspace/playwright/e2e/e2e-coupon-redeem-code.js:63:36)
at async /data/AICode/e2e/ma_dev_v2/ma/bin/workspace/playwright/e2e/e2e-coupon-redeem-code.js:115:14 {
name: 'Error'
}