mirror of
https://github.com/AmanTahiliani/box-box.git
synced 2026-08-07 19:56:18 -04:00
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>
40 lines
1.0 KiB
TypeScript
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')
|
|
})
|
|
})
|