diff --git a/packages/webui/e2e/harness/main.tsx b/packages/webui/e2e/harness/main.tsx index acbba458..153d7f5a 100644 --- a/packages/webui/e2e/harness/main.tsx +++ b/packages/webui/e2e/harness/main.tsx @@ -1,7 +1,10 @@ +import { type ReactElement, useCallback, useRef, useState } from 'react' import ReactDOM from 'react-dom/client' +import type Player from 'video.js/dist/types/player' import VideoPlayer from '@/ui/components/viewers/video-player' +import { calculateFrameCenterTime } from '@/ui/components/viewers/utils' import { useUiStore } from '@/ui/stores/ui' -import { sampleVideoAsset } from './fixture' +import { SAMPLE_FRAME_RATE, sampleVideoAsset } from './fixture' /** * Backend-free harness page that mounts the *real* VideoPlayer component with a @@ -12,26 +15,143 @@ import { sampleVideoAsset } from './fixture' * We force the time readout into "frames" mode so specs can parse the exact * integer frame index the UI is displaying and assert it against the native *