Files
myeasycms-v2/apps/e2e/tests/healthcheck.spec.ts
Giancarlo Buomprisco 4bc8448a1d Unify workspace dropdowns; Update layouts (#458)
Unified Account and Workspace drop-downs; Layout updates, now header lives within the PageBody component; Sidebars now use floating variant
2026-03-11 14:45:42 +08:00

19 lines
523 B
TypeScript

import { expect, test } from '@playwright/test';
// Simple healthcheck test to verify the API is up and the database responds
test.describe('Healthcheck endpoint', () => {
test('returns healthy status', async ({ request }) => {
const response = await request.get('/api/healthcheck');
expect(response.status()).toBe(200);
const body = await response.json();
expect(body).toEqual(
expect.objectContaining({
services: expect.objectContaining({ database: true }),
}),
);
});
});