code quality
This commit is contained in:
9
tests/e2e/api/api-smoke.test.ts
Normal file
9
tests/e2e/api/api-smoke.test.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test('API smoke - health endpoint is up', async ({ request }) => {
|
||||
const response = await request.get('/health');
|
||||
expect(response.status()).toBe(200);
|
||||
const body = await response.json();
|
||||
expect(body).toHaveProperty('status');
|
||||
expect(body.status).toBe('ok');
|
||||
});
|
||||
Reference in New Issue
Block a user