align(asin·像素复刻): 品牌库/查询ASIN/最低价ASIN/商品类目 四页自绘复刻旧版(panel-invalid-asin-data/query-asin/skip-price-asin/product-categories)——原生rowspan表格+可复制ASIN+btn-sm行操作+原生confirm删除+旧式分页(类目15/页/搜索态)+面板头搜索组/操作组+树[+/−]折叠/懒加载/编辑态按钮文案;编辑弹窗父级只读
This commit is contained in:
@@ -16,9 +16,9 @@ test('align_category_tree_table_normal_primary_path', () => {
|
||||
test('align_category_tree_table_normal_variant_input', () => {
|
||||
const page = readSource('src/pages/asin/ProductCategoryPage.vue')
|
||||
assert.match(page, /expandedIds/, '客户端展开状态集合')
|
||||
assert.match(page, /flatRows|treeRows/, '按展开状态扁平化行集')
|
||||
for (const col of ['层级路径', '排序', '来源', '说明']) {
|
||||
assert.match(page, new RegExp(col), `树形表格含「${col}」列`)
|
||||
assert.match(page, /treeRows/, '按展开状态扁平化行集')
|
||||
for (const col of ['层级路径', '排序', '来源', '备注']) {
|
||||
assert.match(page, new RegExp(col), `树形表格含「${col}」列(旧版列名为备注)`)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -46,8 +46,8 @@ test('align_category_tree_table_repeated_operation_is_idempotent', () => {
|
||||
})
|
||||
|
||||
test('align_category_tree_table_dependency_failure_returns_actionable_message', () => {
|
||||
// 视觉复刻旧版:20px 圆角方块标记、缩进宽度变量、名称加粗。
|
||||
// 视觉复刻旧版:圆角方块标记、层级缩进(24px/级)、名称加粗。
|
||||
const page = readSource('src/pages/asin/ProductCategoryPage.vue')
|
||||
assert.match(page, /tree-node-mark/, '展开标记样式存在')
|
||||
assert.match(page, /var\(--indent|--indent/, '缩进变量')
|
||||
assert.match(page, /row\.depth \* 24/, '缩进 24px/级')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user