From 7be228fb2a2ad61a8ff16096cc26104987d69f5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bonnet?= Date: Thu, 28 Nov 2024 14:01:22 +0100 Subject: [PATCH] fix(sidebar-pod-statuses): update description for starting pods (#1769) --- .../src/lib/sidebar-pod-statuses/sidebar-pod-statuses.spec.tsx | 3 ++- .../src/lib/sidebar-pod-statuses/sidebar-pod-statuses.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/domains/service-logs/feature/src/lib/sidebar-pod-statuses/sidebar-pod-statuses.spec.tsx b/libs/domains/service-logs/feature/src/lib/sidebar-pod-statuses/sidebar-pod-statuses.spec.tsx index 41e126c70de..c2d25b504df 100644 --- a/libs/domains/service-logs/feature/src/lib/sidebar-pod-statuses/sidebar-pod-statuses.spec.tsx +++ b/libs/domains/service-logs/feature/src/lib/sidebar-pod-statuses/sidebar-pod-statuses.spec.tsx @@ -171,8 +171,9 @@ describe('SidebarPodStatuses', () => { const toggleButton = screen.getByRole('button') await userEvent.click(toggleButton) + expect(screen.getByText('1 running')).toBeInTheDocument() expect(screen.getByText('1 warning')).toBeInTheDocument() - expect(screen.getByText('2 starting')).toBeInTheDocument() + expect(screen.getByText('1 starting')).toBeInTheDocument() expect(screen.getByText('1 failing')).toBeInTheDocument() }) diff --git a/libs/domains/service-logs/feature/src/lib/sidebar-pod-statuses/sidebar-pod-statuses.tsx b/libs/domains/service-logs/feature/src/lib/sidebar-pod-statuses/sidebar-pod-statuses.tsx index 5fb0055241a..afc093b69b8 100644 --- a/libs/domains/service-logs/feature/src/lib/sidebar-pod-statuses/sidebar-pod-statuses.tsx +++ b/libs/domains/service-logs/feature/src/lib/sidebar-pod-statuses/sidebar-pod-statuses.tsx @@ -59,7 +59,7 @@ export function SidebarPodStatuses({ organizationId, projectId, service, childre .with('COMPLETED', () => ({ type: 'running', message: 'completed', color: 'bg-green-500' })) .with('WARNING', () => ({ type: 'warning', message: 'warning', color: 'bg-yellow-500' })) .with('STARTING', () => ({ - type: 'running', + type: 'starting', message: 'starting', color: 'bg-purple-500', }))