优化
This commit is contained in:
@@ -67,6 +67,17 @@ test('PDA evidence binding unwraps the nested loading action response before ren
|
||||
assert.match(page, /cacheEvidencePreview\(current\.fileId, current\.localPath/)
|
||||
})
|
||||
|
||||
test('PDA downloads authenticated evidence previews returned by the backend', () => {
|
||||
assert.match(source, /export function getEvidencePreviewUrl\(inboundId, evidenceId, tenantId\)/)
|
||||
assert.match(source, /loading\/evidence\/\$\{encodeURIComponent\(evidenceId\)\}\/content\/pda\?tenantId=/)
|
||||
assert.match(source, /export function downloadEvidencePreview\(previewUrl\)/)
|
||||
assert.match(source, /uni\.downloadFile\(/)
|
||||
assert.match(source, /headers\.Authorization = `Bearer \$\{session\.token\}`/)
|
||||
assert.match(source, /response\.tempFilePath/)
|
||||
assert.match(source, /evidence\.preview\.response/)
|
||||
assert.match(source, /\^image\\\//)
|
||||
})
|
||||
|
||||
test('PDA cabinet picking adapter claims online and submits one atomic batch', () => {
|
||||
assert.match(source, /\/first-leg\/pda-loading\/tasks\/pending/)
|
||||
assert.match(source, /\/first-leg\/pda-loading\/tasks\?/)
|
||||
|
||||
Reference in New Issue
Block a user