test: align full acceptance contracts

This commit is contained in:
2026-08-24 20:14:40 +08:00
parent 5edc2fc1bd
commit 005c3f54e2
10 changed files with 26 additions and 22 deletions
@@ -46,7 +46,8 @@ test('writes carry marker idempotency and include replay and stale-version confl
assert.match(source, /错误 sourceVersion 调整产生并发版本冲突/)
})
test('uses existing ACTIVE Warehouse supplier and never creates one', () => {
assert.match(source, /\/api\/platform\/v1\/suppliers\?page=1&size=200&status=ACTIVE&category=BOOKING/)
test('uses the fee item supplier category to select an existing ACTIVE supplier and never creates one', () => {
assert.match(source, /\/api\/platform\/v1\/suppliers\?page=1&size=200&status=ACTIVE\$\{suffix\}/)
assert.match(source, /const supplier = await loadActiveSupplier\(context, payableItem\?\.supplierCategory \|\| null\)/)
assert.doesNotMatch(source, /\/api\/platform\/v1\/partners/)
})