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'); it('确认中标提交手选 awards 且不走建议覆盖', () => { expect(histSrc).toMatch(/use_suggested_lowest:\s*false/); expect(histSrc).toMatch(/awards,/); expect(histSrc).toMatch(/type="radio"/); expect(histSrc).toMatch(/结束后将分配给谁/); expect(histSrc).toMatch(/先手调窗/); }); });