feat(platform): add vehicle identity maintenance list

This commit is contained in:
lingniu
2026-07-04 20:39:58 +08:00
parent 87fa0f524c
commit 4b34a2bf4c
2 changed files with 56 additions and 0 deletions

View File

@@ -1778,6 +1778,15 @@ test('copies vehicle governance summary from vehicle center', async () => {
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('实时监控http://localhost:3000/#/realtime?keyword=VIN-GOV-001&protocol=JT808'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('轨迹回放http://localhost:3000/#/history?keyword=VIN-GOV-001&protocol=JT808'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('告警事件http://localhost:3000/#/alert-events?keyword=VIN-GOV-001&protocol=JT808'));
fireEvent.click(screen.getByRole('button', { name: '复制身份维护清单' }));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【车辆身份维护清单】'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('当前页待维护1 辆 / 当前筛选 12 辆'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('粤A治理1 / VIN-GOV-001 / - / G7s'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('档案缺项:缺手机号'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('关联键vin=VIN-GOV-001plate=粤A治理1oem=G7s'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('建议动作:补齐档案字段:缺手机号'));
});
test('filters vehicle list from recommended action', async () => {