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 对话内容');