feat(admin): 为支持单删的管理列表补齐批量删除
This commit is contained in:
@@ -7,7 +7,7 @@ import { readSource } from './helpers.ts'
|
||||
const PAGE = 'src/pages/tasks/ShopDataTasksPage.vue'
|
||||
|
||||
test('align_shop_data_grid_normal_primary_path', () => {
|
||||
const src = readSource(PAGE)
|
||||
const src = readSource(PAGE, true)
|
||||
assert.match(src, /grid-template-columns:\s*repeat\(4,\s*1fr\)/, '卡片容器应为 4 列宫格')
|
||||
})
|
||||
|
||||
@@ -19,10 +19,10 @@ test('align_shop_data_grid_normal_variant_input', () => {
|
||||
})
|
||||
|
||||
test('align_shop_data_grid_boundary_empty_input', () => {
|
||||
// 卡片区下方有翻页组件(prev/next),与店铺分页并存(均为旧式分页)。
|
||||
// 卡片分页与授权弹窗分页独立,不能用残留样式充当分页入口。
|
||||
const src = readSource(PAGE)
|
||||
const count = (src.match(/class="pagination"/g) || []).length + (src.match(/sd-shop-pager/g) || []).length
|
||||
assert.ok(count >= 2, '页面应含店铺分页 + 卡片分页两处分页')
|
||||
assert.match(src, /<OldPagination[^\n]*:page="cardPage"/, '卡片列表应有可操作的分页')
|
||||
assert.match(src, /<OldPagination[^\n]*:page="permPage"/, '授权弹窗应有独立分页')
|
||||
assert.match(src, /cardPage/, '卡片分页状态')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user