Files
Ydisks-Xianyu-Helper/frontend/itemListVisual.test.ts
Christ 526ac44453 fix: 完善同步生命周期并统一前端视觉
- 同步商品与订单时处理线上删除状态并联动自动化规则\n- 过滤卖家系统中的购买订单,修复订单逻辑删除与数据库迁移\n- 修复聊天新消息自动滚动,并统一前端颜色令牌与硬编码颜色检查
2026-08-10 12:41:10 +08:00

18 lines
750 B
TypeScript

import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { describe, expect, test } from 'vitest';
const itemList = readFileSync(resolve(__dirname, 'components/ItemList.tsx'), 'utf8');
describe('item list primary action colors', () => {
test('uses the shared primary blue for batch publishing', () => {
expect(itemList).toContain('bg-brand text-white hover:bg-brand-highlight');
expect(itemList).not.toContain('bg-blue-600 text-white hover:bg-blue-700');
});
test('uses the lighter emerald tone for publishing actions', () => {
expect(itemList).toContain('bg-emerald-500 text-white hover:bg-emerald-600');
expect(itemList).not.toContain('bg-emerald-600 text-white hover:bg-emerald-700');
});
});