integratedhub/tests/e2e/sanity.test.ts
2026-02-14 02:20:19 +00:00

18 lines
559 B
TypeScript

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");
});
});