认证页面用例恢复重试按钮可用态断言
- 启动超时用例改回 getByRole + disabled=false,避免渲染但禁用的重试按钮也能通过
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user