🐛 fix: 保留上传收尾提示并支持重试取件码
* 在上传框持续显示校验提示、进度和明确的收尾失败状态 * 提供复用原上传会话的取件码重试入口,避免重复上传 * 调整忙碌与错误布局,验证桌面及手机状态提示和按钮可见性
This commit is contained in:
1 parent
b67d36d8a0
commit
9d29489be1
9 files changed
+85
-10
No files matched your search
@@ -24,3 +24,11 @@ test('retrieve form enables both complete legacy and current codes without trunc
|
||||
}
|
||||
const html=await render(Form,{modelValue:'ABC',inputStatus:{readonly:false,loading:false}});assert.ok(/<button[^>]* disabled(?:=|>| )/.test(html))
|
||||
})
|
||||
test('verification status is announced in the upload box and failure exposes a retry action',async()=>{
|
||||
const waiting=await render(Area,{selectedFile:new File(['data'],'waiting.apk'),uploadStatus:'confirming',uploadedBytes:4,totalBytes:4,progress:99})
|
||||
assert.match(waiting,/role="status" aria-live="polite"/);assert.match(waiting,/正在校验文件,完成后生成取件码/)
|
||||
assert.match(waiting,/aria-busy="true"/);assert.match(waiting,/animate-spin/);assert.match(waiting,/disabled/)
|
||||
assert.ok(!waiting.includes('支持各种常见格式'))
|
||||
const failed=await render(Area,{uploadStatus:'error',errorMessage:zh.send.uploadArea.status.confirmationFailed,retryText:zh.send.uploadArea.retryConfirmation})
|
||||
assert.match(failed,/暂未取得取件码/);assert.match(failed,/重试生成取件码/);assert.match(failed,/aria-busy="false"/)
|
||||
})
|
||||
Reference in new issue
Block a user