Rework command center for race weekends

This commit is contained in:
2026-05-25 11:51:16 -04:00
parent a0f135aac1
commit 79b0b9f469
21 changed files with 1030 additions and 484 deletions

View File

@@ -107,10 +107,10 @@ describe('CommandCenterPage', () => {
await waitFor(() => {
expect(screen.getByTestId('command-center-empty')).toBeInTheDocument()
})
expect(screen.getByText('No ingested seasons yet')).toBeInTheDocument()
expect(screen.getByText('No local data yet')).toBeInTheDocument()
})
it('shows coverage summary and focus weekend when data exists', async () => {
it('shows weekend identity band and schedule when data exists', async () => {
mockFetchSeasons.mockResolvedValue([2025])
mockFetchLocalMeetings.mockResolvedValue([meeting])
mockFetchWeekend.mockResolvedValue(weekend)
@@ -121,11 +121,12 @@ describe('CommandCenterPage', () => {
expect(screen.getByTestId('command-center')).toBeInTheDocument()
})
expect(screen.getByText('Command Center')).toBeInTheDocument()
await waitFor(() => {
expect(screen.getByTestId('cc-session-9472')).toBeInTheDocument()
})
expect(screen.getByTestId('cc-focus')).toHaveTextContent('Monaco')
expect(screen.getByTestId('cc-focus')).toHaveTextContent('MON')
expect(screen.getByText('No live session')).toBeInTheDocument()
expect(screen.getByTestId('cc-action-race-hub')).toHaveTextContent('Race')
})
})