From 325ebda7eb082196dbd39aa9a7e8333bbd450b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 2 Oct 2026 11:31:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A4=E8=AF=81=E9=A1=B5=E9=9D=A2=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E6=81=A2=E5=A4=8D=E9=87=8D=E8=AF=95=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=8F=AF=E7=94=A8=E6=80=81=E6=96=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 启动超时用例改回 getByRole + disabled=false,避免渲染但禁用的重试按钮也能通过 --- apps/ai-game-creator-shell/tests/appSurface/auth.suite.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ai-game-creator-shell/tests/appSurface/auth.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/auth.suite.ts index b480a0e0c..71c9baf12 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/auth.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/auth.suite.ts @@ -134,8 +134,8 @@ export function registerAuthTests() { ), ).not.toBeNull(); expect( - screen.queryByRole('button', { name: '重试登录状态检查' }), - ).not.toBeNull(); + screen.getByRole('button', { name: '重试登录状态检查' }), + ).toHaveProperty('disabled', false); await screen.findByRole('main', { name: '登录' }); } finally { window.removeEventListener('unhandledrejection', onRejection);