diff --git a/frontend-modern/src/components/patrol/PatrolStatusBar.tsx b/frontend-modern/src/components/patrol/PatrolStatusBar.tsx index 51145d775..5cde018a6 100644 --- a/frontend-modern/src/components/patrol/PatrolStatusBar.tsx +++ b/frontend-modern/src/components/patrol/PatrolStatusBar.tsx @@ -162,9 +162,8 @@ export const PatrolStatusBar: Component = (props) => { - Latest: {s().lastRunTypeLabel} - · - + Latest: {s().lastRunTypeLabel} ·{' '} + {s().lastRunStatus.label} diff --git a/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx b/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx index 1133ee158..9ae3d9dda 100644 --- a/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx +++ b/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx @@ -192,7 +192,7 @@ describe('PatrolStatusBar', () => { const latestRunSection = screen.getByText('Latest: Scoped run').closest('span'); expect(latestRunSection).not.toBeNull(); - expect(within(latestRunSection as HTMLElement).getByText('·')).toBeInTheDocument(); + expect(latestRunSection).toHaveTextContent('Latest: Scoped run · error'); expect(within(latestRunSection as HTMLElement).queryByText('healthy')).not.toBeInTheDocument(); expect(within(latestRunSection as HTMLElement).getByText('error')).toBeInTheDocument(); });