fix(platform): clarify vehicle service status labels
This commit is contained in:
@@ -817,13 +817,13 @@ test('filters dashboard coverage by service status', async () => {
|
||||
|
||||
expect(await screen.findByText('车辆服务覆盖')).toBeInTheDocument();
|
||||
fireEvent.click(screen.getByTestId('dashboard-service-status-filter'));
|
||||
fireEvent.click(await screen.findByText('部分来源离线'));
|
||||
fireEvent.click(await screen.findByText('来源异常'));
|
||||
fireEvent.click(screen.getByRole('button', { name: '筛选' }));
|
||||
|
||||
await waitFor(() => {
|
||||
expect(fetchMock).toHaveBeenCalledWith(expect.stringContaining('serviceStatus=degraded'), undefined);
|
||||
});
|
||||
expect(screen.getByText('当前筛选:部分来源离线')).toBeInTheDocument();
|
||||
expect(screen.getByText('当前筛选:来源异常')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test('filters dashboard coverage by missing source evidence', async () => {
|
||||
@@ -1284,7 +1284,7 @@ test('shows vehicle context when opening detail from shareable hash', async () =
|
||||
render(<App />);
|
||||
|
||||
expect(await screen.findByText('粤AG18312 / VIN001')).toBeInTheDocument();
|
||||
expect(screen.getByText('当前车辆:部分来源离线')).toBeInTheDocument();
|
||||
expect(screen.getByText('当前车辆:来源异常')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test('refreshes vehicle context when hash changes to another detail vehicle', async () => {
|
||||
@@ -1983,7 +1983,7 @@ test('filters vehicle list by service status', async () => {
|
||||
|
||||
await screen.findByRole('heading', { name: '车辆服务' });
|
||||
fireEvent.click(screen.getByTestId('service-status-filter'));
|
||||
fireEvent.click(await screen.findByText('部分来源离线'));
|
||||
fireEvent.click(await screen.findByText('来源异常'));
|
||||
fireEvent.click(screen.getByRole('button', { name: '查询' }));
|
||||
|
||||
await waitFor(() => {
|
||||
|
||||
Reference in New Issue
Block a user