🐛 fix(frontend): 修复回收站清理失败提示与恢复文案

This commit is contained in:
orion committed 2026-09-18 10:29:20 +08:00
1 parent 21d4c30f80
commit 61845699b3
4 files changed
+53 -6

No files matched your search

+2 -2
View File
@@ -48,8 +48,8 @@ export async function runTrashWorkflowChecks() {
const selectable=[...document.querySelectorAll('article input')].filter(e=>!e.disabled)
selectable[0].click();await new Promise(r=>setTimeout(r,0));selectable[1].click();await new Promise(r=>setTimeout(r,0));await wait(()=>button('批量恢复'));assert([...document.querySelectorAll('article input')].filter(e=>e.checked).length===2,'未选中两条记录')
button('批量恢复').click();await wait(()=>document.querySelectorAll('article').length===4)
assert(document.querySelectorAll('code').length===2,'未展示恢复后的新取件码')
done('通过:批量恢复、列表刷新和新取件码展示')
assert(document.querySelectorAll('code').length===2,'未展示恢复后的取件码')
done('通过:批量恢复、列表刷新和取件码展示')
document.querySelector('input[type=checkbox]').click();await wait(()=>button('批量清理'))
button('批量清理').click();await wait(()=>document.querySelector('[role=dialog]'))
modal=document.querySelector('[role=dialog]');assert(modal.textContent.includes('不可恢复')&&modal.textContent.includes('3'),'缺少删除数量或后果提示')