align(records·像素复刻): 软件版本(全量无分页同旧版)/数字人版本(三态色/最新★/操作矩阵/数字页码分页) 自绘复刻旧版;确认走原生 confirm 对齐旧版
This commit is contained in:
@@ -7,32 +7,23 @@ import { readSource } from './helpers.ts'
|
||||
// 菜单管理是树结构(非列表),商品类目树用懒加载+加载更多节点,均豁免。
|
||||
|
||||
test('align_pagination_normal_primary_path', () => {
|
||||
// 商品类目已像素复刻旧版(搜索态旧式分页);保留 EP 分页的剩余列表。
|
||||
for (const page of [
|
||||
'src/pages/records/RecordsSoftwareVersionPage.vue',
|
||||
]) {
|
||||
const src = readSource(page)
|
||||
assert.match(src, /el-pagination/, `${page} 应包含分页组件`)
|
||||
}
|
||||
// 软件版本已像素复刻旧版(panel-version 全量无分页);无 EP 分页列表剩余为 0。
|
||||
const dh = readSource('src/pages/records/RecordsDigitalHumanVersionPage.vue')
|
||||
assert.match(dh, /page-nums/, '数字人版本用数字页码分页(像素复刻)')
|
||||
})
|
||||
|
||||
test('align_pagination_normal_variant_input', () => {
|
||||
// 分页组件需含上一页/下一页(prev/next),中文文案由全局 zh-cn locale 渲染。
|
||||
for (const page of [
|
||||
'src/pages/records/RecordsSoftwareVersionPage.vue',
|
||||
]) {
|
||||
const src = readSource(page)
|
||||
assert.match(src, /el-pagination[^>]*layout="[^"]*prev[^"]*next/, `${page} 分页 layout 需含 prev/next`)
|
||||
}
|
||||
// 数字人版本数字页码含上一页/下一页。
|
||||
const dh = readSource('src/pages/records/RecordsDigitalHumanVersionPage.vue')
|
||||
assert.match(dh, />上一页<\/button>/, '数字人分页含上一页')
|
||||
assert.match(dh, />下一页<\/button>/, '数字人分页含下一页')
|
||||
})
|
||||
|
||||
test('align_pagination_boundary_empty_input', () => {
|
||||
// 软件版本为全量拉取,走客户端切片分页(computed 按 page/pageSize 切)。
|
||||
for (const page of ['src/pages/records/RecordsSoftwareVersionPage.vue']) {
|
||||
const src = readSource(page)
|
||||
assert.match(src, /pagedRows|pageRows|pageItems|pagedItems/, `${page} 应有客户端分页切片`)
|
||||
assert.match(src, /:data="paged/, `${page} 表格应绑定分页后的数据`)
|
||||
}
|
||||
// 数字人版本为全量拉取,走客户端切片分页(computed 按 page/pageSize 切)。
|
||||
const dh = readSource('src/pages/records/RecordsDigitalHumanVersionPage.vue')
|
||||
assert.match(dh, /pagedItems/, '数字人版本应有客户端分页切片')
|
||||
assert.match(dh, /v-for="row in pagedItems/, '表格应绑定分页后的数据')
|
||||
})
|
||||
|
||||
test('align_pagination_boundary_single_item', () => {
|
||||
|
||||
Reference in New Issue
Block a user