align(生成记录): 列名对齐参考(记录类型→类型、生成时间→创建时间)、空态统一暂无记录(对齐 admin.html:5769-5770/admin.js:2866)
This commit is contained in:
@@ -4,13 +4,13 @@ import { readSource } from './helpers.ts'
|
||||
import { historyEmptyText, historyErrorText } from '../src/pages/records/history-feedback.ts'
|
||||
|
||||
test('test_task_125_history_feedback_normal_primary_path', () => {
|
||||
// 正常主路径:无数据且有筛选给提示。
|
||||
assert.equal(historyEmptyText({ hasFilter: true, total: 0 }), '暂无符合条件的生成记录,请调整筛选条件')
|
||||
// 正常主路径:无数据空态统一「暂无记录」(对齐 admin.js:2866)。
|
||||
assert.equal(historyEmptyText({ hasFilter: true, total: 0 }), '暂无记录')
|
||||
})
|
||||
|
||||
test('test_task_125_history_feedback_normal_variant_input', () => {
|
||||
// 正常变体:无筛选空态。
|
||||
assert.equal(historyEmptyText({ hasFilter: false, total: 0 }), '暂无生成记录')
|
||||
// 正常变体:无筛选空态同文案。
|
||||
assert.equal(historyEmptyText({ hasFilter: false, total: 0 }), '暂无记录')
|
||||
})
|
||||
|
||||
test('test_task_125_history_feedback_repeated_is_idempotent', () => {
|
||||
|
||||
Reference in New Issue
Block a user