|
|
@@ -631,10 +631,12 @@ if (-not $skipFulfillment) {
|
|
|
}
|
|
|
$confirmCode = ''
|
|
|
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 ([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")
|
|
|
$finPhotos = @($resp.data.finishPhotos)
|
|
|
Assert-True ($finPhotos.Count -eq 2) 'finishPhotos 回显 2 张' $resp ("count=" + $finPhotos.Count)
|