test(web): scope generation approval assertion

This commit is contained in:
Xiaoxia AI
2026-06-25 12:43:17 +08:00
parent 0c6b0c7a90
commit da55b865a6
+1 -1
View File
@@ -196,7 +196,7 @@ test.describe('Core generation and download flow', () => {
await expect(page.getByRole('button', { name: '批量获取下载地址' })).toBeEnabled();
await resultCard.getByRole('button', { name: '可发布' }).click();
await expect(page.getByText('成片复核状态已更新')).toBeVisible({ timeout: 10_000 });
await expect(page.getByText('可发布', { exact: true })).toBeVisible({ timeout: 20_000 });
await expect(resultCard.getByText('可发布', { exact: true })).toBeVisible({ timeout: 20_000 });
const reviewedVideo = await request.get(`${apiBase}/generated-videos/${generatedVideo.id}`, { headers });
expect(reviewedVideo.status(), await reviewedVideo.text()).toBe(200);
const reviewedVideoData = (await reviewedVideo.json()) as { review_status: string; generation_params: Record<string, unknown> };