import { expect, test } from "@playwright/test"; test.describe("Sanity", () => { test("home route responds successfully", async ({ request }) => { const response = await request.get("/"); expect(response.status()).toBe(200); }); test("health endpoint returns JSON payload", async ({ request }) => { const response = await request.get("/health"); expect([200, 503]).toContain(response.status()); const body = await response.json(); expect(body).toHaveProperty("status"); expect(body).toHaveProperty("timestamp"); }); });