test: use current order remarks contract
This commit is contained in:
@@ -27,6 +27,13 @@ test('create and submit lifecycle covers replay payload conflict and zero drift'
|
||||
assert.match(source, /orderPersistenceFacts\(submittedAfterFailure\) === orderPersistenceFacts\(submitted\)/)
|
||||
})
|
||||
|
||||
test('admin internal notes use the current versioned collaborative remarks contract', () => {
|
||||
assert.match(source, /context\.request\('PUT',[\s\S]*\/remarks\?tenantId=/)
|
||||
assert.match(source, /expectedVersion:\s*Number\(firstLegDetail\?\.order\?\.version\)/)
|
||||
assert.match(source, /internalRemark:\s*`\$\{context\.marker\} Admin 订单链路验收`/)
|
||||
assert.doesNotMatch(source, /\/internal-notes/)
|
||||
})
|
||||
|
||||
test('persistence fact comparison includes order cargo parties notes and history', () => {
|
||||
const detail = {
|
||||
order: { id: '1', status: 'DRAFT' }, cargoes: [{ skuNo: 'SKU-1' }],
|
||||
|
||||
Reference in New Issue
Block a user