认证页面用例恢复重试按钮可用态断言

- 启动超时用例改回 getByRole + disabled=false,避免渲染但禁用的重试按钮也能通过
This commit is contained in:
2026-10-02 11:31:34 +08:00
parent 0803e035b5
commit 325ebda7eb
@@ -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);