From 35e9adf3c00ed681905909db76009ea92beb34d0 Mon Sep 17 00:00:00 2001 From: Stedoss <29103029+Stedoss@users.noreply.github.com> Date: Tue, 28 Jul 2026 00:42:54 +0100 Subject: [PATCH] Add test for `MissionLaunchStatusBadge` --- .../components/MissionLaunchStatusBadge.test.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/mission-control-client/src/components/MissionLaunchStatusBadge.test.tsx diff --git a/src/mission-control-client/src/components/MissionLaunchStatusBadge.test.tsx b/src/mission-control-client/src/components/MissionLaunchStatusBadge.test.tsx new file mode 100644 index 0000000..f6f1270 --- /dev/null +++ b/src/mission-control-client/src/components/MissionLaunchStatusBadge.test.tsx @@ -0,0 +1,16 @@ +import { MantineProvider } from '@mantine/core'; +import { render, screen } from '@testing-library/react'; +import { describe, expect, it } from 'vitest'; +import { MissionLaunchStatusBadge } from './MissionLaunchStatusBadge'; + +describe('MissionLaunchStatusBadge', () => { + it('shows the status label', () => { + render( + + + , + ); + + expect(screen.getByText('Cancelled')).toBeInTheDocument(); + }); +});