Files
holiday-property-booking/tests/e2e/health.spec.ts
Chris Dumas 909e8062f4
Some checks failed
Deploy Holiday Property Booking / deploy (push) Successful in 3m0s
Playwright Holiday Property Booking / playwright (push) Successful in 10m59s
Test & Build Holiday Property Booking / test-build (push) Has been cancelled
feat: add playwright e2e workflow
2026-05-22 08:40:45 +00:00

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',
});
});
});