- T1 资金/库存/报价/自采 P1(BIZ-1/2/3/4/10/13/14) - T2 主系统反向事件墓碑/改派/孤儿处理(BIZ-6/8/9) - T3 选分公司 ticket、trust proxy、角色权限收口(SEC-2/3/4) - T4 缺列/RLS/tenant 名单/FK/迁移执行器(DATA-1..8) - T5 401 登出/分页/映射口径/blob/ZIP 中文名(FE-1..4/BIZ-15) - T6 测试脚本目标守卫/config fail-fast/容器配置(OPS-2..8) - T7 前后端测试与 lint 门禁清零 - T8 应付卡片按关联订单日(口径 A) - T9 存储对象全链路归属校验、敏感列禁写、审计 target_id 超长修复
18 lines
754 B
TypeScript
18 lines
754 B
TypeScript
import { readFileSync } from 'fs';
|
|
import path from 'path';
|
|
import { describe, expect, it } from 'vitest';
|
|
|
|
describe('竞价详情点选中标', () => {
|
|
const histSrc = readFileSync(path.join(__dirname, '../../src/pages/orders/BidHistory.tsx'), 'utf8');
|
|
const zhBids = readFileSync(path.join(__dirname, '../../src/i18n/locales/zh-CN/bids.ts'), 'utf8');
|
|
|
|
it('确认中标提交手选 awards 且不走建议覆盖', () => {
|
|
expect(histSrc).toMatch(/use_suggested_lowest:\s*false/);
|
|
expect(histSrc).toMatch(/awards,/);
|
|
expect(histSrc).toMatch(/type="radio"/);
|
|
expect(histSrc).toContain('bids.preview.title');
|
|
expect(zhBids).toContain('结束后将分配给谁(参考)');
|
|
expect(zhBids).toContain('先手调窗');
|
|
});
|
|
});
|