From 84518a783f752a7fe3eb8b1d0cc405053e4fe3f5 Mon Sep 17 00:00:00 2001 From: Xiaoxia AI Date: Tue, 23 Jun 2026 23:12:19 +0800 Subject: [PATCH] test(e2e): stabilize review action selector --- apps/web/e2e/core-upload.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/e2e/core-upload.spec.ts b/apps/web/e2e/core-upload.spec.ts index 312d653ae..e79c028c4 100644 --- a/apps/web/e2e/core-upload.spec.ts +++ b/apps/web/e2e/core-upload.spec.ts @@ -112,7 +112,7 @@ test.describe('Core media upload flow', () => { await expect(page.getByText(/推荐素材:1/)).toBeVisible({ timeout: 20_000 }); await expect(page.getByText(/视频素材数量偏少|素材准备度良好/)).toBeVisible({ timeout: 20_000 }); await expect(page.getByRole('cell', { name: 'e2e-sample.MOV', exact: true })).toBeVisible({ timeout: 20_000 }); - await page.getByRole('row', { name: /e2e-sample\.MOV/ }).getByRole('button', { name: '通过' }).click(); + await page.getByRole('row', { name: /e2e-sample\.MOV/ }).getByRole('button', { name: /通\s*过/ }).click(); await expect(page.getByText('复核状态已更新')).toBeVisible({ timeout: 10_000 }); await expect(page.getByText('已通过')).toBeVisible({ timeout: 20_000 }); await expect(page.getByText(/素材列表加载失败|上传失败/)).toHaveCount(0);