Improve live analysis stability and video clip drafting
这个提交包含在:
@@ -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(),
|
||||
},
|
||||
],
|
||||
|
||||
在新工单中引用
屏蔽一个用户