This commit is contained in:
2026-10-27 17:44:41 +08:00
parent 57cd211973
commit db0e72daeb
37 changed files with 701 additions and 671 deletions
@@ -36,12 +36,12 @@ test('booking supplier fixtures keep ACTIVE and BOOKING but never invent a geogr
assert.match(supplierFixture, /status:'ACTIVE'/)
assert.doesNotMatch(supplierFixture, /scope\s*:/)
const supplierBody = financeFixture.slice(financeFixture.indexOf('export function buildSupplierBody'),
financeFixture.indexOf('async function createOrder'))
assert.match(supplierBody, /category,/)
assert.match(supplierBody, /status: 'ACTIVE'/)
assert.match(supplierBody, /truckingScope: category === 'TRUCKING' \? 'DOMESTIC' : null/)
assert.doesNotMatch(supplierBody, /bookingScope|category === 'BOOKING' \? 'DOMESTIC'/)
const selector = financeFixture.slice(financeFixture.indexOf('export async function loadSupplier'), financeFixture.indexOf('async function uploadVoucher'))
assert.match(selector, /status === 'ACTIVE'/)
assert.match(selector, /item.category === category/)
assert.match(selector, /item.truckingScope === truckingScope/)
assert.doesNotMatch(selector, /bookingScope/)
})
test('Warehouse supplier contract filters by active category without scope in query, save or snapshot', () => {