10 lines
349 B
JavaScript
10 lines
349 B
JavaScript
|
|
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/);
|
||
|
|
});
|