fix(fulfillment): 修复载体重试并完善核销任务列表
This commit is contained in:
@@ -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: '全部历史尝试'"))
|
||||
})
|
||||
Reference in New Issue
Block a user