2.4 KiB
Local manual acceptance preview
Entry: http://127.0.0.1:5199/api/local-preview.
This opt-in fixture runs the actual API handlers against an isolated memory store with generated video, accounts, and task history. It does not connect to production Mongo or BOS. It supports exploratory saves and decisions; restarting it resets all sample state. It is not a capacity or persistence-recovery test.
Manual checks
Use a maximized desktop browser (workbench viewport at least 1280 × 640). Save current edits before returning to the entry page and switching roles. Test one role at a time in a browser profile.
- 管理员看板: inspect date/project/supplier filters, output and quality tables. The history is synthetic; metrics without corresponding sample events can show zero or unavailable.
- 验收工作台: claim/continue the sample, open focused review, switch the three slices and play the generated test video. Check that the discarded slice displays its reason. Add a timestamp issue: approval must become disabled. Save, reload, then clear it to check recovery.
- 质检返工: claim the separate returned sample. Its acceptance timestamp issue is already present. Add a quality issue and choose 退回标注员 to try the merged forwarding flow.
- 标注员: after the quality return, inspect the received opinions, edit and save the returned task. Sample tasks are consumed by formal decisions; restart the fixture for another clean trial.
Start
From this worktree, with ffmpeg, Go, and frontend dependencies installed:
mkdir -p local-data/verification/manual-preview
rm -f local-data/verification/manual-preview/browser-done
FANYU_ACCEPTANCE_MANUAL_DIR="$PWD/local-data/verification/manual-preview" \
ANNOTATION_SOURCE_INDEX=true \
go test ./internal/api -run '^TestAcceptanceManualPreview$' -count=1 -timeout=25h -v
In a second terminal:
VITE_DEV_API_BASE_URL=http://127.0.0.1:3039 \
VITE_DEV_WORKER_BASE_URL=http://127.0.0.1:1 DISABLE_HMR=true \
npx vite --host 127.0.0.1 --port 5199 --strictPort
The API binds to loopback port 3039. The launcher uses randomly generated test credentials, also written to a private, untracked browser-context.json. Do not expose this fixture publicly. It exits after 24 hours or when local-data/verification/manual-preview/browser-done is created. Component-health indicators can be incomplete because production workers and release version stamps are absent.