# 测试方案 开始时间:2026-05-18-19-31-18 ## 自动化与运行验证 - `pytest -q` - `curl -s http://127.0.0.1:8001/api/health` - Chrome headless 首页截图,确认页面可渲染。 - 调用样例接口确认样例仍可获取。 ## 手工验证 1. 打开 `http://192.168.3.11:8001/`。 2. 点击“加载样例”。 3. 右侧预览区域应显示原始视频播放器。 4. 点击“查看原始视频”,应打开大播放器弹窗。 5. 点击清空后,按钮消失,预览恢复为空。 ## 执行结果 - `pytest -q`:通过,4 个测试全部通过。 - `curl -s http://127.0.0.1:8001/api/health`:通过,返回 `status=ok`。 - `curl -s http://127.0.0.1:8001/api/samples`:通过,样例视频和样例图像仍可获取。 - Chrome headless 首页截图:通过,未加载文件时“查看原始视频”按钮隐藏,首屏布局正常。 - `git diff --check`:通过,无空白格式错误。