From d3a4f6be989eb33ba1310fc3f336c03b30c769de Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Mon, 16 Feb 2026 17:08:17 -0300 Subject: [PATCH] fix(e2e): correct API endpoints and response format assertions --- tests/e2e/api.spec.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); }); });