feat(jd-collect): 采集进度卡片显示百分比——countLabel 带分母「已采集 N/M 个商品(X%)」(TaskItemCard 有 countLabel 就不显示总进度行,百分比只能随 countLabel 出;无 total 仍不编造分母)
This commit is contained in:
@@ -172,7 +172,8 @@ describe('获取店铺数据:一键采集 + 任务面板', () => {
|
||||
const bar = w.find('.file-progress-bar')
|
||||
expect(bar.exists()).toBe(true)
|
||||
expect(bar.attributes('style')).toContain('width: 30%')
|
||||
expect(w.find('.file-progress-meta').text()).toContain('已采集 30 个商品')
|
||||
// 百分比文字随 countLabel 一起出(TaskItemCard 有 countLabel 就不显示「总进度 X%」)
|
||||
expect(w.find('.file-progress-meta').text()).toContain('已采集 30/100 个商品(30%)')
|
||||
})
|
||||
|
||||
it('没有分母(total 缺失)时只显示已采集行数,不编造百分比', async () => {
|
||||
|
||||
Reference in New Issue
Block a user