test(cache): 修复CacheConfigTest边界值测试
- 修改 shouldVerifyCacheManager_withMaximumIntegerTtl 为 shouldVerifyCacheManager_withMaximumAllowedTtl - 使用正确的最大TTL值(10080分钟,7天)而不是 Integer.MAX_VALUE - 新增 shouldThrowException_whenTtlExceedsMaximum 测试验证边界检查 - 所有1266个测试用例通过 - 覆盖率: 指令81.89%, 行88.48%, 分支51.55% docs: 添加项目状态报告 - 生成 PROJECT_STATUS_REPORT.md 详细记录项目当前状态 - 包含质量指标、已完成功能、待办事项和技术债务
This commit is contained in:
62
frontend/h5/cypress/fixtures/coupons.json
Normal file
62
frontend/h5/cypress/fixtures/coupons.json
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"success": true,
|
||||
"data": [
|
||||
{
|
||||
"id": "1",
|
||||
"name": "新用户专享优惠券",
|
||||
"description": "满100减10元",
|
||||
"discount": 10.00,
|
||||
"minAmount": 100.00,
|
||||
"type": "DISCOUNT",
|
||||
"validUntil": "2026-02-23T23:59:59Z",
|
||||
"claimed": false,
|
||||
"quantity": 1000,
|
||||
"remaining": 850,
|
||||
"imageUrl": "https://picsum.photos/seed/coupon1/300/200.jpg",
|
||||
"tags": ["新用户", "专享"],
|
||||
"rules": [
|
||||
"仅限新用户领取",
|
||||
"有效期30天",
|
||||
"不可与其他优惠叠加"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "2",
|
||||
"name": "限时特惠券",
|
||||
"description": "满50减5元",
|
||||
"discount": 5.00,
|
||||
"minAmount": 50.00,
|
||||
"type": "DISCOUNT",
|
||||
"validUntil": "2026-01-30T23:59:59Z",
|
||||
"claimed": false,
|
||||
"quantity": 500,
|
||||
"remaining": 320,
|
||||
"imageUrl": "https://picsum.photos/seed/coupon2/300/200.jpg",
|
||||
"tags": ["限时", "特惠"],
|
||||
"rules": [
|
||||
"有效期7天",
|
||||
"每人限领1张",
|
||||
"不可与其他优惠叠加"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "3",
|
||||
"name": "邀请奖励券",
|
||||
"description": "无门槛减3元",
|
||||
"discount": 3.00,
|
||||
"minAmount": 0.00,
|
||||
"type": "DISCOUNT",
|
||||
"validUntil": "2026-02-23T23:59:59Z",
|
||||
"claimed": true,
|
||||
"quantity": 2000,
|
||||
"remaining": 1200,
|
||||
"imageUrl": "https://picsum.photos/seed/coupon3/300/200.jpg",
|
||||
"tags": ["邀请", "奖励"],
|
||||
"rules": [
|
||||
"邀请好友成功后获得",
|
||||
"有效期30天",
|
||||
"全场通用"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user