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

@@ -2,11 +2,12 @@ import { test, expect } from '@playwright/test'
const FULL_SESSION = 9472
test.describe('Data Library', () => {
test('shows local coverage and ingest commands', async ({ page }) => {
await page.goto('/data-library')
test.describe('Admin · Data Health', () => {
test('shows local coverage and ingest commands at /admin', async ({ page }) => {
await page.goto('/admin')
await expect(page.getByTestId('data-library')).toBeVisible()
await expect(page.getByRole('heading', { name: 'Data Health' })).toBeVisible()
await expect(page.getByTestId('dl-meeting-1229')).toBeVisible()
await expect(page.getByTestId('meeting-detail')).toBeVisible()
await expect(page.getByTestId('cli-commands').first()).toBeVisible()
@@ -14,15 +15,22 @@ test.describe('Data Library', () => {
await expect(page.getByText('box-box --ingest-session 9472', { exact: true })).toBeVisible()
})
test('nav link reaches data library from race hub', async ({ page }) => {
test('legacy /data-library route still renders the same page', async ({ page }) => {
await page.goto('/data-library')
await expect(page.getByTestId('data-library')).toBeVisible()
await expect(page.getByRole('heading', { name: 'Data Health' })).toBeVisible()
await expect(page.getByTestId('dl-meeting-1229')).toBeVisible()
})
test('admin nav link reaches data health from race hub', async ({ page }) => {
await page.goto('/race-hub')
await page.getByRole('link', { name: 'Data Library' }).click()
await expect(page).toHaveURL(/\/data-library/)
await page.getByRole('link', { name: 'Admin', exact: true }).click()
await expect(page).toHaveURL(/\/admin/)
await expect(page.getByTestId('data-library')).toBeVisible()
})
test('race hub link from data library footer works', async ({ page }) => {
await page.goto('/data-library')
test('race hub link from data health footer works', async ({ page }) => {
await page.goto('/admin')
await page.getByRole('link', { name: /Open Race Hub/i }).click()
await expect(page).toHaveURL(/\/race-hub/)
})