code quality
This commit is contained in:
7
tests/e2e/api/api-auth.setup.ts
Normal file
7
tests/e2e/api/api-auth.setup.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
// Minimal global setup for API smoke tests
|
||||
// No authentication required for public health endpoint
|
||||
|
||||
export default async () => {
|
||||
// Future: Generate service account token or API key without UI interaction
|
||||
// For now, smoke tests use public endpoints
|
||||
};
|
||||
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