import { describe, it, expect } from 'vitest' import { render, screen } from '@testing-library/react' import PipelineStepper from '../../../src/renderer/src/components/PipelineStepper' describe('', () => { it('should render each step with its own status class, unchanged from props', () => { const { container } = render( ) expect(container.querySelectorAll('.step--done')).toHaveLength(1) expect(container.querySelectorAll('.step--active')).toHaveLength(1) expect(container.querySelectorAll('.step--pending')).toHaveLength(1) expect(screen.getByText('Objectif')).toBeInTheDocument() expect(screen.getByText('Cartographie')).toBeInTheDocument() }) it('should only show the sub-label for the active step', () => { render( ) expect(screen.queryByText('ignore')).not.toBeInTheDocument() expect(screen.getByText('En cours')).toBeInTheDocument() }) it('should show a checkmark instead of the number for a done step', () => { render() expect(screen.getByText('✓')).toBeInTheDocument() }) })