9 lines
321 B
TypeScript
9 lines
321 B
TypeScript
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');
|
|
}); |