From e119f3a2b197a0ac2f9c11b32c7be2842ca5f740 Mon Sep 17 00:00:00 2001 From: Linghong Date: Wed, 16 Sep 2026 06:27:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=AF=B9=E8=AF=9D=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E6=B5=8B=E8=AF=95=E9=80=89=E6=8B=A9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新推理档按钮断言并允许鉴权失败提示重复渲染。 --- .../tests/appSurface/chat-composer.suite.ts | 2 +- apps/ai-game-creator-shell/tests/appSurface/home.suite.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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(