Add command center screen

This commit is contained in:
2026-05-25 10:29:31 -04:00
parent 571edb9b5a
commit e539abcc5f
17 changed files with 1182 additions and 10 deletions

View File

@@ -3,6 +3,13 @@ import { test, expect } from '@playwright/test'
const FULL_SESSION = 9472
test.describe('Production serving (Go + built React)', () => {
test('serves command center as default route', async ({ page }) => {
await page.goto('/')
await expect(page.getByTestId('command-center')).toBeVisible()
await expect(page.getByTestId('cc-session-9472')).toBeVisible()
})
test('serves race hub with classification from built assets', async ({ page }) => {
await page.goto(`/race-hub?session_key=${FULL_SESSION}`)
@@ -25,8 +32,11 @@ test.describe('Production serving (Go + built React)', () => {
})
test('nav links work from built SPA', async ({ page }) => {
await page.goto('/race-hub')
await page.getByRole('link', { name: 'Data Library' }).click()
await page.goto('/')
await page.locator('.app-nav').getByRole('link', { name: 'Race Hub' }).click()
await expect(page).toHaveURL(/\/race-hub/)
await page.locator('.app-nav').getByRole('link', { name: 'Data Library' }).click()
await expect(page).toHaveURL(/\/data-library/)
await page.getByRole('link', { name: 'Live' }).click()