diff --git a/tests/e2e/api.spec.ts b/tests/e2e/api.spec.ts index f608a6f140..17070916d1 100644 --- a/tests/e2e/api.spec.ts +++ b/tests/e2e/api.spec.ts @@ -1,8 +1,8 @@ import { test, expect } from "@playwright/test"; test.describe("API Health Checks", () => { - test("GET /api/health returns OK", async ({ request }) => { - const res = await request.get("/api/health"); + test("GET /api/monitoring/health returns OK", async ({ request }) => { + const res = await request.get("/api/monitoring/health"); expect(res.ok()).toBeTruthy(); const body = await res.json(); expect(body).toHaveProperty("status"); @@ -20,6 +20,7 @@ test.describe("API Health Checks", () => { const res = await request.get("/api/providers"); expect(res.ok()).toBeTruthy(); const body = await res.json(); - expect(Array.isArray(body)).toBe(true); + expect(body).toHaveProperty("connections"); + expect(Array.isArray(body.connections)).toBe(true); }); });