test: refresh merchant token before PDA handoff

This commit is contained in:
2026-09-11 01:24:00 +08:00
parent 4f27e33daf
commit 543ebee5cc
2 changed files with 6 additions and 0 deletions
@@ -29,6 +29,8 @@ test('receiving hands off only transient credentials and completed warehouse fac
assert.match(receivingSource, /context\.context\.phase4OverseasPdaOperations = \{/)
assert.match(receivingSource, /completedFixtures: \[\]/)
assert.match(receivingSource, /merchantToken,/)
assert.match(receivingSource, /const refreshedMerchantToken = await loginMerchantForNegativeProbe\(context\)/)
assert.match(receivingSource, /phase4OverseasPdaOperations\.merchantToken = refreshedMerchantToken/)
assert.match(receivingSource, /if \(!handoffReady\) \{[\s\S]*await cleanup\(\)/)
assert.doesNotMatch(receivingSource, /createdResources\.phase4OverseasPdaOperations/)
assert.doesNotMatch(receivingSource, /primary: primary \? \{[^}]*password/)