align(去重数据汇总·像素复刻样办2): DedupeRegistryPage 重写为自绘复刻 admin panel-dedupe-total-data(分组摘要chips/双行筛选grid/页头操作组/旧式表格btn-sm行操作/编辑+导入modal/导出等待遮罩/旧式分页);删除确认改原生confirm对齐旧版
This commit is contained in:
@@ -15,10 +15,12 @@ function assertRowButtonSolid(source: string, action: string) {
|
||||
assert.doesNotMatch(source, NO_MODIFIER(action, 'text'), `${action} 不再 text`)
|
||||
}
|
||||
|
||||
test('align_dedupe_registry_row_buttons_solid', () => {
|
||||
test('align_dedupe_registry_row_buttons_old_btn', () => {
|
||||
const s = readSource('src/pages/asin/DedupeRegistryPage.vue')
|
||||
assertRowButtonSolid(s, 'openEdit')
|
||||
assertRowButtonSolid(s, 'removeRow')
|
||||
assert.match(s, /class="btn btn-sm"[^>]*@click="openEdit\(row\)"/, '编辑用旧版 btn-sm 实心小按钮')
|
||||
assert.match(s, /class="btn btn-sm btn-danger"[^>]*@click="removeRow\(row\)"/, '删除用旧版 btn-sm btn-danger')
|
||||
assert.doesNotMatch(s, /el-button/, '去重汇总已自绘,无 EP 按钮')
|
||||
assert.match(s, /window\.confirm\(`确定删除总数据/, '删除确认文案对齐旧版(原生 confirm)')
|
||||
})
|
||||
|
||||
test('align_invalid_asin_row_buttons_solid', () => {
|
||||
|
||||
@@ -11,7 +11,6 @@ const PAGES = [
|
||||
'src/pages/account/MenusPage.vue',
|
||||
'src/pages/account/UsersPage.vue',
|
||||
'src/pages/asin/AsinInvalidPage.vue',
|
||||
'src/pages/asin/DedupeRegistryPage.vue',
|
||||
'src/pages/asin/ProductCategoryPage.vue',
|
||||
'src/pages/asin/QueryAsinPage.vue',
|
||||
'src/pages/asin/SkipPricePage.vue',
|
||||
@@ -54,6 +53,9 @@ test('align_column_width_boundary_empty_input', () => {
|
||||
assert.equal(/el-table-column/.test(hist), false, '生成记录已像素复刻 admin panel-history 原生表格,不再有 el-table-column')
|
||||
assert.match(hist, /class="table-scroll history-table-scroll"/, '生成记录用原生 .table-scroll 表格')
|
||||
assert.match(hist, /<th[^>]*>结果预览<\/th>/, '原生表含结果预览列')
|
||||
const dedupe = readSource('src/pages/asin/DedupeRegistryPage.vue')
|
||||
assert.equal(/el-table-column/.test(dedupe), false, '去重汇总已像素复刻 admin panel-dedupe-total-data 原生表格,不再有 el-table-column')
|
||||
assert.match(dedupe, /class="table-scroll dedupe-table-scroll"/, '去重汇总用原生 .table-scroll 表格')
|
||||
})
|
||||
|
||||
test('align_column_width_dependency_failure_returns_actionable_message', () => {
|
||||
|
||||
Reference in New Issue
Block a user