test: preserve fee item identifiers

This commit is contained in:
2026-08-15 18:07:23 +08:00
parent f2a49d032a
commit 20d836ab3d
2 changed files with 8 additions and 2 deletions
@@ -52,6 +52,12 @@ test('Finance PAYABLE fixture creates an isolated ACTIVE supplier through the fo
assert.match(source, /detail\?\.status === 'ACTIVE' && detail\?\.category === category/)
})
test('fee detail writes preserve 19-digit fee item IDs as strings', () => {
assert.doesNotMatch(source, /feeItemId: Number\(/)
assert.match(source, /feeItemId: String\(feeItem\.id\)/)
assert.match(source, /feeItemId: String\(feeItems\.PAYABLE\.id\)/)
})
test('automatic fee fixture completes the reviewed pricing workflow without recalculating', () => {
assert.match(source, /latest\?\.feeId/)
assert.doesNotMatch(source, /latest\?\.id/)