test: use current loading remarks endpoint

This commit is contained in:
2026-09-14 17:36:52 +08:00
parent a9959620f1
commit e26b39ba0a
2 changed files with 8 additions and 8 deletions
@@ -13,17 +13,17 @@ test('fixture locks customer and latest internal note sources without cargoRemar
assert.match(loading, /assignedItem\?\.customerRemark === orderRemarks\.customerRemark/)
assert.match(loading, /assignedItem\?\.internalRemark === orderRemarks\.internalRemark/)
assert.match(loading, /assignedItem\?\.internalRemark !== orderRemarks\.cargoRemark/)
assert.match(service, /item\.setCustomerRemark\(cargo\.customerRemark\(\)\)/)
assert.match(service, /item\.setInternalRemark\(cargo\.latestInternalNote\(\)\)/)
assert.match(service, /i\.setCustomerRemark\(cargo\.customerRemark\(\)\)/)
assert.match(service, /i\.setInternalRemark\(cargo\.latestInternalNote\(\)\)/)
})
test('warehouse remark PATCH covers save clear stale version and source preservation', () => {
assert.match(openapi, /items\/\{itemId\}\/warehouse-remark/)
assert.match(openapi, /items\/\{itemId\}\/remarks/)
assert.match(openapi, /expectedPlanVersion/)
assert.match(openapi, /expectedItemVersion/)
assert.match(openapi, /null\/空字符串均表示清空/)
assert.match(openapi, /COMPLETED、计划\/明细版本冲突返回 A0409 且事务零写入/)
assert.match(openapi, /数量调整或动态增量不会覆盖已有 warehouseRemark/)
assert.match(openapi, /数量调整或动态增量不会覆盖已有协作备注/)
assert.match(loading, /EDITING 装柜明细保存仓库备注/)
assert.match(loading, /仓库备注相同 operationId 与原请求精确重放/)
assert.match(loading, /仓库备注精确重放不重复递增版本或历史事实/)