2026-05-18-19-31-18 增加原始视频查看入口

This commit is contained in:
2026-05-18 19:33:14 +08:00
parent e5f0b1dca9
commit c62f6e3401
7 changed files with 168 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
# 测试方案
开始时间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`:通过,无空白格式错误。