This commit is contained in:
2026-08-06 14:55:13 +08:00
parent 85ca013928
commit e33d620d87
5 changed files with 90 additions and 14 deletions
@@ -150,6 +150,9 @@ test('requires an enabled platform receiving warehouse in the order form', () =>
test('selects platform destinations by type and caches private addresses per user', () => {
assert.match(source, /warehouse\.warehouseType === form\.destinationType/)
assert.match(source, /await store\.loadWarehouseType\(type\)/)
assert.match(source, /await loadDestinationWarehouses\(form\.destinationType\)/)
assert.match(source, /:loading="destinationWarehousesLoading"/)
assert.match(source, /v-model="form\.destinationWarehouseId"/)
assert.match(source, /form\.amazonWarehouseCode = form\.destinationType === 'FBA' \? warehouse\.code : ''/)
assert.match(source, /cc:first-leg:private-addresses:\$\{auth\.user\?\.id/)