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服务'); } }); });