From 1f29ea6d8c484efcf6eb74a46c0093531d71a2d0 Mon Sep 17 00:00:00 2001 From: kdletters Date: Tue, 21 Jul 2026 20:19:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=B3=E5=AE=9AAI=E5=89=8D=E7=AB=AF=E5=BC=82?= =?UTF-8?q?=E6=AD=A5=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 等待项目Agent运行态水合完成后再断言提交方式 避免干净runner较慢时同步查询抢跑 --- apps/ai-game-creator-shell/tests/appSurface.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/tests/appSurface.test.ts b/apps/ai-game-creator-shell/tests/appSurface.test.ts index ee33ea745..35552f47c 100644 --- a/apps/ai-game-creator-shell/tests/appSurface.test.ts +++ b/apps/ai-game-creator-shell/tests/appSurface.test.ts @@ -18534,7 +18534,7 @@ describe('AI 游戏创作 App 界面边界', () => { fireEvent.click(screen.getByRole('button', { name: /拆解创作方向/ })); const dialog = await screen.findByLabelText('Agent 对话'); expect( - within(dialog).getByLabelText('项目 Agent 后台任务提交方式'), + await within(dialog).findByLabelText('项目 Agent 后台任务提交方式'), ).toHaveProperty('value', 'steer'); const input = within(dialog).getByLabelText('Agent 对话内容');