Explorar o código

docs(M5): 全量回归S1-S17与finish响应体断言

S14 追加:finish 响应体 status==done 且 finishAt 非空(5e097cf 修复点运行时证明)
保留 S9 金额恒等正反例(MoneyCheck:amount<platformFee 拒 / staffIncome=amount-platformFee)
全量实跑 76/76 PASS(S1-S17,rebuild jar 5e097cf,STORAGE_TYPE=local)
liaoxg hai 21 horas
pai
achega
c476d1d08f
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  1. 5 3
      docs/M5_smoke.ps1

+ 5 - 3
docs/M5_smoke.ps1

@@ -631,10 +631,12 @@ if (-not $skipFulfillment) {
     }
     }
     $confirmCode = ''
     $confirmCode = ''
     if ($resp.data -and $resp.data.clientConfirmCode) { $confirmCode = [string]$resp.data.clientConfirmCode }
     if ($resp.data -and $resp.data.clientConfirmCode) { $confirmCode = [string]$resp.data.clientConfirmCode }
-    # 契约实测:finish 响应体由 toVO(更新前实体) 生成,其 status 仍为旧值 arrived、finishAt 为空
-    # (ServiceOrderService.finish 行 203,后端缺陷已报 team-lead);真实库状态须用 detail 复核。
-    # 故本步只断言「受理成功 + 6 位码 + photos 回显」,状态/时间戳交给 detail 复核,避免假红。
+    # 批③ 5e097cf 修复点验证:finish 响应体须回显**更新后**的 status/finishAt
+    # (此前 finish 用 toVO(updateById 前实体) 造 VO,响应体 status 仍为 arrived、finishAt 为空;
+    #   已改为 selectById 重取实体构造 VO)。此处直接断言响应体,不再只靠 detail 复核。
     Assert-True ($resp.code -eq 200) 'worker 完成服务受理' $resp ("clientConfirmCode=$confirmCode")
     Assert-True ($resp.code -eq 200) 'worker 完成服务受理' $resp ("clientConfirmCode=$confirmCode")
+    Assert-True ([string]$resp.data.status -eq 'done') 'finish 响应体 status == done(5e097cf 修复点验证)' $resp ("status=" + $resp.data.status)
+    Assert-True ($resp.data.finishAt) 'finish 响应体 finishAt 非空(5e097cf 修复点验证)' $resp ("finishAt=" + $resp.data.finishAt)
     Assert-True ($confirmCode.Length -eq 6 -and $confirmCode -match '^[0-9]{6}$') '生成 6 位数字客户确认码' $resp ("clientConfirmCode=$confirmCode")
     Assert-True ($confirmCode.Length -eq 6 -and $confirmCode -match '^[0-9]{6}$') '生成 6 位数字客户确认码' $resp ("clientConfirmCode=$confirmCode")
     $finPhotos = @($resp.data.finishPhotos)
     $finPhotos = @($resp.data.finishPhotos)
     Assert-True ($finPhotos.Count -eq 2) 'finishPhotos 回显 2 张' $resp ("count=" + $finPhotos.Count)
     Assert-True ($finPhotos.Count -eq 2) 'finishPhotos 回显 2 张' $resp ("count=" + $finPhotos.Count)