Improve live analysis stability and video clip drafting

这个提交包含在:
cryptocommuniums-afk
2026-03-15 02:11:34 +08:00
父节点 edc66ea5bc
当前提交 815f96d4e8
修改 9 个文件,包含 570 行新增56 行删除

查看文件

@@ -35,6 +35,16 @@ test("videos page renders video library items", async ({ page }) => {
await expect(page.getByTestId("video-card")).toHaveCount(1);
});
test("videos page opens lightweight clip editor", async ({ page }) => {
await installAppMocks(page, { authenticated: true });
await page.goto("/videos");
await page.getByRole("button", { name: "轻剪辑" }).click();
await expect(page.getByText("PC 轻剪辑工作台")).toBeVisible();
await expect(page.locator("text=建议保留:正手启动").first()).toBeVisible();
await expect(page.getByRole("button", { name: "导出草稿" })).toBeVisible();
});
test("live camera page exposes camera startup controls", async ({ page }) => {
await installAppMocks(page, { authenticated: true });

查看文件

@@ -581,6 +581,11 @@ export async function installAppMocks(
shotCount: 16,
avgSwingSpeed: 6.2,
strokeConsistency: 82,
framesAnalyzed: 180,
keyMoments: [
{ frame: 45, type: "shot", description: "建议保留:正手启动" },
{ frame: 110, type: "shot", description: "建议保留:击球后收拍" },
],
createdAt: nowIso(),
},
],