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', () => {
|
||||
|
||||
Reference in New Issue
Block a user