08ea5fbe98
添加用户管理视图、API和状态管理文件
15 lines
493 B
TypeScript
15 lines
493 B
TypeScript
import { test, expect } from '../test-fixtures';
|
|
|
|
test.describe('API连接测试', () => {
|
|
test('@smoke 检查API服务是否运行', async ({ actuatorMonitor }) => {
|
|
try {
|
|
const isHealthy = await actuatorMonitor.checkHealth();
|
|
console.log(`API健康状态: ${isHealthy}`);
|
|
expect(isHealthy).toBeTruthy();
|
|
} catch (error) {
|
|
console.log('API服务未运行或无法访问');
|
|
throw new Error('API服务未运行,请先启动API服务');
|
|
}
|
|
});
|
|
});
|