fix(pda): guard duplicate submission and invalidate hidden task requests

This commit is contained in:
2026-10-02 11:12:53 +08:00
parent 7ba6a24505
commit 8d2d80ec11
4 changed files with 155 additions and 17 deletions
+4 -1
View File
@@ -292,7 +292,10 @@ test('picking session persists per task identity and clears on logout', async ()
assert.match(store, /savePickingSession/)
assert.match(store, /resetPickingSession/)
assert.match(session, /signOut\(\)[\s\S]*?resetPickingSession\(\)/)
assert.match(page, /onUnload\(\) \{ this\.stopHardwareScanner\(\); this\.persistSession\(\)/)
const unload = page.match(/onUnload\(\) \{([^}]+)\}/)?.[1] || ''
assert.match(unload, /this\.stopHardwareScanner\(\)/)
assert.match(unload, /this\.persistSession\(\)/)
assert.match(unload, /this\.invalidateTaskSync\(\)/)
})
test('shared visual contracts preserve accessible PDA targets', async () => {