refactor: converge account and access workspaces on semi ui
This commit is contained in:
@@ -258,6 +258,9 @@ test('renders mobile access vehicles as selectable Semi cards', async () => {
|
||||
expect(within(dialog).getByRole('region', { name: 'JT808 完整接入证据' })).toBeInTheDocument();
|
||||
expect(within(dialog).getByText('test first seen')).toBeInTheDocument();
|
||||
expect(within(dialog).getAllByText('当前未发现真实接入来源')).toHaveLength(2);
|
||||
expect(within(dialog).getByRole('navigation', { name: '粤A00001 数据操作' })).toHaveTextContent('车辆档案轨迹回放历史数据');
|
||||
expect(within(dialog).getByRole('link', { name: '车辆档案' })).toHaveAttribute('href', '/vehicles/VIN001');
|
||||
expect(within(dialog).getByRole('link', { name: '轨迹回放' })).toHaveAttribute('href', '/tracks?vin=VIN001');
|
||||
const vehicleRequestsBeforeEvidenceToggle = mocks.accessVehicles.mock.calls.length;
|
||||
const summaryRequestsBeforeEvidenceToggle = mocks.accessSummary.mock.calls.length;
|
||||
fireEvent.click(evidenceToggle);
|
||||
|
||||
Reference in New Issue
Block a user