From 22839d06c7fd2bad3fd51948afb5ac6e8a067b40 Mon Sep 17 00:00:00 2001 From: dongmucat <1127093059@qq.com> Date: Fri, 18 Sep 2026 11:06:09 +0800 Subject: [PATCH] test(security): tolerate cold route startup Signed-off-by: dongmucat <1127093059@qq.com> --- web/e2e/security-audit-redaction.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/e2e/security-audit-redaction.spec.ts b/web/e2e/security-audit-redaction.spec.ts index 5ac14092..9cb1dfe9 100644 --- a/web/e2e/security-audit-redaction.spec.ts +++ b/web/e2e/security-audit-redaction.spec.ts @@ -152,7 +152,7 @@ test.describe('Security audit redaction', () => { await page.goto('/space/global/redaction-skill') - await expect(page.getByRole('heading', { name: 'Redaction Skill', exact: true }).first()).toBeVisible() + await expect(page.getByRole('heading', { name: 'Redaction Skill', exact: true }).first()).toBeVisible({ timeout: 15_000 }) await expect(page.getByText('No high-risk findings', { exact: true })).toBeVisible() await page.getByRole('button', { name: 'View Details' }).click() await page.getByRole('button', { name: 'Findings' }).click() @@ -166,7 +166,7 @@ test.describe('Security audit redaction', () => { await page.goto('/space/global/redaction-skill') - await expect(page.getByRole('heading', { name: 'Redaction Skill', exact: true }).first()).toBeVisible() + await expect(page.getByRole('heading', { name: 'Redaction Skill', exact: true }).first()).toBeVisible({ timeout: 15_000 }) await expect(page.getByText('Security Audit', { exact: true })).toHaveCount(0) await expect(page.locator('body')).not.toContainText(CANARY) })