import { test, expect } from '@playwright/test'; test('简单健康检查 - 后端API', async ({ request }) => { const response = await request.get('http://localhost:8080/actuator/health'); expect(response.status()).toBe(200); const body = await response.json(); expect(body.status).toBe('UP'); }); test('简单健康检查 - 前端服务', async ({ page }) => { // 简单检查前端服务是否可访问 const response = await page.goto('http://localhost:5176'); expect(response).not.toBeNull(); expect(response?.status()).toBeLessThan(400); });