feat(platform): recommend quality issue actions

This commit is contained in:
lingniu
2026-07-04 10:13:26 +08:00
parent 782918b15f
commit 56f07c3488
2 changed files with 53 additions and 0 deletions

View File

@@ -1983,6 +1983,8 @@ test('renders quality issues as vehicle-service governance labels', async () =>
expect(await screen.findByText('VIN-NO-SOURCE-001')).toBeInTheDocument();
expect(screen.getAllByText('暂无数据来源').length).toBeGreaterThanOrEqual(1);
expect(screen.getAllByText('车辆服务').length).toBeGreaterThanOrEqual(1);
expect(screen.getByText('确认平台转发')).toBeInTheDocument();
expect(screen.getByText('车辆已绑定但没有任何来源证据,先确认平台转发、端口和订阅。')).toBeInTheDocument();
});
test('opens vehicle service from quality issue with issue source evidence', async () => {
@@ -2076,6 +2078,8 @@ test('opens vehicle service from quality issue with issue source evidence', asyn
render(<App />);
expect(await screen.findByText('13307795425')).toBeInTheDocument();
expect(screen.getByText('维护身份绑定')).toBeInTheDocument();
expect(screen.getByText('数据已有来源但无法归并到 VIN优先用车牌/手机号补齐绑定。')).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: '按车牌查车' }));
await waitFor(() => {