整批提交原子性的方案

This commit is contained in:
2026-09-11 18:14:33 +08:00
parent 23cef8e106
commit bee47f1a6c
2 changed files with 13 additions and 2 deletions
@@ -281,6 +281,11 @@ test('requires an enabled platform receiving warehouse in the order form', () =>
})
test('selects platform destinations and uses customer-scoped server address books', () => {
assert.match(source, /v-if="form\.fulfillmentType !== 'ONE_CLICK_DROPSHIP'" value="FBA"/)
assert.match(source, /<el-radio-button value="OVERSEAS">海外仓<\/el-radio-button>/)
assert.match(source, /v-if="form\.fulfillmentType !== 'ONE_CLICK_DROPSHIP'" value="PRIVATE"/)
assert.match(source, /@change="changeFulfillmentType"/)
assert.match(source, /form\.destinationType = 'OVERSEAS'\s*\n\s*await changeDestinationType\(\)/)
assert.match(source, /warehouse\.warehouseType === form\.destinationType/)
assert.match(source, /await store\.loadWarehouseType\(type\)/)
assert.match(source, /await loadDestinationWarehouses\(form\.destinationType\)/)