feat: add playwright e2e workflow
This commit is contained in:
14
tests/e2e/health.spec.ts
Normal file
14
tests/e2e/health.spec.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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',
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user