Files
box-box/tests/visual/mvp-screens.spec.ts
AmanTahiliani dbe3ac644d fix(#74): address PR #81 review blockers for live handoff
Distinguish FIA feed drops from true session end via terminal SessionStatus,
consume canonical /api/v1/weekend-context (post-#72 rebase), poll until
analysis-ready, and restore missing live-state styles plus transition/E2E/visual coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-12 19:46:31 -04:00

40 lines
1.0 KiB
TypeScript

import { test } from '@playwright/test'
import {
gotoWeekendReady,
gotoDataLibraryReady,
gotoLiveInactiveReady,
gotoRaceHubFutureReady,
gotoRaceHubReady,
screenshotPage,
} from './helpers'
test.describe('MVP visual regression', () => {
test('weekend', async ({ page }) => {
await gotoWeekendReady(page)
await screenshotPage(page, 'weekend')
})
test('race-hub', async ({ page }) => {
await gotoRaceHubReady(page)
await screenshotPage(page, 'race-hub')
})
test('race-hub-future', async ({ page }) => {
await gotoRaceHubFutureReady(page)
// The countdown ticks every second — mask it so the snapshot stays stable.
await screenshotPage(page, 'race-hub-future', {
mask: [page.getByTestId('rh-presession-countdown')],
})
})
test('data-library', async ({ page }) => {
await gotoDataLibraryReady(page)
await screenshotPage(page, 'data-library')
})
test('live-inactive', async ({ page }) => {
await gotoLiveInactiveReady(page)
await screenshotPage(page, 'live')
})
})