feat(需求): ①全站列表/卡片分页统一为共享 OldPagination(共N条+10/20/50/100条数可选+跳页) ②创建用户菜单权限改左右布局(后台|桌面端并排) ③修复角色筛选失效(normalizeUserPageParams 白名单丢 role 字段)
This commit is contained in:
@@ -39,8 +39,10 @@ test('test_task_250_users_list_boundary_empty_input', () => {
|
||||
test('test_task_250_users_list_boundary_single_item', () => {
|
||||
// 边界:分页/合计形态为“共 N 条”,查询后回第一页。
|
||||
const page = readSource('src/pages/account/UsersPage.vue')
|
||||
assert.match(page, /共 .*total.*条/, '分页页脚应有“共 N 条”合计')
|
||||
assert.match(page, /page\s*=\s*1|filters\.page\s*=\s*USER_PAGE_MIN_PAGE/, '查询需重置回第一页')
|
||||
assert.match(page, /OldPagination/, '分页走共享组件')
|
||||
const comp = readSource('src/components/OldPagination.vue')
|
||||
assert.match(comp, /共 \{\{ total \}\} 条/, '共享分页含“共 N 条”合计')
|
||||
assert.match(page, /filters\.page = 1/, '查询需重置回第一页')
|
||||
})
|
||||
|
||||
test('test_task_250_users_list_boundary_limit_or_missing_field', () => {
|
||||
|
||||
Reference in New Issue
Block a user