diff --git a/admin-frontend-vue/src/pages/asin/DedupeRegistryPage.vue b/admin-frontend-vue/src/pages/asin/DedupeRegistryPage.vue index c0efe07d..e0d7e1c7 100644 --- a/admin-frontend-vue/src/pages/asin/DedupeRegistryPage.vue +++ b/admin-frontend-vue/src/pages/asin/DedupeRegistryPage.vue @@ -1,9 +1,9 @@ diff --git a/admin-frontend-vue/tests/align-asin-row-buttons.test.ts b/admin-frontend-vue/tests/align-asin-row-buttons.test.ts index b9ad2ded..41d83f08 100644 --- a/admin-frontend-vue/tests/align-asin-row-buttons.test.ts +++ b/admin-frontend-vue/tests/align-asin-row-buttons.test.ts @@ -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', () => { diff --git a/admin-frontend-vue/tests/align-column-width.test.ts b/admin-frontend-vue/tests/align-column-width.test.ts index 9fce97bf..fb358593 100644 --- a/admin-frontend-vue/tests/align-column-width.test.ts +++ b/admin-frontend-vue/tests/align-column-width.test.ts @@ -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>/, '原生表含结果预览列') + 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', () => {