diff --git a/apps/ai-game-creator-shell/tests/appSurface/chat-composer.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/chat-composer.suite.ts index b0a1368f0..b54c3c17c 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/chat-composer.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/chat-composer.suite.ts @@ -529,7 +529,7 @@ export function registerChatComposerControlTests() { const select = within(surface).getByRole('button', { name: '推理档' }); await waitFor(() => { - expect(select.textContent).toContain('默认'); + expect(select.textContent).toContain('高'); }); // 档位就在模型选择器这一排(同一控制排容器里)。 expect( diff --git a/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts index ddcdef7b4..01e5f217d 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts @@ -2589,7 +2589,7 @@ export function registerHomeProjectCreationTests() { ); expect( - await screen.findByText('陶泥儿智能创作 鉴权失败,请重新登录后重试'), + await screen.findAllByText('陶泥儿智能创作 鉴权失败,请重新登录后重试'), ).not.toBeNull(); await waitFor(() => { expect(persistedMessages).toHaveLength(2); @@ -2627,7 +2627,7 @@ export function registerHomeProjectCreationTests() { ); expect(await screen.findByText('生成一个游戏')).not.toBeNull(); expect( - await screen.findByText('陶泥儿智能创作 鉴权失败,请重新登录后重试'), + await screen.findAllByText('陶泥儿智能创作 鉴权失败,请重新登录后重试'), ).not.toBeNull(); expect( invoke.mock.calls.filter(