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',