✨ feat: 支持单个、选中及全量手动检测下载状态

* 默认关闭定时检测,取消页面加载、翻页和刷新列表触发检测
* 提供明确的检测可下载状态入口,支持全量跨分页和选中文件
* 逐个读取文件并显示进度,支持取消及过期响应隔离
* 保持检测结果标签与时间展示,验证桌面和移动端交互
* 补充手动范围、失败重试、取消及跨页全量检测的集成验收
This commit is contained in:
orion committed 2026-09-19 01:24:16 +08:00
1 parent fe6d812857
commit 3d70f67cf7
7 files changed
+243 -86

No files matched your search

+1
View File
@@ -23,6 +23,7 @@ const site=process.env.FCB_TEST_URL || 'https://filetest.orionc.me';
await page.goto(site+'/#/admin/files');
const all=page.locator('.data-table-2026 table');
await all.getByRole('status').first().waitFor();
await page.getByTitle('检测全部文件,包括未显示的分页', {exact:true}).click();
await all.getByRole('status').filter({hasText:'可下载'}).first().waitFor();
const statuses=await all.getByRole('status').evaluateAll(nodes=>nodes.map(n=>({children:n.children.length,title:n.getAttribute('title'),text:n.textContent})));
statuses.forEach(s=>{assert.ok(s.children<=2,JSON.stringify(s));assert.equal(s.title,null)});