fix(fulfillment): 修复载体重试并完善核销任务列表

This commit is contained in:
yml2213
2026-11-05 18:36:10 +08:00
parent 89a68b5734
commit e8b76b3b73
19 changed files with 945 additions and 104 deletions
@@ -0,0 +1,12 @@
import assert from 'node:assert/strict'
import { readFileSync } from 'node:fs'
import test from 'node:test'
const page = readFileSync(new URL('../src/pages/admin/AdminTasksPage.tsx', import.meta.url), 'utf8')
test('任务页默认仅展示当前任务,并可切换全部历史尝试', () => {
assert.ok(page.includes("searchParams.get('scope') === 'all' ? 'all' : 'current'"))
assert.ok(page.includes('currentOnly: filters.scope !=='))
assert.ok(page.includes("label: '当前任务'"))
assert.ok(page.includes("label: '全部历史尝试'"))
})