test(web): scope generation approval assertion #4

Merged
xiaoxia merged 1 commits from develop into main 2026-06-25 12:45:20 +08:00
+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> };