fix(pda): simplify dispatch review and loading confirmation
This commit is contained in:
@@ -62,9 +62,10 @@ test('warehouse transfer shows forecast and actual variance and requires counted
|
||||
assert.doesNotMatch(page, /本托 SKU 箱数|itemCounts/)
|
||||
})
|
||||
|
||||
test('warehouse transfer retries reuse the pending idempotency key', async () => {
|
||||
test('warehouse transfer creates a fresh completion key for each explicit attempt', async () => {
|
||||
const page = await readFile(new URL('../src/pages/warehouse-transfer/warehouse-transfer.vue', import.meta.url), 'utf8')
|
||||
assert.match(page, /if \(!this\.pendingKey\) this\.pendingKey = `pda-transfer-/)
|
||||
assert.doesNotMatch(page, /if \(!this\.pendingKey\) this\.pendingKey = `pda-transfer-/)
|
||||
assert.match(page, /this\.pendingKey = `pda-transfer-/)
|
||||
assert.match(page, /idempotencyKey: this\.pendingKey/)
|
||||
assert.equal((page.match(/pendingKey = `pda-transfer-/g) || []).length, 1)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user