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);