- 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
659 B
TypeScript
18 lines
659 B
TypeScript
import { readFileSync } from 'fs';
|
|
import path from 'path';
|
|
import { describe, expect, it } from 'vitest';
|
|
|
|
describe('库存批次删除(清零下架)', () => {
|
|
it('库存页用已有 adjust 接口删除,无新接口', () => {
|
|
const page = readFileSync(
|
|
path.join(__dirname, '../../src/pages/inventory/InventoryManagement.tsx'),
|
|
'utf8'
|
|
);
|
|
expect(page).toContain("t('inventory.void.confirm')");
|
|
expect(page).toContain("t('inventory.bulkVoid')");
|
|
expect(page).toContain('库存删除(批次下架)');
|
|
expect(page).toContain('availableQty: 0');
|
|
expect(page).toContain('adjustInventoryAvailableApi');
|
|
});
|
|
});
|