fix(first-leg): freeze versioned submission commands across retries

This commit is contained in:
2026-10-02 23:08:58 +08:00
parent 187deb5047
commit e564353a80
6 changed files with 251 additions and 30 deletions
@@ -636,8 +636,8 @@ test('shows billing-weight confirmation only when the backend marks it pending',
test('submits only selected draft orders in one batch action', () => {
assert.match(source, /selectedDraftOrders = computed\(\(\) => selectedOrders\.value\.filter\(\(order\) => order\.status === 'DRAFT'\)\)/)
assert.match(source, /Promise\.allSettled\(drafts\.map\(\(order\) => submitMerchantFirstLegOrder/)
assert.match(source, /createIdempotencyKey\(`first-leg-batch-submit-\$\{order\.id\}`\)/)
assert.match(source, /Promise\.allSettled\(ids\.map\(id => store\.submitSaved/)
assert.doesNotMatch(source, /submitMerchantFirstLegOrder/)
assert.match(source, /v-if="canSubmitOrder"[\s\S]*批量提交草稿/)
})