15 lines
411 B
TypeScript
15 lines
411 B
TypeScript
import { expect, test } from '@playwright/test';
|
|
|
|
test.describe('health endpoint', () => {
|
|
test('returns a ready JSON payload', async ({ request }) => {
|
|
const response = await request.get('/api/health');
|
|
|
|
expect(response.ok()).toBeTruthy();
|
|
const payload = await response.json();
|
|
expect(payload).toMatchObject({
|
|
status: 'ok',
|
|
service: 'holiday-property-booking',
|
|
});
|
|
});
|
|
});
|