feat: add playwright e2e workflow
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

This commit is contained in:
2026-05-22 08:40:45 +00:00
parent b781967a14
commit 909e8062f4
11 changed files with 250 additions and 11 deletions

14
tests/e2e/health.spec.ts Normal file
View 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',
});
});
});