From 5eee62cf395f34013e9fa3fd369fa903c24071c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Thu, 6 Aug 2026 20:12:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A2=84=E8=A7=88=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=8B=92=E7=BB=9D=E6=B5=8B=E8=AF=95=E7=AB=9E=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为自动预览权限检查断言增加 2500 毫秒等待预算 保持权限拒绝文案与禁止启动预览断言不变 --- .../tests/appSurface/project-development.suite.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts index 7919a671d..d9bc07c95 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts @@ -7302,11 +7302,14 @@ export function registerProjectSupervisorSurfaceTests() { await Promise.resolve(); }); - await waitFor(() => { - expect(within(surface).getByLabelText('最新状态').textContent).toContain( - '项目权限策略拒绝执行:preview.start', - ); - }); + await waitFor( + () => { + expect(within(surface).getByLabelText('最新状态').textContent).toContain( + '项目权限策略拒绝执行:preview.start', + ); + }, + { timeout: 2500 }, + ); expect( invoke.mock.calls.filter( ([command]) => command === 'start_local_game_preview',