feat(需求): ①全站分页pageSize统一默认10+10/20/50/100选项(9页默认值15/20→10+6个兜底常量统一+撞款台账升级OldPagination+商品类目树顶层标准分页) ②修复6页OldPagination缺import分页器不渲染(不符合ASIN/查询ASIN/最低价ASIN/生成记录/店铺密钥/店铺管理)+查询ASIN操作列按钮间距+最低价范围筛选number类型报错 ③e2e断言对齐现状(顶栏h1/移除收起按钮后规格同步)+国家显示中文断言固化
This commit is contained in:
@@ -43,6 +43,19 @@ test('align_dup_console_drawer_template', () => {
|
||||
assert.match(page, /drawerSummary/, '抽屉渲染汇总徽章')
|
||||
assert.match(page, /次上架/, '汇总含 N 次上架')
|
||||
assert.match(page, /<th[^>]*>次数<\/th>/, '聚合表含次数列')
|
||||
assert.match(page, /v-for="row in drawerRows"/, '抽屉聚合表绑定分页切片')
|
||||
assert.match(page, /:total="drawerAggRows\.length"/, '抽屉聚合表有分页器')
|
||||
})
|
||||
|
||||
test('align_dup_console_pagination_all_lists', () => {
|
||||
// 全站统一收官:撞款页四处列表(分布/矩阵/撞款详情卡片/抽屉明细)均挂共享 OldPagination。
|
||||
const page = readSource('src/pages/tasks/DuplicateCheckPage.vue')
|
||||
assert.match(page, /:total="distCount"/, '店铺上架分布有分页器')
|
||||
assert.match(page, /:total="dupRows\.length"/, '撞款覆盖矩阵有分页器')
|
||||
assert.match(page, /v-for="item in dupCardRows"/, '撞款详情卡片绑定分页切片')
|
||||
assert.match(page, /v-if="dupRows\.length > dupCardPageSize"/, '撞款详情卡片有分页器')
|
||||
assert.match(page, /v-for="group in pagedGroupStats"/, '分组说明抽屉表绑定分页切片')
|
||||
assert.match(page, /:total="groupStats\.length"/, '分组说明抽屉表有分页器')
|
||||
})
|
||||
|
||||
test('align_dup_console_ledger_total_preload', () => {
|
||||
@@ -75,3 +88,11 @@ test('align_dup_console_role_scope_group_controls_only_super', () => {
|
||||
assert.match(service, /if \(superAdmin\) \{\s*return null;/, '超管可见范围=全量(null)')
|
||||
assert.match(service, /selectManagedShopNames\(operatorId\)/, '普通管理员可见范围=所管分组店铺')
|
||||
})
|
||||
|
||||
test('align_dup_console_country_labels_chinese', () => {
|
||||
// 反馈:国家显示一定要用中文——站点/国家一律经 asinCountryLabel 映射,禁止裸国家码直出。
|
||||
const page = readSource('src/pages/tasks/DuplicateCheckPage.vue')
|
||||
assert.match(page, /asinCountryLabel\(/, '站点显示走中文映射函数')
|
||||
assert.doesNotMatch(page, /\{\{\s*(row|item)\.country\s*\}\}/, '表格/抽屉无裸国家码直出')
|
||||
assert.match(page, /asinCountryLabel\(code\)/, '筛选下拉站点显示中文')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user