test(frontend): update tests for type changes

Update all test files to use correct enum values:
- AgentPanel, AgentStatusIndicator tests
- ProjectHeader, StatusBadge tests
- IssueSummary, IssueTable tests
- StatusBadge, StatusWorkflow tests (issues)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-31 12:48:11 +01:00
parent 35af7daf90
commit f0b04d53af
8 changed files with 32 additions and 48 deletions

View File

@@ -2,9 +2,9 @@ import { render, screen } from '@testing-library/react';
import { ProjectStatusBadge, AutonomyBadge } from '@/components/projects/StatusBadge';
describe('ProjectStatusBadge', () => {
it('renders in_progress status correctly', () => {
render(<ProjectStatusBadge status="in_progress" />);
expect(screen.getByText('In Progress')).toBeInTheDocument();
it('renders active status correctly', () => {
render(<ProjectStatusBadge status="active" />);
expect(screen.getByText('Active')).toBeInTheDocument();
});
it('renders completed status correctly', () => {
@@ -12,21 +12,11 @@ describe('ProjectStatusBadge', () => {
expect(screen.getByText('Completed')).toBeInTheDocument();
});
it('renders blocked status correctly', () => {
render(<ProjectStatusBadge status="blocked" />);
expect(screen.getByText('Blocked')).toBeInTheDocument();
});
it('renders paused status correctly', () => {
render(<ProjectStatusBadge status="paused" />);
expect(screen.getByText('Paused')).toBeInTheDocument();
});
it('renders draft status correctly', () => {
render(<ProjectStatusBadge status="draft" />);
expect(screen.getByText('Draft')).toBeInTheDocument();
});
it('renders archived status correctly', () => {
render(<ProjectStatusBadge status="archived" />);
expect(screen.getByText('Archived')).toBeInTheDocument();
@@ -34,7 +24,7 @@ describe('ProjectStatusBadge', () => {
it('applies custom className', () => {
const { container } = render(
<ProjectStatusBadge status="in_progress" className="custom-class" />
<ProjectStatusBadge status="active" className="custom-class" />
);
expect(container.firstChild).toHaveClass('custom-class');
});