Kairo-Jinkendo/tests/smoke-health.spec.js

10 lines
349 B
JavaScript
Raw Permalink Normal View History

const { test, expect } = require('@playwright/test');
test('GET /api/health liefert jinkendo-kairo', async ({ request }) => {
const response = await request.get('/api/health');
expect(response.ok()).toBeTruthy();
const body = await response.json();
expect(body.app).toBe('jinkendo-kairo');
expect(body.status).toMatch(/ok|degraded/);
});